<div dir="ltr"><div>Yes, that's generally the most reliable way to get the correct and complete MPI support. I suspect the FindMPI module was getting half-baked information from the
wrappers and augmenting with the specified MPI_INCLUDE_PATH. If you don't want it in the environment then I would try explicitly setting the compiler wrappers and nothing else with:<br><br>-DMPI_C_COMPILER:FILEPATH=/opt/openmpi-1.8-gnu//bin/mpicc<br>-DMPI_CXX_COMPILER:FILEPATH=/opt/openmpi-1.8-gnu//bin/mpicxx<br><br>and drop any other MPI_FOO vars, leaving the FindMPI module interrogate the wrappers to populate the rest.<br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">----------<br>Chuck Atkins<br>Staff R&D Engineer, Scientific Computing<br>Kitware, Inc.<br>(518) 881-1183<br></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Jul 25, 2016 at 9:24 PM, Scott, W Alan <span dir="ltr"><<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">So, let me ask this. Should I not point at MPI at all through CMake vars, but just point the PATH including the MPI compiler?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Alan<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Chuck Atkins [mailto:<a href="mailto:chuck.atkins@kitware.com" target="_blank">chuck.atkins@kitware.com</a>]
<br>
<b>Sent:</b> Monday, July 25, 2016 7:20 PM<br>
<b>To:</b> Scott, W Alan <<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>><br>
<b>Cc:</b> <a href="mailto:paraview-developers@paraview.org" target="_blank">paraview-developers@paraview.org</a><br>
<b>Subject:</b> [EXTERNAL] Re: [Paraview-developers] Bad superbuild<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Alan,<br>
The FindMPI module can be sensitive to an enormous number of settings. Do you have openmpi loaded as an environment module? If so, I would get rid of any -DMPI_FOO variables from the CMake configure line and just let the FindMPI.cmake module do it's thing.
If the MPI compiler wrappers are in your PATH then it should be able to interrogate them correctly.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">----------<br>
Chuck Atkins<br>
Staff R&D Engineer, Scientific Computing<br>
Kitware, Inc.<br>
<a href="tel:%28518%29%20881-1183" value="+15188811183" target="_blank">(518) 881-1183</a><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, Jul 25, 2016 at 2:58 PM, Scott, W Alan <<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">I am trying to build clusters (again) with the superbuild. This is Linux, master. I am using the gnu compiler and openmpi for gnu. I am having issues with MPI. I am trying to
use a system installed MPI.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Here is what I am sending to cmake:<u></u><u></u></p>
<p class="MsoNormal">cMakeVars = -DCMAKE_INSTALL_PREFIX:PATH=/projects/viz/paraview/ParaView/5.1.1-sb-mesa/Linux-chama-x86_64 -DBUILD_TESTING:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Debug -DParaView_FROM_GIT:BOOL=OFF
-DParaView_FROM_SOURCE_DIR:BOOL=ON -DPARAVIEW_SOURCE_DIR:PATH=/projects/viz/paraview/src/ParaView/5.1.1-sb/ParaView5 -DPARAVIEW_ALWAYS_SECURE_CONNECTION:BOOL=ON -DENABLE_paraview:BOOL=ON -DENABLE_ffmpeg:BOOL=ON -DENABLE_python:BOOL=ON -DENABLE_numpy:BOOL=ON
-DENABLE_png:BOOL=ON -DENABLE_osmesa:BOOL=ON -DENABLE_cgns:BOOL=ON -DENABLE_silo:BOOL=ON -DENABLE_visitbridge:BOOL=ON -DMPI_COMPILER:FILEPATH=/opt/openmpi-1.8-gnu//bin/mpicxx -DPARAVIEW_ALWAYS_SECURE_CONNECTION:BOOL=ON -DENABLE_mpi:BOOL=ON -DPARAVIEW_USE_MPI:BOOL=ON
-DMPI_INCLUDE_PATH:PATH=/opt/openmpi-1.8-gnu//include/ <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">If anyone needs my CMakeCache.txt, please ask and I can send it off list.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Here is my failure:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">[ 4%] Building C object VTK/ThirdParty/tiff/vtktiff/CMakeFiles/vtktiff.dir/tif_thunder.c.o<u></u><u></u></p>
<p class="MsoNormal">CMakeFiles/IceTMPI.dir/mpi.c.o: In function `getMPIRequest':<u></u><u></u></p>
<p class="MsoNormal">/projects/viz/paraview/src/ParaView/5.1.1-sb/ParaView5/ThirdParty/IceT/vtkicet/src/communication/mpi.c:110: undefined reference to `ompi_request_null'<u></u><u></u></p>
<p class="MsoNormal">/projects/viz/paraview/src/ParaView/5.1.1-sb/ParaView5/ThirdParty/IceT/vtkicet/src/communication/mpi.c:116: undefined reference to `ompi_request_null'<u></u><u></u></p>
<p class="MsoNormal">CMakeFiles/IceTMPI.dir/mpi.c.o: In function `create_request':<u></u><u></u></p>
<p class="MsoNormal">/projects/viz/paraview/src/ParaView/5.1.1-sb/ParaView5/ThirdParty/IceT/vtkicet/src/communication/mpi.c:160: undefined reference to `ompi_request_null'<u></u><u></u></p>
<p class="MsoNormal">CMakeFiles/IceTMPI.dir/mpi.c.o: In function `destroy_request':<u></u><u></u></p>
<p class="MsoNormal">/projects/viz/paraview/src/ParaView/5.1.1-sb/ParaView5/ThirdParty/IceT/vtkicet/src/communication/mpi.c:168: undefined reference to `ompi_request_null'<u></u><u></u></p>
<p class="MsoNormal">CMakeFiles/IceTMPI.dir/mpi.c.o: In function `icetCreateMPICommunicator':<u></u><u></u></p>
<p class="MsoNormal">/projects/viz/paraview/src/ParaView/5.1.1-sb/ParaView5/ThirdParty/IceT/vtkicet/src/communication/mpi.c:200: undefined reference to `ompi_mpi_comm_null'<u></u><u></u></p>
<p class="MsoNormal">CMakeFiles/IceTMPI.dir/mpi.c.o: In function `MPISubset':<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thanks all!<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Alan<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">--------------------------------------------------------<u></u><u></u></p>
<p class="MsoNormal">W. Alan Scott<u></u><u></u></p>
<p class="MsoNormal">ParaView Support Manager<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">SAIC<u></u><u></u></p>
<p class="MsoNormal">Sandia National Laboratories, MS 0822<u></u><u></u></p>
<p class="MsoNormal">Org 9326 - Building 880 A1-K<u></u><u></u></p>
<p class="MsoNormal"><a href="tel:%28505%29%20284-0932" target="_blank">(505) 284-0932</a> FAX
<a href="tel:%28505%29%20284-5619" target="_blank">(505) 284-5619</a><u></u><u></u></p>
<p class="MsoNormal">---------------------------------------------------------<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=Paraview-developers" target="_blank">
http://markmail.org/search/?q=Paraview-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview-developers" target="_blank">http://public.kitware.com/mailman/listinfo/paraview-developers</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div>