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 committed 2024-07-02 10:07:43 -07:00
1 parent d4bb03503e
commit 7e7bc4b0a9
11 files changed
+50 -40

No files matched your search

+2 -2
View 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.