dragon.infrastructure.facts
Specified constants and names used in the Dragon runtime.
Module Attributes
Input channel unique ID for Global Services head |
|
Unique process ID for head user process started by the launcher |
|
Unique process ID given for the global services process |
|
The first PUID for user applications launched by local services |
|
Base index used by the transport services for the unique process ID (puid) |
|
Range of the unique process ID's for the transport services |
|
Starting value for PMOD launch Channel ID (cuid) that communicates with the client pmod at process launch |
|
Range for the PMOD launch channel ID's (cuid) that communicates with the client pmod at process launch |
|
Starting value of a reserved range of cuids that can be managed by a user |
|
Range for the user managed cuids |
|
Starting value of the local transport agent channel unique ID (cuid) |
|
Range for the local transport agent channel ID's (cuid) |
|
Starting value for the backend channel ID (cuid) that communicates with the frontend |
|
Range for the backend channel ID's (cuid) that communicate with the frontend |
|
Starting value for the local launcher backend channel unique ID (cuid) |
|
Range for the local launcher backend channel ID's (cuid) |
|
Starting value for the gateway channel unique ID (cuid) |
|
Range for the gateway channel ID's (cuid) |
|
Base value for the logging channel ID (cuid) |
|
Range for the logging channel ID's (cuid) |
|
Starting value for the backend channel ID (cuid) of the infrastructure transport gateway channel |
|
Range for the backend channel ID's (cuid) of the infrastructure transport gateway channel |
|
Starting value for the backend channel ID (cuid) that communicates with its transport agent |
|
Range for the backend channel ID's (cuid) that communicate with its transport agent |
|
Starting value of the local services shepherd channel unique ID (cuid) |
|
Range for the local services channel ID's (cuid) |
|
Starting value of the User created channel ID (cuid) |
|
First backend pool ID (MUID) needed for the overlay network transport |
|
Range of the backend pool ID's (MUID) needed for the overlay network transport |
|
Pool for the frontend overlay network transport agent |
|
First Logging MUID |
|
First MUID of Default Pools. |
|
User Pool MUID starting value. |
|
Starting value for the Group of resources (guid) |
|
Frontend's magic host ID |
Functions
|
Return the unique backend Channel ID that communicates with the fronted, based on the host id |
|
Return the unique backend channel ID of the overlay network transport gateway channel, based on the host id |
|
Return the unique channel ID based on host id, for a backend channel that acts as an inbound initializer for its communication with transport agent |
|
Return the unique channel ID based on host id, for a backend channel that acts as an outbound initializer for its communication with transport agent |
|
Return the backend memory pool unique ID based on the host index |
|
Return the unique managed memory pool ID of the default user pool from the node index. |
|
|
|
|
|
Return the unique Channel ID of the first gateway channel from the local node index |
|
Return the unique node index from the default pool id. |
Return the node index from the unique managed memory pool ID of the default infrastructure pool. |
|
|
Retun the local node index from the |
Return the unique managed memory pool ID of the default infrastructure pool from the node index. |
|
|
Check if the given |
|
Return if the pool corresponding to the given |
|
Check whether a puid is associated with a transport agent |
|
Get the unique Channel ID of the local Launcher backend from the node index. |
|
Return the unique managed memory pool ID of the default logging pool from the node index. |
|
Return the unique channel ID based on host id, for a channel that initializes a client PMI process with its required pmod data. |
|
|
|
Get the unique Channel ID of local services from the node index. |
|
Get the unique Channel ID of the local transport agent from the nodex index. |
|
Get the unique process ID from the node index. |
Classes
Enumerated list of supported transport agents |
- GS_INPUT_CUID = 2
Input channel unique ID for Global Services head
- LAUNCHER_PUID = 0
Unique process ID for head user process started by the launcher
- GS_PUID = 1
Unique process ID given for the global services process
- FIRST_PUID = 4294967296
The first PUID for user applications launched by local services
- FIRST_TRANSPORT_PUID = 256
Base index used by the transport services for the unique process ID (puid)
- RANGE_TRANSPORT_PUID = 4294967040
Range of the unique process ID’s for the transport services
- BASE_PMOD_LAUNCH_CUID = 18014398509481984
Starting value for PMOD launch Channel ID (cuid) that communicates with the client pmod at process launch
- RANGE_PMOD_LAUNCH_CUID = 18014398509481984
Range for the PMOD launch channel ID’s (cuid) that communicates with the client pmod at process launch
- BASE_USER_MANAGED_CUID = 18014398509481984
Starting value of a reserved range of cuids that can be managed by a user
- RANGE_USER_MANAGED_CUID = 18014398509481984
Range for the user managed cuids
- BASE_TA_CUID = 36028797018963968
Starting value of the local transport agent channel unique ID (cuid)
- RANGE_TA_CUID = 36028797018963968
Range for the local transport agent channel ID’s (cuid)
- BASE_BE_FE_CUID = 72057594037927936
Starting value for the backend channel ID (cuid) that communicates with the frontend
- RANGE_BE_FE_CUID = 72057594037927936
Range for the backend channel ID’s (cuid) that communicate with the frontend
- BASE_BE_CUID = 144115188075855872
Starting value for the local launcher backend channel unique ID (cuid)
- RANGE_BE_CUID = 144115188075855872
Range for the local launcher backend channel ID’s (cuid)
- BASE_GW_CUID = 288230376151711744
Starting value for the gateway channel unique ID (cuid)
- RANGE_GW_CUID = 288230376151711744
Range for the gateway channel ID’s (cuid)
- BASE_LOG_CUID = 576460752303423488
Base value for the logging channel ID (cuid)
- RANGE_LOG_CUID = 576460752303423488
Range for the logging channel ID’s (cuid)
- BASE_BE_GW_CUID = 1152921504606846976
Starting value for the backend channel ID (cuid) of the infrastructure transport gateway channel
- RANGE_BE_GW_CUID = 1152921504606846976
Range for the backend channel ID’s (cuid) of the infrastructure transport gateway channel
- BASE_BE_LOCAL_CUID = 2305843009213693952
Starting value for the backend channel ID (cuid) that communicates with its transport agent
- RANGE_BE_LOCAL_CUID = 2305843009213693952
Range for the backend channel ID’s (cuid) that communicate with its transport agent
- SHEP_CUID_POW = 62
Starting value of the local services shepherd channel unique ID (cuid)
- RANGE_SHEP_CUID = 4611686018427387904
Range for the local services channel ID’s (cuid)
- FIRST_CUID = 9223372036854775808
Starting value of the User created channel ID (cuid)
- FIRST_BE_MUID = 1152921504606846976
First backend pool ID (MUID) needed for the overlay network transport
- RANGE_BE_MUID = 1152921504606846976
Range of the backend pool ID’s (MUID) needed for the overlay network transport
- FE_OVERLAY_TRANSPORT_AGENT_MUID = 1152921504606846975
Pool for the frontend overlay network transport agent
- FIRST_LOGGING_MUID = 2305843009213693952
First Logging MUID
- FIRST_DEFAULT_MUID = 4611686018427387904
First MUID of Default Pools.
- FIRST_MUID = 9223372036854775808
User Pool MUID starting value.
- FIRST_GUID = 9223372036854775808
Starting value for the Group of resources (guid)
- FRONTEND_HOSTID = 1
Frontend’s magic host ID
- transport_puid_from_index(index) int
Get the unique process ID from the node index. Otherwise, throw an
AssertionError
- launcher_cuid_from_index(index: int) int
Get the unique Channel ID of the local Launcher backend from the node index.
- transport_cuid_from_index(index: int) int
Get the unique Channel ID of the local transport agent from the nodex index.
- shepherd_cuid_from_index(index: int) int
Get the unique Channel ID of local services from the node index.
- gw_cuid_from_index(index: int, num_gw_channels: int) int
Return the unique Channel ID of the first gateway channel from the local node index
- be_gw_cuid_from_hostid(host_id)
Return the unique backend channel ID of the overlay network transport gateway channel, based on the host id
- be_fe_cuid_from_hostid(host_id)
Return the unique backend Channel ID that communicates with the fronted, based on the host id
- be_local_cuid_in_from_hostid(host_id)
Return the unique channel ID based on host id, for a backend channel that acts as an inbound initializer for its communication with transport agent
- be_local_cuid_out_from_hostid(host_id)
Return the unique channel ID based on host id, for a backend channel that acts as an outbound initializer for its communication with transport agent
- pmod_launch_cuid_from_jobinfo(host_id, job_id, lrank)
Return the unique channel ID based on host id, for a channel that initializes a client PMI process with its required pmod data.
- default_pool_muid_from_index(index: int) int
Return the unique managed memory pool ID of the default user pool from the node index.
- logging_pool_muid_from_index(index: int) int
Return the unique managed memory pool ID of the default logging pool from the node index.
- infrastructure_pool_muid_from_index(index: int) int
Return the unique managed memory pool ID of the default infrastructure pool from the node index.
- index_from_infrastructure_pool_muid(m_uid: int) int
Return the node index from the unique managed memory pool ID of the default infrastructure pool.
- Parameters:
m_uid – m_uid of the infrastructure pool
- Returns:
unique node index of this node
- Return type:
- be_pool_muid_from_hostid(host_id)
Return the backend memory pool unique ID based on the host index
- Parameters:
host_id – host id
- Returns:
unique ID of the backend memory pool
- Return type:
- is_pre_defined_pool(m_uid: int) bool
Return if the pool corresponding to the given
m_uid
is pre-defined by the runtime.
- index_from_shepherd_cuid(cuid: int) int
Retun the local node index from the
c_uid
of local services.
- is_default_pool(m_uid: int) bool
Check if the given
m_uid
is a defaultm_uid
. Otherwise throw anAssertionError
.
- index_from_default_pool_muid(m_uid: int) int
Return the unique node index from the default pool id.
- class TransportAgentOptions
Bases:
Enum
Enumerated list of supported transport agents
- HSTA = 'hsta'
- TCP = 'tcp'
- port_check(ip_port)
- get_port(min_port, port_range)