1 // RUN: %libomptarget-compile-run-and-check-generic
6 int test_omp_get_device_num() {
7 /* checks that omp_get_device_num() == omp_get_num_devices() in the host */
8 int device_num
= omp_get_device_num();
9 printf("device_num = %d\n", device_num
);
14 return (device_num
== omp_get_num_devices());
21 if (!test_omp_get_device_num()) {