Home
last modified time | relevance | path

Searched refs:isHost (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/openmp/libomptarget/test/mapping/
H A Ddelete_inf_refcount.c7 int isHost; variable
11 isHost = -1; in main()
13 #pragma omp target enter data map(to: isHost) in main()
16 { isHost = omp_is_initial_device(); } in main()
17 #pragma omp target update from(isHost) in main()
19 if (isHost < 0) { in main()
20 printf("Runtime error, isHost=%d\n", isHost); in main()
23 #pragma omp target exit data map(delete: isHost) in main()
26 printf("Target region executed on the %s\n", isHost ? "host" : "device"); in main()
28 return isHost; in main()
/llvm-project-15.0.7/openmp/libomptarget/test/offloading/
H A Doffloading_success.c7 int isHost = -1; in main() local
9 #pragma omp target map(from: isHost) in main()
10 { isHost = omp_is_initial_device(); } in main()
12 if (isHost < 0) { in main()
13 printf("Runtime error, isHost=%d\n", isHost); in main()
17 printf("Target region executed on the %s\n", isHost ? "host" : "device"); in main()
19 return isHost; in main()
H A Doffloading_success.cpp7 int isHost = 0; in main() local
9 #pragma omp target map(from: isHost) in main()
10 { isHost = omp_is_initial_device(); } in main()
12 if (isHost < 0) { in main()
13 printf("Runtime error, isHost=%d\n", isHost); in main()
17 printf("Target region executed on the %s\n", isHost ? "host" : "device"); in main()
19 return isHost; in main()
/llvm-project-15.0.7/clang/test/OpenMP/
H A Ddeferred-diags.cpp21 void barB(int *isHost) { in barB() argument
22 #pragma omp target map(tofrom: isHost) in barB()
24 *isHost = foo(); in barB()
31 void barA(int *isHost) { in barA() argument
32 #pragma omp target map(tofrom: isHost) in barA()
34 barB(isHost); in barA()
/llvm-project-15.0.7/openmp/tools/Modules/
H A DFindOpenMPTarget.cmake159 int isHost;
160 #pragma omp target map(from: isHost)
161 { isHost = omp_is_initial_device(); }
162 return isHost;