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