[Openmp-commits] [openmp] r301577 - [OpenMP] libomptarget: test correction for use with OpenMP 4.5
George Rokos via Openmp-commits
openmp-commits at lists.llvm.org
Thu Apr 27 11:54:01 PDT 2017
Author: grokos
Date: Thu Apr 27 13:54:00 2017
New Revision: 301577
URL: http://llvm.org/viewvc/llvm-project?rev=301577&view=rev
Log:
[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.
Modified:
openmp/trunk/libomptarget/test/offloading/offloading_success.c
openmp/trunk/libomptarget/test/offloading/offloading_success.cpp
Modified: openmp/trunk/libomptarget/test/offloading/offloading_success.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/libomptarget/test/offloading/offloading_success.c?rev=301577&r1=301576&r2=301577&view=diff
==============================================================================
--- openmp/trunk/libomptarget/test/offloading/offloading_success.c (original)
+++ openmp/trunk/libomptarget/test/offloading/offloading_success.c Thu Apr 27 13:54:00 2017
@@ -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) {
Modified: openmp/trunk/libomptarget/test/offloading/offloading_success.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/libomptarget/test/offloading/offloading_success.cpp?rev=301577&r1=301576&r2=301577&view=diff
==============================================================================
--- openmp/trunk/libomptarget/test/offloading/offloading_success.cpp (original)
+++ openmp/trunk/libomptarget/test/offloading/offloading_success.cpp Thu Apr 27 13:54:00 2017
@@ -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) {
More information about the Openmp-commits
mailing list