1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

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:
Markus Kowalewski 2019-02-07 13:34:06 +01:00
parent dbf5135385
commit c6f039e59c
No known key found for this signature in database
GPG key ID: 502A248E3FB4FF48

View file

@ -1,5 +1,5 @@
{ stdenv, fetchurl, gfortran, perl, libnl, rdma-core, zlib
, numactl, libevent, hwloc
{ stdenv, fetchurl, fetchpatch, gfortran, perl, libnl
, rdma-core, zlib, numactl, libevent, hwloc
# Enable the Sun Grid Engine bindings
, enableSGE ? false
@ -19,6 +19,14 @@ in stdenv.mkDerivation rec {
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 = ''
patchShebangs ./
'';