summaryrefslogtreecommitdiff
path: root/net/openmpi/files
diff options
context:
space:
mode:
authorDanilo Egea Gondolfo <danilo@FreeBSD.org>2020-04-19 09:49:02 +0000
committerDanilo Egea Gondolfo <danilo@FreeBSD.org>2020-04-19 09:49:02 +0000
commit794fcc74bd8fced99f6a09840d3e4478c3230493 (patch)
tree340936c7bee5d0b1a767c5f350d166791e955a7e /net/openmpi/files
parent- Fix LICENSE (diff)
- Update net/openmpi to 4.0.3 (openmpi 1 is deprecated)
- Remove option for net/openmpi2 from science/pnetcdf (net/openmpi2 is deprecated and will be removed) - Fix science/gromacs plist when MPI option is enabled - Bump PORTREVISION for all the consumers of net/openmpi
Notes
Notes: svn path=/head/; revision=532095
Diffstat (limited to 'net/openmpi/files')
-rw-r--r--net/openmpi/files/patch-opal_mca_pmix_pmix3x_pmix_src_mca_pshmem_mmap_pshmem__mmap.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/openmpi/files/patch-opal_mca_pmix_pmix3x_pmix_src_mca_pshmem_mmap_pshmem__mmap.c b/net/openmpi/files/patch-opal_mca_pmix_pmix3x_pmix_src_mca_pshmem_mmap_pshmem__mmap.c
new file mode 100644
index 000000000000..2718655bf401
--- /dev/null
+++ b/net/openmpi/files/patch-opal_mca_pmix_pmix3x_pmix_src_mca_pshmem_mmap_pshmem__mmap.c
@@ -0,0 +1,20 @@
+--- opal/mca/pmix/pmix3x/pmix/src/mca/pshmem/mmap/pshmem_mmap.c.orig 2020-04-12 11:49:10 UTC
++++ opal/mca/pmix/pmix3x/pmix/src/mca/pshmem/mmap/pshmem_mmap.c
+@@ -79,6 +79,9 @@ static int _mmap_segment_create(pmix_pshmem_seg_t *sm_
+ if (0 != (rc = posix_fallocate(sm_seg->seg_id, 0, size))) {
+ pmix_output_verbose(2, pmix_globals.debug_output,
+ "sys call posix_fallocate(2) fail\n");
++ if (EINVAL == rc) {
++ goto ftruncate;
++ }
+ if (ENOSPC == rc) {
+ rc = PMIX_ERR_OUT_OF_RESOURCE;
+ goto out;
+@@ -98,6 +101,7 @@ static int _mmap_segment_create(pmix_pshmem_seg_t *sm_
+ goto map_memory;
+ }
+ #endif
++ftruncate:
+ if (0 != ftruncate(sm_seg->seg_id, size)) {
+ pmix_output_verbose(2, pmix_globals.debug_output,
+ "sys call ftruncate(2) fail\n");