Index: libomptarget/test/offloading/offloading_success.c =================================================================== --- libomptarget/test/offloading/offloading_success.c +++ libomptarget/test/offloading/offloading_success.c @@ -9,7 +9,7 @@ int main(void) { int isHost = -1; -#pragma omp target +#pragma omp target map(from:isHost) { isHost = omp_is_initial_device(); } if (isHost < 0) { Index: libomptarget/test/offloading/offloading_success.cpp =================================================================== --- libomptarget/test/offloading/offloading_success.cpp +++ libomptarget/test/offloading/offloading_success.cpp @@ -9,7 +9,7 @@ int main(void) { int isHost = 0; -#pragma omp target +#pragma omp target map(from: isHost) { isHost = omp_is_initial_device(); } if (isHost < 0) {