Silence variable array warnings

[ROCm/rocshmem commit: 719ee21da7]
Cette révision appartient à :
Brandon Potter
2024-07-11 13:50:11 -07:00
Parent 84679dc589
révision 02f68a6e39
2 fichiers modifiés avec 36 ajouts et 34 suppressions
+2 -2
Voir le fichier
@@ -120,7 +120,7 @@ __host__ MPI_Comm HostInterface::get_mpi_comm(int pe_start, int log_pe_stride,
/*
* If there is not one cached, create a new one (expensive)
*/
int active_set_ranks[pe_size]; // NOLINT
std::vector<int> active_set_ranks(pe_size);
int stride{1 << log_pe_stride};
active_set_ranks[0] = pe_start;
@@ -133,7 +133,7 @@ __host__ MPI_Comm HostInterface::get_mpi_comm(int pe_start, int log_pe_stride,
MPI_Comm_group(host_comm_world_, &comm_world_group);
MPI_Group_incl(comm_world_group, pe_size, active_set_ranks,
MPI_Group_incl(comm_world_group, pe_size, active_set_ranks.data(),
&active_set_group);
MPI_Comm_create_group(host_comm_world_, active_set_group, 0,