openmpi: add patch for mpi tests on machines with less than 4 cores
Fix a bug that ignores OMPI_MCA_rmaps_base_oversubscribe (upstream patch). This bug breaks the test from libs, such as scalapack, on machines with less than 4 cores.
This commit is contained in:
parent
dbf5135385
commit
c6f039e59c
1 changed files with 10 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, gfortran, perl, libnl, rdma-core, zlib
|
{ stdenv, fetchurl, fetchpatch, gfortran, perl, libnl
|
||||||
, numactl, libevent, hwloc
|
, rdma-core, zlib, numactl, libevent, hwloc
|
||||||
|
|
||||||
# Enable the Sun Grid Engine bindings
|
# Enable the Sun Grid Engine bindings
|
||||||
, enableSGE ? false
|
, enableSGE ? false
|
||||||
|
@ -19,6 +19,14 @@ in stdenv.mkDerivation rec {
|
||||||
sha256 = "0srnjwzsmyhka9hhnmqm86qck4w3xwjm8g6sbns58wzbrwv8l2rg";
|
sha256 = "0srnjwzsmyhka9hhnmqm86qck4w3xwjm8g6sbns58wzbrwv8l2rg";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [ (fetchpatch {
|
||||||
|
# Fix a bug that ignores OMPI_MCA_rmaps_base_oversubscribe (upstream patch).
|
||||||
|
# This bug breaks the test from libs, such as scalapack,
|
||||||
|
# on machines with less than 4 cores.
|
||||||
|
url = https://github.com/open-mpi/ompi/commit/98c8492057e6222af6404b352430d0dd7553d253.patch;
|
||||||
|
sha256 = "1mpd8sxxprgfws96qqlzvqf58pn2vv2d0qa8g8cpv773sgw3b3gj";
|
||||||
|
}) ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs ./
|
patchShebangs ./
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue