Library Handles

The NVSHMEM library provides a set of predefined named constant handles. All named constants can be used in initialization expressions or assignments, but not necessarily in array declarations or as labels in C switch statements. This implies named constants to be link-time but not necessarily compile-time constants.

NVSHMEM_TEAM_WORLD

Handle of type nvshmem_team_t that corresponds to the world team that contains all PEs in the NVSHMEM program.

NVSHMEMX_TEAM_NODE

Handle of type nvshmem_team_t that corresponds to the team that contains all PEs in the same node as the calling PE. Using this team in a call to nvshmem_team_my_pe may provide an index suitable for use with cudaSetDevice.