CUpti_ActivityNvLink Struct Reference
[CUPTI Activity API]

NVLink information. (deprecated in CUDA 9.0). More...


Data Fields

uint64_t bandwidth
uint32_t flag
union {
idDev0
union {
idDev1
CUpti_ActivityKind kind
uint32_t nvlinkVersion
uint32_t physicalNvLinkCount
int8_t portDev0 [4]
int8_t portDev1 [4]
CUpti_DevType typeDev0
CUpti_DevType typeDev1
uint32_t domainId
uint32_t index


Detailed Description

This structure gives capabilities of each logical NVLink connection between two devices, gpu<->gpu or gpu<->CPU which can be used to understand the topology. NVLink information are now reported using the CUpti_ActivityNvLink2 activity record.

Field Documentation

Banwidth of NVLink in kbytes/sec

Domain ID of NPU. On Linux, this can be queried using lspci.

Flag gives capabilities of the link

See also:
CUpti_LinkFlag

If typeDev0 is CUPTI_DEV_TYPE_GPU, UUID for device 0. CUpti_ActivityDevice4. If typeDev0 is CUPTI_DEV_TYPE_NPU, struct npu for NPU.

If typeDev1 is CUPTI_DEV_TYPE_GPU, UUID for device 1. CUpti_ActivityDevice4. If typeDev1 is CUPTI_DEV_TYPE_NPU, struct npu for NPU.

Index of the NPU. First index will always be zero.

The activity record kind, must be CUPTI_ACTIVITY_KIND_NVLINK.

NVLink version.

Number of physical NVLinks present between two devices.

Port numbers for maximum 4 NVLinks connected to device 0. If typeDev0 is CUPTI_DEV_TYPE_NPU, ignore this field. In case of invalid/unknown port number, this field will be set to value CUPTI_NVLINK_INVALID_PORT. This will be used to correlate the metric values to individual physical link and attribute traffic to the logical NVLink in the topology.

Port numbers for maximum 4 NVLinks connected to device 1. If typeDev1 is CUPTI_DEV_TYPE_NPU, ignore this field. In case of invalid/unknown port number, this field will be set to value CUPTI_NVLINK_INVALID_PORT. This will be used to correlate the metric values to individual physical link and attribute traffic to the logical NVLink in the topology.

Type of device 0 CUpti_DevType

Type of device 1 CUpti_DevType


Generated on Tue Jul 12 11:16:29 2022 for Cupti by  doxygen 1.5.8