silence warnings in functional testsuite

check the return code of hip functions in order to silence some
warnings.
This commit is contained in:
Edgar Gabriel
2024-07-02 10:07:43 -07:00
orang tua d4bb03503e
melakukan 7e7bc4b0a9
11 mengubah file dengan 50 tambahan dan 40 penghapusan
+2 -2
Melihat File
@@ -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.