From 7ec263672cfe1220f032dc8c5f02d75e4c4b1829 Mon Sep 17 00:00:00 2001 From: George Rokos Date: Thu, 27 Apr 2017 18:54:00 +0000 Subject: [PATCH] [OpenMP] libomptarget: test correction for use with OpenMP 4.5 Differential Revision: https://reviews.llvm.org/D32562 Thanks to Sergey Dmitriev for submitting the patch. llvm-svn: 301577 --- openmp/libomptarget/test/offloading/offloading_success.c | 2 +- openmp/libomptarget/test/offloading/offloading_success.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openmp/libomptarget/test/offloading/offloading_success.c b/openmp/libomptarget/test/offloading/offloading_success.c index 6973301..12e78fa 100644 --- a/openmp/libomptarget/test/offloading/offloading_success.c +++ b/openmp/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) { diff --git a/openmp/libomptarget/test/offloading/offloading_success.cpp b/openmp/libomptarget/test/offloading/offloading_success.cpp index 5b05302..eecd97a 100644 --- a/openmp/libomptarget/test/offloading/offloading_success.cpp +++ b/openmp/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) { -- 2.7.4