[llvm-bugs] [Bug 49880] New: OpenMP version printed for OMP_DISPLAY_ENV=1
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 7 05:14:32 PDT 2021
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: unassignedbugs at nondot.org
Reporter: protze at itc.rwth-aachen.de
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210407/b5896ff1/attachment-0001.html>
More information about the llvm-bugs
mailing list