From ba9f7917ba741605ac5513832b87ecf3e2e3ecdd Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Fri, 26 Jan 2024 11:00:27 -0500 Subject: [PATCH] Add a constructor for `PtrUnion` in case it is not initialized explicitly (#1064) --- test/common/PtrUnion.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/common/PtrUnion.hpp b/test/common/PtrUnion.hpp index f29d41a0bc..d905648942 100644 --- a/test/common/PtrUnion.hpp +++ b/test/common/PtrUnion.hpp @@ -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);