1 // RUN: %libomptarget-compile-run-and-check-generic
6 int test_omp_get_num_devices() {
7 /* checks that omp_get_num_devices() > 0 */
8 int num_devices
= omp_get_num_devices();
9 printf("num_devices = %d\n", num_devices
);
14 return (num_devices
> 0);
21 if (!test_omp_get_num_devices()) {