1 // RUN: %libomp-compile-and-run
2 // Linking fails for icc 18
6 #include "omp_testsuite.h"
8 int test_omp_get_num_devices()
10 /* checks that omp_get_device_num */
11 int num_devices
= omp_get_num_devices();
13 return (num_devices
== 0);
21 for(i
= 0; i
< REPETITIONS
; i
++) {
22 if(!test_omp_get_num_devices()) {