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

[ROCm/rccl commit: ba9f7917ba]
Bu işleme şunda yer alıyor:
Shilei Tian
2024-01-26 11:00:27 -05:00
işlemeyi yapan: GitHub
ebeveyn a184aabda5
işleme 49f0e82815
+2
Dosyayı Görüntüle
@@ -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);