[Openmp-dev] [PATCH] [Revisedx2] Initial cmake support

Peyton, Jonathan L jonathan.l.peyton at intel.com
Mon Jun 2 10:34:14 PDT 2014


You are correct that is the .mod modules that are being built and they are OFF by default so a Fortran compiler is not required by default.

So far, testing has been done with system compilers (including production clang) only and not the "just built" clang compiler.  I honestly don't know what is involved in getting the "just built" compiler to build it.

Cross compiling shouldn't be a problem as you basically call cmake as a configure step where you can specify the compiler to use and the architecture to build for, also, the "micro-tests" (test-touch, test-deps, etc.) which are done after building the library can be turned off easily so that you don't have to immediately use the library for a successful build like you do for build.pl.

I will consider turning the micro-tests off by default, although the touch-test can be useful for quickly finding segfaults when trying new code.

Johnny

-----Original Message-----
From: "C. Bergström" [mailto:cbergstrom at pathscale.com] 
Sent: Monday, June 2, 2014 12:10 PM
To: Peyton, Jonathan L
Cc: Jack Howarth; Andrey Bokhanko; openmp-dev at dcs-maillist2.engr.illinois.edu; David Chisnall
Subject: Re: [Openmp-dev] [PATCH] [Revisedx2] Initial cmake support

On 06/ 2/14 11:59 PM, Peyton, Jonathan L wrote:
>
> Hello All,
>
> I have been here at Intel working on an 'exact' translation of the 
> build.pl build system to an identical CMake build system (without the 
> build.pl Perl wraparound of course). I've looked at the recently added 
> CMake build system and appreciate the work you all have done. The 
> system
>
> I've created has Windows support, Fortran support, Mac Fat Library 
> support, Intel-specific header creation support, Intel MIC support as 
> well as mirroring the build.pl system for both Mac and Linux using 
> clang, gcc, or icc.
>
> All build types (release, debug) and library types (stubs, normal) are 
> supported as well. This build system is currently going through the 
> review process and should be done very soon.
>
> I'd be happy to answer any questions regarding the new CMake build system.
>
Sounds great - I think the goals here extend just slightly past what is needed for clang and I'm eager to review the work. When you say Fortran
- do you mean building the Fortran .mod (modules). I assume that without a Fortran compiler this can be disabled.. (please do make sure it's optional component)

If you really want to get fancy - we should figure out a couple things

1) Is the library intended to be built with the system compiler or the "just built" clang - assuming this integrates into the higher level build system like compiler-rt

2) Will it support cross compiling. (x86 host and PPC64 target)
-------
Release and Debug build types are built-in to cmake and I'm not sure what specifically you'd change there..





More information about the Openmp-dev mailing list