View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013478CMakeCMakepublic2012-08-16 15:232016-06-10 14:31
ReporterMax Klimov 
Assigned ToKitware Robot 
PlatformOSWindowsOS Version7
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0013478: FindMPI doesn't find openMPI properly
Descriptionfind_package(MPI ...) doesn't define all necessary variables correctly with openMPI-1.6 and older on windows7:
- MPI_{LANG}_INCLUDE_PATH contains ';' instead of ' '(spaces), for example: "C:\Program;Files;(x86)\OpenMPI_v1.6-x64/include". But this isn't all, to fix this variable i must add ';' to the front and to the back of string (for this working result: ;"C:\Program Files (x86)\OpenMPI_v1.6-x64/include"; ) .
- MPI_LIBRARY and MPI_EXTRA_LIBRARY aren't found automatically.

OpenMPI bin directory was added to environment. Command "mpicxx --showme" has output:
"cl.exe /I"C:\Program Files (x86)\OpenMPI_v1.6-x64/include" /TP /EHsc /DOMPI_IMPORTS /DOPAL_IMPORTS /DORTE_IMPORTS /link /LIBPATH:"C:\Program Files (x86)\OpenMPI_v1.6-x64/lib" libmpi_cxx.lib libmpi.lib libopen-pal.lib libopen-rte.lib advapi32.lib Ws2_32.lib shlwapi.lib"

Other commands such as "mpicxx --showme:incdirs" have correct output too.
Steps To Reproduce1. Install OpenMPI-1.6 (x86 or x64)
2. add find_package(MPI REQUIRED) to CMakeLists.txt
3. check MPI block of variables in cache
TagsNo tags attached.
Attached Filespatch file icon update_openmpi_win_find.patch [^] (4,324 bytes) 2013-06-17 01:59 [Show Content]


Brad King (manager)
2012-08-17 08:54

Moving to backlog because FindMPI has no module maintainer: [^]

If anyone wants to look at fixing this the problem is probably here:;a=blob;f=Modules/FindMPI.cmake;hb=v2.8.9#l291 [^]

where the module parses the command line from the showme. The regular expressions used may not be working in this case. Once could use the separate_arguments command instead: [^]

with either the UNIX_COMMAND or WINDOWS_COMMAND option.
Kitware Robot (administrator)
2016-06-10 14:28

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.

 Issue History
Date Modified Username Field Change
2012-08-16 15:23 Max Klimov New Issue
2012-08-17 08:54 Brad King Note Added: 0030689
2012-08-17 08:54 Brad King Status new => backlog
2013-06-17 01:59 Max Klimov File Added: update_openmpi_win_find.patch
2016-06-10 14:28 Kitware Robot Note Added: 0042106
2016-06-10 14:28 Kitware Robot Status backlog => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed

Copyright © 2000 - 2018 MantisBT Team