[Openmp-dev] _OPENMP undefined unless compiling with -fopenmp=libiomp5
Hahnfeld, Jonas
Hahnfeld at itc.rwth-aachen.de
Mon Jul 20 00:50:55 PDT 2015
Hi Michael,
there is a CMake configuration "-DCLANG_DEFAULT_OPENMP_RUNTIME=libomp" which one can use to make "-fopenmp" work by default.
And from my information there are plans to make it the default when this library is fully integrated into the LLVM build system. This is currently work in progress...
Greetings,
Jonas
From: openmp-dev-bounces at cs.uiuc.edu [mailto:openmp-dev-bounces at cs.uiuc.edu] On Behalf Of Schlottke-Lakemper, Michael
Sent: Sunday, July 19, 2015 7:58 AM
To: openmp-dev at dcs-maillist2.engr.illinois.edu
Subject: [Openmp-dev] _OPENMP undefined unless compiling with -fopenmp=libiomp5
Hi everyone,
Right now we have to provide not just “-fopenmp” but “-fopenmp=libiomp5” if we want full support for OpenMP when compiling on Linux (without the explicit library, _OPENMP is undefined and there is only a single thread). Are there plans to drop this requirement and support plain “-fopenmp”? I’m asking since it would make things much easier for our users when transitioning from gcc to clang.
Thanks a lot!
Michael
--
Michael Schlottke-Lakemper
SimLab Highly Scalable Fluids & Solids Engineering
Jülich Aachen Research Alliance (JARA-HPC)
RWTH Aachen University
Wüllnerstraße 5a
52062 Aachen
Germany
Phone: +49 (241) 80 95188
Fax: +49 (241) 80 92257
Mail: m.schlottke-lakemper at aia.rwth-aachen.de
Web: http://www.jara.org/jara-hpc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20150720/0512332f/attachment.bin>
More information about the Openmp-dev
mailing list