mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 14:15:19 -04:00
Add OpenMPI 5.0.7 patch for RHEL8
https://github.com/open-mpi/ompi/issues/13103
This commit is contained in:
parent
04883b5780
commit
c1093f3743
2 changed files with 24 additions and 0 deletions
|
|
@ -55,6 +55,10 @@ case "${with_openmpi}" in
|
|||
CFLAGS="${CFLAGS} -fgnu89-inline"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Apply patch from PR13106
|
||||
patch -p1 oshmem/mca/sshmem/base/sshmem_base_open.c < ${SCRIPT_DIR}/stage1/openmpi_PR13106.patch
|
||||
|
||||
# We still require MPI-1.0-compatability for PTSCOTCH
|
||||
./configure CFLAGS="${CFLAGS}" \
|
||||
--prefix=${pkg_install_dir} \
|
||||
|
|
|
|||
20
tools/toolchain/scripts/stage1/openmpi_PR13106.patch
Normal file
20
tools/toolchain/scripts/stage1/openmpi_PR13106.patch
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
--- a/oshmem/mca/sshmem/base/sshmem_base_open.c
|
||||
+++ b/oshmem/mca/sshmem/base/sshmem_base_open.c
|
||||
@@ -31,7 +31,7 @@
|
||||
* globals
|
||||
*/
|
||||
|
||||
-void *mca_sshmem_base_start_address = UINTPTR_MAX;
|
||||
+void *mca_sshmem_base_start_address = (void*)UINTPTR_MAX;
|
||||
|
||||
char * mca_sshmem_base_backing_file_dir = NULL;
|
||||
|
||||
@@ -49,7 +49,7 @@ mca_sshmem_base_register (mca_base_register_flag_t flags)
|
||||
"base",
|
||||
"start_address",
|
||||
"Specify base address for shared memory region",
|
||||
- MCA_BASE_VAR_TYPE_UNSIGNED_LONG_LONG,
|
||||
+ MCA_BASE_VAR_TYPE_UNSIGNED_LONG,
|
||||
NULL,
|
||||
0,
|
||||
MCA_BASE_VAR_FLAG_SETTABLE,
|
||||
Loading…
Add table
Add a link
Reference in a new issue