Add a constructor for PtrUnion in case it is not initialized explicitly (#1064)

[ROCm/rccl commit: ba9f7917ba]
This commit is contained in:
Shilei Tian
2024-01-26 11:00:27 -05:00
committed by GitHub
parent a184aabda5
commit 49f0e82815
+2
View File
@@ -47,6 +47,8 @@ namespace RcclUnitTesting
double* F8; // ncclFloat64
rccl_bfloat16* B2; // ncclBfloat16
constexpr PtrUnion() : ptr(nullptr) {}
ErrCode Attach(void *ptr);
ErrCode Attach(PtrUnion ptrUnion);