[Openmp-commits] [PATCH] D159119: [OpenMP] Enable optimization level for memory_manager.cpp OpenMP test.
Gheorghe-Teodor Bercea via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Aug 31 08:33:26 PDT 2023
doru1004 updated this revision to Diff 555061.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159119/new/
https://reviews.llvm.org/D159119
Files:
openmp/libomptarget/test/offloading/memory_manager.cpp
Index: openmp/libomptarget/test/offloading/memory_manager.cpp
===================================================================
--- openmp/libomptarget/test/offloading/memory_manager.cpp
+++ openmp/libomptarget/test/offloading/memory_manager.cpp
@@ -1,6 +1,5 @@
-// RUN: %libomptarget-compilexx-run-and-check-generic
+// RUN: %libomptarget-compileoptxx-run-and-check-generic
-// UNSUPPORTED: amdgcn-amd-amdhsa
// UNSUPPORTED: x86_64-pc-linux-gnu
// UNSUPPORTED: x86_64-pc-linux-gnu-LTO
@@ -22,13 +21,13 @@
for (int i = 0; i < 16; ++i) {
for (int n = 1; n < (1 << 13); n <<= 1) {
int *p = (int *)omp_target_alloc(n * sizeof(int), 0);
-#pragma omp target teams distribute parallel for is_device_ptr(p)
+#pragma omp target teams distribute parallel for is_device_ptr(p) device(0)
for (int j = 0; j < n; ++j) {
p[j] = i;
}
int buffer[n];
#pragma omp target teams distribute parallel for is_device_ptr(p) \
- map(from : buffer)
+ map(from : buffer) device(0)
for (int j = 0; j < n; ++j) {
buffer[j] = p[j];
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159119.555061.patch
Type: text/x-patch
Size: 1100 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230831/8f19fc96/attachment.bin>
More information about the Openmp-commits
mailing list