We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee83f4f commit 113bb4cCopy full SHA for 113bb4c
clang/test/AST/ByteCode/openmp.cpp
@@ -17,12 +17,12 @@ extern int omp_get_thread_num(void);
17
18
int test2() {
19
int x = 0;
20
- int device_result[N] = {0};
+ int result[N] = {0};
21
22
- #pragma omp target parallel loop num_threads(strict: N) severity(warning) message("msg")
+ #pragma omp parallel loop num_threads(strict: N) severity(warning) message("msg")
23
for (int i = 0; i < N; i++) {
24
x = omp_get_thread_num();
25
- device_result[i] = i + x;
+ result[i] = i + x;
26
}
27
28
0 commit comments