repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bump version to 19.1.0-rc3
[llvm-project.git]
/
offload
/
test
/
api
/
omp_get_num_procs.c
blob
e958d0cf3492f68c642291ce0f32b69d5e9e32d1
1
// RUN: %libomptarget-compile-run-and-check-generic
2
3
#include <stdio.h>
4
5
int
omp_get_num_procs
(
void
);
6
7
int
main
() {
8
int
num_procs
;
9
#pragma omp target map(from : num_procs)
10
{
num_procs
=
omp_get_num_procs
(); }
11
12
// CHECK: PASS
13
if
(
num_procs
>
0
)
14
printf
(
"PASS
\n
"
);
15
}