Multi-Node rocshmem_finalize() bug (#138)

Этот коммит содержится в:
Yiltan
2025-06-04 10:02:03 -04:00
коммит произвёл GitHub
родитель ca5fdd4718
Коммит 3f01d89207
18 изменённых файлов: 175 добавлений и 237 удалений
-11
Просмотреть файл
@@ -86,18 +86,7 @@ Backend::Backend(MPI_Comm comm) : heap{comm} {
}
void Backend::init_mpi_once(MPI_Comm comm) {
int init_done{};
NET_CHECK(MPI_Initialized(&init_done));
int provided{};
if (!init_done) {
NET_CHECK(MPI_Init_thread(0, 0, MPI_THREAD_MULTIPLE, &provided));
if (provided != MPI_THREAD_MULTIPLE) {
fprintf(stderr, "MPI_THREAD_MULTIPLE support disabled.\n");
}
}
if (comm == MPI_COMM_NULL) comm = MPI_COMM_WORLD;
NET_CHECK(MPI_Comm_dup(comm, &backend_comm));
NET_CHECK(MPI_Comm_size(backend_comm, &num_pes));
NET_CHECK(MPI_Comm_rank(backend_comm, &my_pe));