[vtk-developers] VTK 5.8 and MPI_INCLUDE_PATH

David Partyka david.partyka at kitware.com
Mon Sep 5 10:46:26 EDT 2011


I would start with VTK. FindMPI was revamped in 2.8.3 or 2.8.4 and VTK has
made some bad assumptions that MPI_INCLUDE_PATH is a single directory.

On Mon, Sep 5, 2011 at 10:37 AM, Mathieu Malaterre <
mathieu.malaterre at gmail.com> wrote:

> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110905/855c4e56/attachment.html>


More information about the vtk-developers mailing list