Skip to content

Commit 006cd37

Browse files
committed
[OpenMP][Obvious] Fix incorrect variant selector in test
Summary: This should be `kind` and not `arch`.
1 parent d4e6e40 commit 006cd37

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openmp/libomptarget/test/api/ompx_3d.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void foo(int device) {
2222
}
2323

2424
int isGPU() { return 0; }
25-
#pragma omp declare variant(isGPU) match(device = {arch(gpu)})
25+
#pragma omp declare variant(isGPU) match(device = {kind(gpu)})
2626
int isGPUvariant() { return 1; }
2727

2828
int defaultIsGPU() {

openmp/libomptarget/test/api/ompx_3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void foo(int device) {
2222
}
2323

2424
int isGPU() { return 0; }
25-
#pragma omp declare variant(isGPU) match(device = {arch(gpu)})
25+
#pragma omp declare variant(isGPU) match(device = {kind(gpu)})
2626
int isGPUvariant() { return 1; }
2727

2828
int defaultIsGPU() {

0 commit comments

Comments
 (0)