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

Этот коммит содержится в:
Shilei Tian authored and GitHub committed 2024-01-26 08:00:27 -08:00
1 родитель ccfb35fa6d
Коммит ba9f7917ba
1 file changed
+2
+2
Просмотреть файл
@@ -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);