Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Utkarsh Ayachit
ParaView-Superbuild
Commits
28a78cd1
Commit
28a78cd1
authored
May 03, 2018
by
Andrew Bauer
Browse files
Fixing mpi4py compile issue with SGI's MPT mpi library
parent
66918b07
Changes
2
Hide whitespace changes
Inline
Side-by-side
projects/paraview.cmake
View file @
28a78cd1
...
...
@@ -228,6 +228,11 @@ if (paraview_SOURCE_SELECTION STREQUAL "5.3.0")
"Fix various issues with the VTKConfig.cmake (Part 1)"
)
endif
()
if
(
paraview_SOURCE_SELECTION STREQUAL
"5.5.0"
)
superbuild_apply_patch
(
paraview fix-mpi4py
"Fix issue with building VTK's mpi4py"
)
endif
()
if
(
WIN32 AND las_enabled
)
superbuild_append_flags
(
cxx_flags
"-DBOOST_ALL_NO_LIB"
PROJECT_ONLY
)
endif
()
...
...
projects/patches/paraview-fix-mpi4py.patch
0 → 100644
View file @
28a78cd1
From c2f8322a78954328c131b4bf0553ffeeaa0b3154 Mon Sep 17 00:00:00 2001
From: Andrew Bauer <andy.bauer@kitware.com>
Date: Thu, 3 May 2018 12:38:16 -0400
Subject: [PATCH] Fixing issue with missing MPI_CONVERSION_FN_NULL for mpi4py
---
ThirdParty/mpi4py/vtkmpi4py/CMakeLists.txt | 6 ++++++
ThirdParty/mpi4py/vtkmpi4py/src/lib-mpi/config/mpi-20.h | 2 ++
2 files changed, 8 insertions(+)
diff --git a/ThirdParty/mpi4py/vtkmpi4py/CMakeLists.txt b/ThirdParty/mpi4py/vtkmpi4py/CMakeLists.txt
index 02b0dcb..a50480f 100644
--- a/VTK/ThirdParty/mpi4py/vtkmpi4py/CMakeLists.txt
+++ b/VTK/ThirdParty/mpi4py/vtkmpi4py/CMakeLists.txt
@@ -50,6 +50,12 @@
if (NOT f2c_defined)
-DPyMPI_MISSING_MPI_Status_c2f)
endif()
+# SGI's MPT mpi library is missing MPI_CONVERSION_FN_NULL
+check_function_exists(MPI_CONVERSION_FN_NULL conversion_fn_defined)
+if (NOT conversion_fn_defined)
+ add_definitions(-DPyMPI_MISSING_MPI_CONVERSION_FN_NULL)
+endif()
+
# -----------------------------------------------------------------------------
# Note: In ParaView FindPythonLibs.cmake module is additionally defined in VTK
# and overides the default module from CMake. As a consequence PYTHON_ADD_MODULE
diff --git a/ThirdParty/mpi4py/vtkmpi4py/src/lib-mpi/config/mpi-20.h b/ThirdParty/mpi4py/vtkmpi4py/src/lib-mpi/config/mpi-20.h
index 98bfe13..7894682 100644
--- a/VTK/ThirdParty/mpi4py/vtkmpi4py/src/lib-mpi/config/mpi-20.h
+++ b/VTK/ThirdParty/mpi4py/vtkmpi4py/src/lib-mpi/config/mpi-20.h
@@ -290,7 +290,9 @@
#define PyMPI_HAVE_MPI_File_call_errhandler 1
#define PyMPI_HAVE_MPI_Datarep_conversion_function 1
#define PyMPI_HAVE_MPI_Datarep_extent_function 1
+#ifndef PyMPI_MISSING_MPI_CONVERSION_FN_NULL
#define PyMPI_HAVE_MPI_CONVERSION_FN_NULL 1
+#endif
#define PyMPI_HAVE_MPI_MAX_DATAREP_STRING 1
#define PyMPI_HAVE_MPI_Register_datarep 1
#define PyMPI_HAVE_MPI_ERR_FILE 1
--
2.7.4
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment