[Openmp-commits] [openmp] 006cd37 - [OpenMP][Obvious] Fix incorrect variant selector in test
Joseph Huber via Openmp-commits
openmp-commits at lists.llvm.org
Wed Oct 25 11:48:48 PDT 2023
Author: Joseph Huber
Date: 2023-10-25T13:48:30-05:00
New Revision: 006cd37960c9be9ed37ca4075187b57432264f9a
URL: https://github.com/llvm/llvm-project/commit/006cd37960c9be9ed37ca4075187b57432264f9a
DIFF: https://github.com/llvm/llvm-project/commit/006cd37960c9be9ed37ca4075187b57432264f9a.diff
LOG: [OpenMP][Obvious] Fix incorrect variant selector in test
Summary:
This should be `kind` and not `arch`.
Added:
Modified:
openmp/libomptarget/test/api/ompx_3d.c
openmp/libomptarget/test/api/ompx_3d.cpp
Removed:
################################################################################
diff --git a/openmp/libomptarget/test/api/ompx_3d.c b/openmp/libomptarget/test/api/ompx_3d.c
index 3c5078c273ace14..2ae17c226f3a482 100644
--- a/openmp/libomptarget/test/api/ompx_3d.c
+++ b/openmp/libomptarget/test/api/ompx_3d.c
@@ -22,7 +22,7 @@ void foo(int device) {
}
int isGPU() { return 0; }
-#pragma omp declare variant(isGPU) match(device = {arch(gpu)})
+#pragma omp declare variant(isGPU) match(device = {kind(gpu)})
int isGPUvariant() { return 1; }
int defaultIsGPU() {
diff --git a/openmp/libomptarget/test/api/ompx_3d.cpp b/openmp/libomptarget/test/api/ompx_3d.cpp
index 9b99d28899b7150..5b5491263a917c5 100644
--- a/openmp/libomptarget/test/api/ompx_3d.cpp
+++ b/openmp/libomptarget/test/api/ompx_3d.cpp
@@ -22,7 +22,7 @@ void foo(int device) {
}
int isGPU() { return 0; }
-#pragma omp declare variant(isGPU) match(device = {arch(gpu)})
+#pragma omp declare variant(isGPU) match(device = {kind(gpu)})
int isGPUvariant() { return 1; }
int defaultIsGPU() {
More information about the Openmp-commits
mailing list