https://bugs.llvm.org/show_bug.cgi?id=41767
Bug ID: 41767
Summary: OpenMP default(none) + schedule(dynamic, variable) -
difference with gcc
Product: OpenMP
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Clang Compiler Support
Assignee: unassignedclangb...@nondot.org
Reporter: lebedev...@gmail.com
CC: llvm-bugs@lists.llvm.org
void sink();
void test(int chunkSize) {
#pragma omp parallel for default(none) schedule(dynamic, chunkSize)
for(int i = 0; i < 10; i++)
sink();
}
clang takes this, gcc does not:
source>: In function 'void test(int)':
<source>:4:5: error: 'chunkSize' not specified in enclosing 'parallel'
4 | for(int i = 0; i < 10; i++)
| ^~~
<source>:3:9: error: enclosing 'parallel'
3 | #pragma omp parallel for default(none) schedule(dynamic, chunkSize)
| ^~~
Compiler returned: 1
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs