Add ncclDataType_t as type to ROCTX (#1512)

This commit is contained in:
Bertan Dogancay
2025-01-30 13:46:48 -05:00
committed by GitHub
parent 6b2b87c9f8
commit ecf31da14f
5 changed files with 86 additions and 32 deletions
+5
View File
@@ -254,6 +254,11 @@
#define NVTX_PAYLOAD_ENTRY_TYPE_BF16 50
#define NVTX_PAYLOAD_ENTRY_TYPE_TF32 52
/**
* Generic data type
*/
#define NVTX_PAYLOAD_ENTRY_TYPE_DATATYPE 53
/**
* Data types are as defined by NVTXv3 core.
*/
+3
View File
@@ -32,6 +32,7 @@ enum roctxPayloadEntryType {
ROCTX_PAYLOAD_ENTRY_TYPE_INT,
ROCTX_PAYLOAD_ENTRY_TYPE_SIZE,
ROCTX_PAYLOAD_ENTRY_TYPE_REDOP,
ROCTX_PAYLOAD_ENTRY_TYPE_DATATYPE,
ROCTX_PAYLOAD_NUM_ENTRY_TYPES
};
@@ -58,6 +59,7 @@ struct roctxPayloadSchemaEntryInfo {
int typeInt;
size_t typeSize;
ncclDevRedOp_t typeRedOp;
ncclDataType_t typeDataType;
} payload;
};
@@ -88,6 +90,7 @@ typedef roctxPayloadInfo* roctxPayloadInfo_t;
extern const char* roctxEntryTypeStr[ROCTX_PAYLOAD_NUM_ENTRY_TYPES];
extern const char* ncclRedOpStr[ncclNumDevRedOps];
extern const char* ncclDataTypeStr[ncclNumTypes];
/**
* \brief Maps nvtx types to roctx types.