silence warnings in functional testsuite

check the return code of hip functions in order to silence some
warnings.
Этот коммит содержится в:
Edgar Gabriel
2024-07-02 10:07:43 -07:00
родитель d4bb03503e
Коммит 7e7bc4b0a9
11 изменённых файлов: 50 добавлений и 40 удалений
+2 -2
Просмотреть файл
@@ -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.