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

[ROCm/rccl commit: 1f0af90206]
Dieser Commit ist enthalten in:
Wenkai Du
2024-02-13 14:03:43 -08:00
committet von GitHub
Ursprung bee47d9e91
Commit 2f14acf770
+2
Datei anzeigen
@@ -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
}