silence warnings in functional testsuite
check the return code of hip functions in order to silence some
warnings.
[ROCm/rocshmem commit: 7e7bc4b0a9]
This commit is contained in:
@@ -39,9 +39,9 @@ int main(int argc, char *argv[]) {
|
||||
*/
|
||||
int rank = roc_shmem_my_pe();
|
||||
int ndevices, my_device = 0;
|
||||
hipGetDeviceCount(&ndevices);
|
||||
CHECK_HIP(hipGetDeviceCount(&ndevices));
|
||||
my_device = rank % ndevices;
|
||||
hipSetDevice(my_device);
|
||||
CHECK_HIP(hipSetDevice(my_device));
|
||||
|
||||
/**
|
||||
* Must initialize rocshmem to access arguments needed by the tester.
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user