https://bugs.llvm.org/show_bug.cgi?id=49880

            Bug ID: 49880
           Summary: OpenMP version printed for OMP_DISPLAY_ENV=1
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Runtime Library
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Currently, the runtime prints _OPENMP='201611', when exporting
OMP_DISPLAY_ENV=1.
This is other than the value of _OPENMP=201811 during compilation.
Furthermore, 201611 is not a value defined in any spec. 

As LC members would argue, an OpenMP implementation should always be seen as a
fixed combination of compiler and runtime. Such implementation should report a
consistent version (at least for the default usage).

Cases, where mileage might vary:
- flag -fopenmp-version=xy is passed to compiler -> compile-time value of
_OPENMP changes
- different compiler than clang is used while linking against libomp
- clang-compiled application/library is linked against a different OpenMP
runtime.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to