[clang] Propagate -ftime-report to offload lto (#122143)
[llvm-project.git] / openmp / runtime / test / api / omp_get_num_devices.c
blobda79b95e4a65229fd431c1de38205767bd2336a7
1 // RUN: %libomp-compile-and-run
2 // Linking fails for icc 18
3 // UNSUPPORTED: icc-18
5 #include <stdio.h>
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);
16 int main()
18 int i;
19 int num_failed=0;
21 for(i = 0; i < REPETITIONS; i++) {
22 if(!test_omp_get_num_devices()) {
23 num_failed++;
26 return num_failed;