<div dir="ltr">Please ignore my emails regarding this. Apparently Ben Boeckel has fixed these issues in CMake <span style="font-size:12.8000001907349px">3.2.0-rc1. Sorry for the unnecessary bandwidth utilization!</span><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">I can confirm that the VTK master version works OK with MS-MPI.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Regards</span></div><div><span style="font-size:12.8000001907349px">   Andrew</span></div><div><span style="font-size:12.8000001907349px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 2, 2015 at 9:58 AM, Andrew Maclean <span dir="ltr"><<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Some further information, ignore the <span style="color:rgb(255,0,0);font-size:12.8000001907349px">CMP0054 warning </span>it is not triggered when the CMake Minimum Version is 3.1<div><br></div><div>When running FindMPI.cmake, I discovered that I had a spurious registry entry for an older version of MPI so mpiexec.exe was not being found. When I deleted this it found mpiexec.exe in C:/Program Files/Microsoft MPI/Bin/mpiexec.exe OK. I think the key for HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\MPI should still be there before the other registry keys.</div><div><br></div><div>You definitely need the new lib and include paths. </div><div><br></div><div>I was able to use FindMPI.cmake and just add in these paths manually.</div><div><br></div><div>Hope this helps.</div><div><br></div><div>Regards</div><div><span class="HOEnZb"><font color="#888888">   Andrew</font></span><div><div class="h5"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 1, 2015 at 3:54 PM, Andrew Maclean <span dir="ltr"><<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8000001907349px">Re-sending because David in no longer at Kitware.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><span style="font-size:12.8000001907349px">I downloaded and installed MS-MPI from </span><a href="http://www.microsoft.com/en-us/download/details.aspx?id=44990" style="font-size:12.8000001907349px" target="_blank">http://www.microsoft.com/en-us/download/details.aspx?id=44990</a><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">This implementation does not work with FindMPI.cmake.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">The includes and libs are found in:</div><div style="font-size:12.8000001907349px">C:/Program Files (x86)/Microsoft SDKs/MPI/<br></div><div style="font-size:12.8000001907349px">and mpiexec.exe is in: C:/Program Files/Microsoft MPI/Bin/</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I had to do the following changes to get it working. Perhaps you would like to edit FIndMPI.cmake to incorporate these changes:</div><div style="font-size:12.8000001907349px">----------</div><div style="font-size:12.8000001907349px"><div># Require MPI for this project:</div><div>if(WIN32)</div><div>  #This is for finding MS-MPI.</div><div>  #set(_MPI_PREFIX_PATH)</div><div>  #list(APPEND _MPI_PREFIX_PATH "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\MPI;Path]/..")</div><div>  set(MPIEXEC "C:/Program Files/Microsoft MPI/Bin/mpiexec.exe")</div><div>  # For building MPI programs the selected Visual Studio compiler is used, namely cl.exe.</div><div>  # So there is no need to set a specific MPI compiler.</div><div>  #set(MPI_CXX_COMPILER "${CMAKE_CXX_COMPILER}")</div><div>  set(MPI_CXX_INCLUDE_PATH "C:/Program Files (x86)/Microsoft SDKs/MPI/Include")</div><div>  # Make sure the correct libraries (64-bit or 32-bit) are selected.</div><div>  # Decide between 32-bit and 64-bit libraries for Microsoft's MPI</div><div>  if("${CMAKE_SIZEOF_VOID_P}" EQUAL 8)</div><div>    set(MS_MPI_ARCH_DIR x64)</div><div>  else()</div><div>    set(MS_MPI_ARCH_DIR x86)</div><div>  endif()</div><div>  set(MPI_CXX_LIBRARIES "C:/Program Files (x86)/Microsoft SDKs/MPI/Lib/${MS_MPI_ARCH_DIR}/msmpi.lib")</div><div>  set(MPI_C_INCLUDE_PATH "${MPI_CXX_INCLUDE_PATH}")</div><div>  set(MPI_C_LIBRARIES "{${MPI_CXX_LIBRARIES}")</div><div>  set(MPIEXEC_NUMPROC_FLAG "-np" CACHE STRING "Flag used by MPI to specify the number of processes for MPIEXEC; the next option will be the number of processes.")</div><div>else()</div><div>    find_package(MPI REQUIRED)</div><div>endif()</div><div>--------</div><div>Some of this is taken from FindMPI.cmake.</div><div><br></div><div>Attached is a zipped up file of the working CMakeLists.txt file and a test file for you.</div><div><br></div><div>I looked at FindMPI.cmake but I think you guys are better placed to make the changes.</div><div><br></div><div>Also in the case of FindMPI.cmake, you will need to fix the following warning message:</div><div><br></div><div><span style="color:rgb(255,0,0)">CMake Warning (dev) at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindMPI.cmake:163 (if):<br>Policy CMP0054 is not set: Only interpret if() arguments as variables or<br>keywords when unquoted. Run "cmake --help-policy CMP0054" for policy<br>details. Use the cmake_policy command to set the policy and suppress this<br>warning.<br><br>Quoted variables like "MSVC" will no longer be dereferenced when the policy<br>is set to NEW. Since the policy is not set the OLD behavior will be used.<br>Call Stack (most recent call first):<br>CMakeLists.txt:5 (find_package)<br>This warning is for project developers. Use -Wno-dev to suppress it.</span><span style="color:rgb(255,0,0)">CMake Warning (dev) at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindMPI.cmake:163 (if):</span><br></div><span style="color:rgb(255,0,0)">Policy CMP0054 is not set: Only interpret if() arguments as variables or<br>keywords when unquoted. Run "cmake --help-policy CMP0054" for policy<br>details. Use the cmake_policy command to set the policy and suppress this<br>warning.<br><br>Quoted variables like "MSVC" will no longer be dereferenced when the policy<br>is set to NEW. Since the policy is not set the OLD behavior will be used.<br>Call Stack (most recent call first):<br>CMakeLists.txt:5 (find_package)<br>This warning is for project developers. Use -Wno-dev to suppress it.</span><div><br></div><div><br></div><div>Regards</div><span><font color="#888888"><div><br></div><div>Andrew</div><div><br></div></font></span></div><span><font color="#888888"><div><br></div>-- <br><div>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div>