<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>Hi Jonas, 
<div><br>
</div>
<div>Thank you for the fast answer. Just to be clear: the -DCLANG_DEFAULT_OPENMP_RUNTIME=libomp flag is specified at configuration time to LLVM, not to the libomp runtime, am I correct? </div>
<div><br>
</div>
<div>Yours </div>
<div><br>
</div>
<div>Michael </div>
<br>
<br>
-------- Original message --------<br>
From: "Hahnfeld, Jonas" <Hahnfeld@itc.rwth-aachen.de> <br>
Date: 20/07/2015 09:50 (GMT+01:00) <br>
To: "Schlottke-Lakemper, Michael" <m.schlottke-lakemper@aia.rwth-aachen.de>, openmp-dev@dcs-maillist2.engr.illinois.edu
<br>
Subject: RE: [Openmp-dev] _OPENMP undefined unless compiling with -fopenmp=libiomp5
<br>
<br>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi Michael,<br>
<br>
there is a CMake configuration "-DCLANG_DEFAULT_OPENMP_RUNTIME=libomp" which one can use to make "-fopenmp" work by default.<br>
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...<br>
<br>
Greetings,<br>
Jonas<br>
<br>
From: openmp-dev-bounces@cs.uiuc.edu [<a href="mailto:openmp-dev-bounces@cs.uiuc.edu">mailto:openmp-dev-bounces@cs.uiuc.edu</a>] On Behalf Of Schlottke-Lakemper, Michael<br>
Sent: Sunday, July 19, 2015 7:58 AM<br>
To: openmp-dev@dcs-maillist2.engr.illinois.edu<br>
Subject: [Openmp-dev] _OPENMP undefined unless compiling with -fopenmp=libiomp5<br>
<br>
Hi everyone, <br>
<br>
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.<br>
<br>
Thanks a lot!<br>
<br>
Michael<br>
<br>
--<br>
Michael Schlottke-Lakemper<br>
<br>
SimLab Highly Scalable Fluids & Solids Engineering<br>
Jülich Aachen Research Alliance (JARA-HPC)<br>
RWTH Aachen University<br>
Wüllnerstraße 5a<br>
52062 Aachen<br>
Germany<br>
<br>
Phone: +49 (241) 80 95188<br>
Fax: +49 (241) 80 92257<br>
Mail: m.schlottke-lakemper@aia.rwth-aachen.de<br>
Web: <a href="http://www.jara.org/jara-hpc">http://www.jara.org/jara-hpc</a><br>
<br>
</div>
</span></font>
</body>
</html>