Skip to content

Commit 113bb4c

Browse files
committed
remove target from parallel in clang/test/AST/ByteCode/openmp.cpp
1 parent ee83f4f commit 113bb4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/AST/ByteCode/openmp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ extern int omp_get_thread_num(void);
1717

1818
int test2() {
1919
int x = 0;
20-
int device_result[N] = {0};
20+
int result[N] = {0};
2121

22-
#pragma omp target parallel loop num_threads(strict: N) severity(warning) message("msg")
22+
#pragma omp parallel loop num_threads(strict: N) severity(warning) message("msg")
2323
for (int i = 0; i < N; i++) {
2424
x = omp_get_thread_num();
25-
device_result[i] = i + x;
25+
result[i] = i + x;
2626
}
2727
}
2828

0 commit comments

Comments
 (0)