ENH: makeVTK -mpi also define VTK_Group_MPI=ON

- this pulls in the other bits (Module_vtkParallelMPI,
  Module_vtkRenderingParallel, ...)
This commit is contained in:
Mark Olesen
2018-12-04 21:59:27 +01:00
parent 013c7154ff
commit 6e0c9f9d8b
4 changed files with 32 additions and 17 deletions

View File

@ -137,7 +137,7 @@ addVerbosity()
# #
# Define options for mpi support # MPI support for PARAVIEW
# #
addMpiSupport() addMpiSupport()
{ {
@ -146,7 +146,7 @@ addMpiSupport()
return return
fi fi
addCMakeVariable "PARAVIEW_USE_MPI=ON" "VTK_USE_MPI=ON" addCMakeVariable "PARAVIEW_USE_MPI=ON"
if [ "${MPI_MAX_PROCS:=0}" -gt 1 ] if [ "${MPI_MAX_PROCS:=0}" -gt 1 ]
then then
addCMakeVariable "VTK_MPI_MAX_NUMPROCS=$MPI_MAX_PROCS" addCMakeVariable "VTK_MPI_MAX_NUMPROCS=$MPI_MAX_PROCS"
@ -469,11 +469,11 @@ INFO
# Non-system installation of QT? # Non-system installation of QT?
case "$qtLib" in (/usr/lib | /usr/lib64) unset qtLib ;; esac case "$qtLib" in (/usr/lib | /usr/lib64) unset qtLib ;; esac
if [ "$qmake" != /usr/bin/qmake -a -d "$qtLib" ] if [ "${qmake%/*}" != /usr/bin -a -d "$qtLib" ]
then then
/bin/cat<<INFO /bin/cat<<INFO
And adjust your LD_LIBRARY_PATH to include the following: Your LD_LIBRARY_PATH may require adjustment to include the following:
$qtLib $qtLib
INFO INFO
fi fi

View File

@ -2,7 +2,7 @@
# ========= | # ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | # \\ / O peration |
# \\ / A nd | Copyright (C) 2016-2017 OpenCFD Ltd. # \\ / A nd | Copyright (C) 2016-2018 OpenCFD Ltd.
# \\/ M anipulation | # \\/ M anipulation |
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# License # License
@ -148,6 +148,28 @@ configVTK()
} }
#
# MPI support for VTK
#
unset -f addMpiSupport 2>/dev/null
addMpiSupport()
{
if [ "${withMPI:=false}" != true ]
then
return
fi
addCMakeVariable "VTK_Group_MPI=ON"
addCMakeVariable "Module_vtkRenderingParallel=ON"
addCMakeVariable "Module_vtkParallelMPI=ON"
if [ "${MPI_MAX_PROCS:=0}" -gt 1 ]
then
addCMakeVariable "VTK_MPI_MAX_NUMPROCS=$MPI_MAX_PROCS"
fi
}
# #
# Invoke make # Invoke make
# also link bin/ to lib/paraview-* for development without installation # also link bin/ to lib/paraview-* for development without installation

View File

@ -71,7 +71,7 @@ options:
-mesa-include DIR location of mesa headers (current: ${MESA_INCLUDE:-none}) -mesa-include DIR location of mesa headers (current: ${MESA_INCLUDE:-none})
-mesa-lib PATH path to mesa library (current: ${MESA_LIBRARY:-none}) -mesa-lib PATH path to mesa library (current: ${MESA_LIBRARY:-none})
-osmesa with off-screen mesa only -osmesa with off-screen mesa only
-mpi with mpi -mpi with mpi (VTK_Group_MPI=ON)
-mpi=N with max 'N' mpi processes. N=0 for no upper-limit. -mpi=N with max 'N' mpi processes. N=0 for no upper-limit.
-cmake PATH with cmake from the path given -cmake PATH with cmake from the path given
-verbose verbose output in Makefiles -verbose verbose output in Makefiles

View File

@ -7,24 +7,17 @@ vtk=VTK-9.0.0
# mesa=mesa-13.0.3 # mesa=mesa-13.0.3
mesa=mesa-17.1.1 mesa=mesa-17.1.1
# Request building MPI modules # Module_vtkAcceleratorsVTKm : Request building vtkAcceleratorsVTKm
# VTK_Group_MPI=ON
# #
# Request building vtkAcceleratorsVTKm # -mpi implies VTK_Group_MPI : Request building MPI modules
# Module_vtkAcceleratorsVTKm=OFF
#
# Request building vtkParallelMPI
# Module_vtkParallelMPI=ON
set -x set -x
./makeVTK \ ./makeVTK \
-mpi=0 \ -mpi \
-osmesa \ -osmesa \
-mesa-prefix $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$mesa \ -mesa-prefix $WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$mesa \
$vtk "$@" \ $vtk "$@" \
VTK_Group_MPI=ON \ Module_vtkAcceleratorsVTKm=ON
Module_vtkAcceleratorsVTKm=ON \
Module_vtkParallelMPI=ON
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------