[llvm-bugs] [Bug 41767] New: OpenMP default(none) + schedule(dynamic, variable) - difference with gcc

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 6 06:55:35 PDT 2019


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: unassignedclangbugs at nondot.org
          Reporter: lebedev.ri at gmail.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190506/2c643e0a/attachment.html>


More information about the llvm-bugs mailing list