[Openmp-dev] Steps to create a OpenMP enabled compiler?

Cownie, James H james.h.cownie at intel.com
Thu Aug 21 09:19:08 PDT 2014


To be on the safe side, I've been trying to install a LLVM compatible OpenMP compiler.
In which case you need to download the compiler sources from http://clang-omp.github.io/ and build that too. :-)

-- Jim

James Cownie <james.h.cownie at intel.com>
SSG/DPD/TCAR (Technical Computing, Analyzers and Runtimes)
Tel: +44 117 9071438

From: Bargava Raman, Subramanian [mailto:bargava at gmail.com]
Sent: Thursday, August 21, 2014 5:15 PM
To: Cownie, James H
Cc: openmp-dev at dcs-maillist2.engr.illinois.edu
Subject: Re: [Openmp-dev] Steps to create a OpenMP enabled compiler?

Hi Jim,

If I am not wrong, XCode 5 symlinks gcc to clang. (XCode 5 for Mavericks doesnt seem to support the GNU gcc). And so, it has no OpenMP support.

Also, on installing gcc, I was told that gcc will not be binary compatible with Apple's LLVM-gcc and so, updating some of the existing libraries down the road may have issues (I may be wrong here though).

To be on the safe side, I've been trying to install a LLVM compatible OpenMP compiler.

Thanks,
Bargava

On Thu, Aug 21, 2014 at 6:29 PM, Cownie, James H <james.h.cownie at intel.com<mailto:james.h.cownie at intel.com>> wrote:
I’m sorry to say that I think you’re confused and have just wasted your time.
What you’ve done is to download and build the OpenMP runtime that is needed to work with the experimental OpenMP enabled clang front end.

But, what you seem to want to do is simply to have a compiler that can compile OpenMP codes.
Since you clearly already have gcc installed (otherwise you wouldn’t have been able to build the runtime by compiling it with gcc), I think you already have everything you need without building any compilers or compiler components.

AFAICT since you can run gcc, you should also be able to run g++, which has OpenMP support, and you aren’t interested in (and don’t need) the experimental clang, or the runtime to support it.

If you can’t just run g++, then check your PATHs and so on. (But none of that is relevant for debate here, since it’s all simply about installing GCC on your machine and making it work).

-- Jim

James Cownie <james.h.cownie at intel.com<mailto:james.h.cownie at intel.com>>
SSG/DPD/TCAR (Technical Computing, Analyzers and Runtimes)
Tel: +44 117 9071438<tel:%2B44%20117%209071438>

From: openmp-dev-bounces at cs.uiuc.edu<mailto:openmp-dev-bounces at cs.uiuc.edu> [mailto:openmp-dev-bounces at cs.uiuc.edu<mailto:openmp-dev-bounces at cs.uiuc.edu>] On Behalf Of Bargava Raman, Subramanian
Sent: Thursday, August 21, 2014 1:22 PM
To: openmp-dev at dcs-maillist2.engr.illinois.edu<mailto:openmp-dev at dcs-maillist2.engr.illinois.edu>
Subject: [Openmp-dev] Steps to create a OpenMP enabled compiler?

<<Apologies-This is a noob query>>

My aim is to use OpenMP compiler to compile some libraries to make them run multi-threaded. I am on Mac OSX - Mavericks. (The command I need to run is g++ -fopenmp mylib.cpp)

Following instructions from http://openmp.llvm.org/, I did the following

svn co http://llvm.org/svn/llvm-project/openmp/trunk openmp
cd openmp/runtime
make compiler=gcc

The make was successful. What should I do next?

Can someone please provide guidance?

Thanks,
Bargava


---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20140821/22721ff3/attachment.html>


More information about the Openmp-dev mailing list