diff options
author | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2018-01-01 17:47:07 +0000 |
---|---|---|
committer | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2018-01-01 17:47:07 +0000 |
commit | 6932f2d48a41ce9000885942325e400e7524b4d8 (patch) | |
tree | a159b6d3ae265b21279ec9509a1ff5d5c0281281 /net/openmpi3/files | |
parent | New port: math/symmetrica: Collection of routines for combinatorial mathematics (diff) |
- New port: net/openmpi3
Open MPI is a project combining technologies and resources from several
other projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) in order to
build the best MPI library available. A completely new MPI-2 compliant
implementation, Open MPI offers advantages for system and software
vendors, application developers and computer science researchers.
Diffstat (limited to 'net/openmpi3/files')
-rw-r--r-- | net/openmpi3/files/patch-opal_mca_pmix_pmix2x_pmix_src_sm_pmix__mmap.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/openmpi3/files/patch-opal_mca_pmix_pmix2x_pmix_src_sm_pmix__mmap.c b/net/openmpi3/files/patch-opal_mca_pmix_pmix2x_pmix_src_sm_pmix__mmap.c new file mode 100644 index 000000000000..4a2d33a24df7 --- /dev/null +++ b/net/openmpi3/files/patch-opal_mca_pmix_pmix2x_pmix_src_sm_pmix__mmap.c @@ -0,0 +1,20 @@ +--- opal/mca/pmix/pmix2x/pmix/src/sm/pmix_mmap.c.orig 2017-12-28 19:08:34 UTC ++++ opal/mca/pmix/pmix2x/pmix/src/sm/pmix_mmap.c +@@ -66,6 +66,9 @@ int _mmap_segment_create(pmix_sm_seg_t *sm_seg, const + 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; +@@ -85,6 +88,7 @@ int _mmap_segment_create(pmix_sm_seg_t *sm_seg, const + 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"); |