@@ -161,6 +161,7 @@ ncclResult_t ncclCommRegister_impl(const ncclComm_t comm, void* buff, size_t siz
161
161
NCCLCHECK (CommCheck (comm, " ncclCommRegister" , " comm" ));
162
162
if (comm->checkPointers ) NCCLCHECK (CudaPtrCheck (buff, comm, " buff" , " ncclCommRegister" ));
163
163
#ifdef ENABLE_MSCCLPP
164
+ if (comm->mscclppCompatible ) {
164
165
if (comm->mscclCompatible && size > 0 ){
165
166
bool isManagedBuffer = false ;
166
167
CUDACHECK (hipPointerGetAttribute (&isManagedBuffer, HIP_POINTER_ATTRIBUTE_IS_MANAGED, const_cast <void *>(buff)));
@@ -173,6 +174,7 @@ ncclResult_t ncclCommRegister_impl(const ncclComm_t comm, void* buff, size_t siz
173
174
WARN (" MSCCL++: Cannot register user-buffers on managed memory. RCCL user-buffer registration will occur." );
174
175
}
175
176
}
177
+ }
176
178
#endif
177
179
INFO (NCCL_INIT, " RCCL: ncclCommRegister" );
178
180
NCCLCHECK (ncclRegister (comm, buff, size, handle));
@@ -183,11 +185,13 @@ NCCL_API(ncclResult_t, ncclCommDeregister, const ncclComm_t comm, void* handle);
183
185
ncclResult_t ncclCommDeregister_impl (const ncclComm_t comm, void * handle) {
184
186
185
187
#ifdef ENABLE_MSCCLPP
188
+ if (comm->mscclppCompatible ) {
186
189
const size_t size = mscclpp_BufferSize (comm->mscclpp_comm , handle);
187
190
if (comm->mscclCompatible && size > 0 ) {
188
191
NCCLCHECK (mscclpp_ncclCommDeregister (comm->mscclpp_comm , handle));
189
192
return ncclSuccess;
190
193
}
194
+ }
191
195
#endif
192
196
193
197
NCCLCHECK (CommCheck (comm, " ncclCommRegister" , " comm" ));
0 commit comments