File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -422,11 +422,12 @@ static void checkNvshmemVersion(cudecompHandle_t& handle) {
422422 bool has_signal_bug = (major < 3 ) || (major == 3 && minor < 2 ) || (major == 3 && minor == 2 && patch <= 5 );
423423 if (has_signal_bug) {
424424 const char * granularity_str = std::getenv (" NVSHMEM_CUMEM_GRANULARITY" );
425- if (granularity_str && handle->rank == 0 ) {
425+ if (granularity_str && std::string (granularity_str) != " 2147483648 " && handle->rank == 0 ) {
426426 printf (" CUDECOMP:WARN: Overriding NVSHMEM_CUMEM_GRANULARITY (was %s) to 2 GiB to work around "
427427 " a known bug in NVSHMEM %d.%d.%d affecting putmem_signal for inter-group transfers.\n " ,
428428 granularity_str, major, minor, patch);
429429 }
430+ CHECK_MPI (MPI_Barrier (handle->mpi_comm ));
430431 setenv (" NVSHMEM_CUMEM_GRANULARITY" , " 2147483648" , 1 );
431432 }
432433}
You can’t perform that action at this time.
0 commit comments