Multi-Node rocshmem_finalize() bug (#138)

[ROCm/rocshmem commit: 3f01d89207]
Αυτή η υποβολή περιλαμβάνεται σε:
Yiltan
2025-06-04 10:02:03 -04:00
υποβλήθηκε από GitHub
γονέας 032d5e5c6b
υποβολή bceeadeb63
18 αρχεία άλλαξαν με 175 προσθήκες και 237 διαγραφές
@@ -39,11 +39,8 @@ int main(int argc, char *argv[]) {
/***
* Select a GPU
*/
int rank = rocshmem_my_pe();
int ndevices, my_device = 0;
CHECK_HIP(hipGetDeviceCount(&ndevices));
my_device = rank % ndevices;
CHECK_HIP(hipSetDevice(my_device));
char* ompi_local_rank = getenv("OMPI_COMM_WORLD_LOCAL_RANK");
CHECK_HIP(hipSetDevice(atoi(ompi_local_rank)));
/**
* Must initialize rocshmem to access arguments needed by the tester.