rocSHMEM environment variables#
This section describes the important environment variables used to control the behavior of rocSHMEM.
Environment variable |
Default |
Value |
|---|---|---|
Debug output level |
|
Levels (from least to most verbose):
Modifiers can be appended with
Examples: |
Selects the GPU memory allocator used for the symmetric heap. |
arch-dependent |
|
Defines the size of the rocSHMEM symmetric heap in bytes (per PE). |
|
Size in bytes (per PE). Note: the heap is on GPU memory. |
Maximum number of host-side communication contexts |
|
Maximum number of host-side contexts. |
Defines the number of contexts an application can use. |
|
Maximum number of contexts. |
Defines the number of teams an application can use. |
|
Maximum number of teams. |
When rocSHMEM is compiled for all backends, this environment variable selects which backend to execute. The default value is an empty string and rocSHMEM auto-selects the most appropriate backend. |
`` `` |
|
Defines whether rocSHMEM is expected to use MPI internally when using the uniqueId based initialization. |
|
|
Defines whether to force using the network backend even when IPC is available. |
|
|
Deprecated synonym for |
|
|
Selects the transport backing the host-initiated API (requires rocSHMEM
built with |
`` `` |
|
Forces the NIC that this PE uses. When this value is set NIC
auto-detection and mapping is disabled, the NIC specified in the variable
will be selected. Also used to select the NIC for the host-verbs
transport ( |
`` `` |
Example value: |
Comma separated list of NIC names that can be used by rocSHMEM. Unlike
|
`` `` |
Example value: |
Chooses the interface to bootstrap rocSHMEM with. Only valid when not using MPI. The default value is an empty string and rocSHMEM auto-detects the most appropriate interface. |
`` `` |
Example value: |
When rocSHMEM is compiled with support for multiple NIC vendors, the environment variable selects the desired provider. The default value is an empty string and rocSHMEM auto-detects the most appropriate NIC. |
`` `` |
|
Enables or disables alternating QP mappings across rocSHMEM contexts. |
|
|
When using an NIC with an Ethernet link layer, this sets the traffic class for the QPs. |
|
The traffic class number. |
Enables PCIe Relaxed Ordering when registering the symmetric heap with the RDMA NICs. |
|
|
Enable dmabuf support for memory registration. |
|
|
Selects between two algorithms to use for GDA based alltoallv. The GET algorithm uses an initial round of alltoallv communication to distribute displacements then a second round to get transfer data. This algorithm has a higher latency but has better performance for large messages. The COPY algorithm does an alltoallv communication pattern into a staging buffer then does a copy into the destination buffers. This reduces latency but requires more memory, this algorithm only works for small messages. |
|
|
This environment variable should be used with caution. It overrides the NIC firmware check if a user wants to use an unsupported NIC firmware. If the firmware check is disabled rocSHMEM is not guaranteed to work. |
|
|
This environment variable sets the length of the Send Queue (SQ) for GDA. |
|
Maximum number of Work Queue Entries (WQEs) posted on the Send Queue (SQ) |
Sets the number of Queue Pairs (QPs) to create per PE for the default context. |
|
Number of QPs per PE for the default context. |
Sets the number of Queue Pairs (QPs) to create per PE for each user context. |
|
Number of QPs per PE for each user context. |
GDA supports |
|
Maximum number of user buffer registrations for GDA |
Enables automatic topology-based NIC fusion, so a single PE can drive several NICs that are close to it in the PCIe topology (multi-NIC). |
|
|
Maximum PCIe path type considered when auto-merging NICs. NICs reachable
only through a longer path than this are not merged. Only meaningful when
|
|
|
Force-merges specific NICs by name, bypassing topology detection. NIC names within a rank group are comma-separated; rank groups are semicolon-separated. |
`` `` |
Example value: |
Controls how Queue Pairs (QPs) are bound to NICs when more than one NIC is in use. |
|
|
rocSHMEM supports |
|
Maximum number of symmetric user buffer registrations |
Maximum number of wavefront buffer arrays in default context (determines size of status, return, and atomic return buffers) |
|
|
Bootstrap initialization timeout in seconds |
|
|
Override host identifier for bootstrap. Empty string uses hostname. |
`` `` |
|
Socket family for bootstrap. |
|
|
Deprecated synonym for |
|
|
Delay of the RO backend’s host-side progress engine, in microseconds. A larger delay reduces load on the memory subsystem at the cost of latency. |
|
Delay in microseconds. |
Use a CPU-side queue for network operations in the reverse-offload backend. |
|
|
Enable or disable the SDMA transport at runtime. (build option
|
|
|
Minimum transfer size in bytes to route through the SDMA engine for per-lane operations. Wave and workgroup operations automatically scale the threshold by the wavefront size (e.g., 1024 × 64 = 64KB on gfx9). Transfers smaller than the effective threshold use load/store (IPC path) instead. |
|
Size in bytes. |
Number of SDMA channels (ring buffers) allocated per destination PE. More channels reduce CAS contention when many wavefronts submit concurrently, at the cost of additional queue memory and SDMA engine resources. If any rank on a node sets a value outside 1-8, every rank on that node aborts during initialization and names the rank(s) with the bad value. |
|
Number of channels per destination PE (1-8). |
When enabled, each wavefront within a workgroup selects its SDMA channel
using an offset based on its wavefront index: |
|
|
Tile size in bytes for LDS-staged work-group or wave put/get (requires
|
|
|
Minimum transfer size in bytes to route a put through the LDS-staged copy
path for work-group or wave put (requires |
|
Size in bytes. |
Minimum transfer size in bytes to route a get through the LDS-staged copy
path for work-group or wave get (requires |
|
Size in bytes. |