MantisBT - CMake
View Issue Details
0014991CMakeCMakepublic2014-06-25 18:032016-06-10 14:31
RolandSchulz 
Kitware Robot 
normalmajoralways
closedmoved 
CMake 3.0 
 
0014991: FindMPI doesn't pass compiler flags to $MPICC -show. Finds wrong libraries for Xeon Phi native mode.
The output of mpiicc -show is different if "-mmic" (Xeon Phi native mode) is added. FindMPI doesn't pass CMAKE_C_FLAGS to the showme command and thus the library discovered by FindMPI is the host CPU library and not the native mode Xeon Phi library.
No tags attached.
related to 0015182closed Chuck Atkins FindMPI.cmake fails to properly detect Intel MPI 5.0.1 
patch 0001-FindMPI-Pass-CMAKE_-LANG-_FLAGS-to-mpi-front-end-for.patch (1,344) 2014-12-05 13:12
https://public.kitware.com/Bug/file/5316/0001-FindMPI-Pass-CMAKE_-LANG-_FLAGS-to-mpi-front-end-for.patch
Issue History
2014-06-25 18:03RolandSchulzNew Issue
2014-12-05 12:54RolandSchulzNote Added: 0037397
2014-12-05 13:12Brad KingFile Added: 0001-FindMPI-Pass-CMAKE_-LANG-_FLAGS-to-mpi-front-end-for.patch
2014-12-05 13:13Brad KingNote Added: 0037398
2014-12-05 13:14Brad KingNote Added: 0037399
2014-12-05 13:18Brad KingNote Added: 0037401
2014-12-05 13:18Brad KingRelationship addedrelated to 0015182
2016-06-10 14:29Kitware RobotNote Added: 0042572
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
(0037397)
RolandSchulz   
2014-12-05 12:54   
A patch is available at https://software.intel.com/en-us/articles/cross-compilation-for-intel-xeon-phi-coprocessor-with-cmake [^]
(0037398)
Brad King   
2014-12-05 13:13   
Re 0014991:0037397: Thanks. I've constructed a patch from that information. See "0001-FindMPI-Pass-CMAKE_-LANG-_FLAGS-to-mpi-front-end-for.patch". I think it still needs more work because there are lots of other calls to $MPICC that are not updated by the patch.
(0037399)
Brad King   
2014-12-05 13:14   
In cases where the ${CMAKE_C_COMPILER} does not match that wrapped by $MPICC passing the flags like this may not work. MPICC is really more of its own language in a sense. Perhaps there should be a separate place for users to specify mpi compiler flags.
(0037401)
Brad King   
2014-12-05 13:18   
The issues mentioned in 0015182:0037383 and 0015182:0037391 are also related to how mpi flags are detected.
(0042572)
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.