[Openmp-dev] How to compile OpenMP programs with Clang

Millad Ghane millad.mg at gmail.com
Thu Sep 11 15:07:19 PDT 2014

Hello everybody,

I am a little new to the community. So, my question may look like a bit
simple to you.

I want to compile my OpenMP programs with Clang. So, I installed it as
mentioned in this URL (http://clang.llvm.org/get_started.html). Then, I
downloaded the source of OpenMP from the public svn repo and build the
program as mentioned in here (http://openmp.llvm.org/). I run following
commands after downloading the source code from SVN:
1- cd openmp/runtime
2- make compiler=clang

Now, my question lies in here. How can I compile my simple OpenMP
Hello-World program? Can somebody write down the commands and its options
for me? I am really confused. It is told that Clang can do the compilation
by itself by providing the "-fopenmp" switch (option). But, I can see that
it does nothing.

Best Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20140911/23f49d4e/attachment.html>

More information about the Openmp-dev mailing list