MantisBT - CMake
View Issue Details
0015942CMakeCMakepublic2016-01-29 10:342016-06-10 14:31
Jens Henrik Goebbert 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0015942: regexpr in FindMPI.cmake filtering MPI_COMPILE_FLAGS fails for Intel-flag "-fp-model"

FindMPI.cmake fails to filter the keyword required for Intel“s compile flags "-fp-model".

example:
icpc -O2 -xHost -ftz -fp-speculation=safe -fp-model source -Wl,-rpath-link=/usr/local/software/jureca/Stage1/software/Core/pscom/5.0.45-1/lib

returns -ftz -fp-speculation=safe -fp-model
instead of -ftz -fp-speculation=safe -fp-model source

reason:
any word not starting with -D or -f is skipped by regexpression in line 294
string(REGEX MATCHALL "(^| )-[Df]([^\" ]+|\"[^\"]+\")" MPI_ALL_COMPILE_FLAGS "${MPI_COMPILE_CMDLINE}")
configure mpi, that mpicxx -showme:compile (for openmpi and openmpi derivatives) or mpi -compile-info (for mpich and mpich derivatives) includes the flag "-fp-model source"

include find_package(MPI) and check MPI_CXX_COMPILE_FLAGS
No tags attached.
Issue History
2016-01-29 10:34Jens Henrik GoebbertNew Issue
2016-01-29 12:14Jens Henrik GoebbertNote Added: 0040363
2016-06-10 14:29Kitware RobotNote Added: 0042927
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0040363)
Jens Henrik Goebbert   
2016-01-29 12:14   
configure MPI to use
 -fp-model=source
or
 -fp-model "source"
seems to work with the Intel Compiler Suite 15.0,
but it is not the offical syntax: https://software.intel.com/en-us/node/525039 [^]
(0042927)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.