[Openmp-dev] Initial Intel Cmake Build System Patch

Jack Howarth howarth.mailing.lists at gmail.com
Fri Jun 6 18:41:50 PDT 2014


Jonathon,
     Thanks. Confirmed to work properly on x86_64-apple-darwin12 with…

% cd runtime
% mkdir build
% cd build
% cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -Dos=mac
-Darch=32 ..
% make all common
% file libiomp5.dylib
libiomp5.dylib: Mach-O dynamically linked shared library i386

and

% cd runtime
% mkdir build
% cd build
% cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -Dos=mac
-Darch=32e ..
% make all common
% file libiomp5.dylib
libiomp5.dylib: Mach-O 64-bit dynamically linked shared library x86_64

Are there any plans to tweak this to automate the build of a fat
libiomp5.dylib on darwin?



On Fri, Jun 6, 2014 at 7:02 PM, Peyton, Jonathan L <
jonathan.l.peyton at intel.com> wrote:

>  Hello All,
>
>
>
> Since everyone wants to see it, this patch is the initial cmake build
> system we have been developing.  Some quick notes:
>
> 1) The top-level CMakeLists.txt you all have been working on is moved to
> CMakeLists.txt.old (the src/CMakeLists.txt file is untouched)
>
> 2) There is a Build_With_CMake.txt tutorial that shows the most important
> features and how to build libiomp5
>
> 3) As a special note, the current build.pl system does five “micro-tests”
> which test certain features of the newly built libiomp5.so library (basic
> linking/compilation, library dependencies, etc.)  If you want these to be
> off in the new CMake system just specify it when calling cmake with the
> flag –Dtests=off
>
>
>
> Please keep in mind this is the initial system and that it can be trimmed
> back incrementally to what you need.  Right now, it builds nearly identical
> libraries as build.pl.  On a related note, I attempted ( as suggested by
> David ) to port libiomp5 to NetBSD to see what walls I would hit.  I hit
> some J , but eventually got it working (not included in this initial
> patch).  So I am going to follow up this initial patch with further
> improvements (to the build system) to make re-targeting in general even
> easier.  Some of these improvements will also help the build.pl system as
> well.
>
>
>
> Just try it.  See what you hate and what you like.  Leave feedback.  I am
> here on weekdays.
>
>
>
> Thanks,
>
> Johnny
>
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at dcs-maillist2.engr.illinois.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/openmp-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20140606/9c5f8ff3/attachment.html>


More information about the Openmp-dev mailing list