Fix undefined symbol when nvtx is not enabled (#1082)

[ROCm/rccl commit: 1f0af90206]
Tá an tiomantas seo le fáil i:
Wenkai Du údaraithe agus GitHub tiomanta 2024-02-13 14:03:43 -08:00
1 tuismitheoir bee47d9e91
tiomantas 2f14acf770
1 comhad athraithe
+2
+2
Féach ar an gComhad
@@ -11,6 +11,7 @@ static constexpr const nvtxPayloadEnum_t NvtxEnumRedSchema[] = {
// Must be called before the first call to any reduction operation.
void initNvtxRegisteredEnums() {
#ifndef NVTX_NO_IMPL
// Register schemas and strings
constexpr const nvtxPayloadEnumAttr_t eAttr {
.fieldMask = NVTX_PAYLOAD_ENUM_ATTR_ENTRIES | NVTX_PAYLOAD_ENUM_ATTR_NUM_ENTRIES |
@@ -23,4 +24,5 @@ void initNvtxRegisteredEnums() {
};
nvtxPayloadEnumRegister(nvtx3::domain::get<nccl_domain>(), &eAttr);
#endif
}