[vtk-developers] VTK 5.8 and MPI_INCLUDE_PATH

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Sep 5 10:37:05 EDT 2011


Hi all,

  I am currently trying to compile VTK 5.8.0 on my linux/debian box.
On debian OpenMPI is the default MPI implementation. In this case
FindMPI.cmake module from cmake 2.8.5 is finding that I have:

MPI_INCLUDE_PATH:STRING=/usr/lib/openmpi/include;/usr/lib/openmpi/include/openmpi

  which is compatible with the documentation of FindMPI.cmake, where
MPI_INCLUDE_PATH is documented to have one *or more* paths. However in
VTK, it is assumed (or it looks like) that MPI_INCLUDE_PATH is
supposed to be a single path pointing to mpi.h:

$ grep -r MPI_INCLUDE_PATH * | grep  \"
Utilities/IceT/IceTConfig.cmake.in:SET(ICET_MPI_INCLUDE_PATH
"@MPI_INCLUDE_PATH@")
Utilities/Xdmf2/XDMFConfig.cmake.in:  SET(XDMF_MPI_INCLUDE_PATH
"@MPI_INCLUDE_PATH@")
VTK/Infovis/Testing/Cxx/CMakeLists.txt:
INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Examples/ParallelProcessing/Generic/Cxx/CMakeLists.txt:
INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Parallel/CMakeLists.txt:  INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Parallel/Testing/Cxx/CMakeLists.txt:
INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Utilities/mrmpi/CMakeLists.txt:  INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Utilities/VPIC/CMakeLists.txt:  INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Utilities/Cosmo/CMakeLists.txt:  INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Utilities/vtkhdf5/CMakeLists.txt:    SET (CMAKE_REQUIRED_INCLUDES
"${MPI_INCLUDE_PATH}/mpi.h" )
VTK/Utilities/vtkhdf5/CMakeLists.txt:    CHECK_SYMBOL_EXISTS
(MPI_Comm_c2f "${MPI_INCLUDE_PATH}/mpi.h"
H5_HAVE_MPI_MULTI_LANG_Comm)
VTK/Utilities/vtkhdf5/CMakeLists.txt:    CHECK_SYMBOL_EXISTS
(MPI_Info_c2f "${MPI_INCLUDE_PATH}/mpi.h"
H5_HAVE_MPI_MULTI_LANG_Info)
VTK/Wrapping/Tcl/CMakeLists.txt:    INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Wrapping/Python/CMakeLists.txt:  INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/VTKConfig.cmake.in:SET(VTK_MPI_INCLUDE_DIR "@MPI_INCLUDE_PATH@")


This leads to compilation line such as:

cd /.../paraview/debian/build/VTK/Utilities/mrmpi/src && /usr/bin/c++
...
-I"/usr/lib/openmpi/include;/usr/lib/openmpi/include/openmpi"
 -o CMakeFiles/MapReduceMPI.dir/keyvalue.cpp.o -c
/home/mathieu/debian/paraview/VTK/Utilities/mrmpi/src/keyvalue.cpp

Which of course do not work.

Should I fill a bug report for cmake 2.8.5 or VTK+ParaView ?

thanks much,
-- 
Mathieu



More information about the vtk-developers mailing list