aboutsummaryrefslogtreecommitdiff
path: root/offload/test/api/omp_get_num_procs.c
blob: 24222d32983b4ea8c3ee66758ff12c0e96511165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %libomptarget-compile-run-and-check-generic
// XFAIL: intelgpu

#include <stdio.h>

int omp_get_num_procs(void);

int main() {
  int num_procs;
#pragma omp target map(from : num_procs)
  { num_procs = omp_get_num_procs(); }

  // CHECK: PASS
  if (num_procs > 0)
    printf("PASS\n");
}