parameters: (defval=0)
return_statement: return xu.getenv_as(xenv.ORDINAL, int, defval=defval)
docstring: Retrieves the replication ordinal of the current process.
  
    The ordinals range from 0 to `xrt_world_size()` minus 1.
  
    Args:
      defval (int, optional): The default value to be returned in case there is no
        replication information available.
        Default: 0
  
    Returns:
      The replication ordinal of the current process.
docstring_summary: Retrieves the replication ordinal of the current process.
docstring_tokens: Retrieves the replication ordinal of the current process .
function: def get_ordinal(defval=0):
    """Retrieves the replication ordinal of the current process.
  
    The ordinals range from 0 to `xrt_world_size()` minus 1.
  
    Args:
      defval (int, optional): The default value to be returned in case there is no
        replication information available.
        Default: 0
  
    Returns:
      The replication ordinal of the current process.
    """
    return xu.getenv_as(xenv.ORDINAL, int, defval=defval)
function_tokens: def get_ordinal ( defval = 0 ) : return xu . getenv_as ( xenv . ORDINAL , int , defval = defval )