mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
mpich2: cleanup, rename to mpich
* mpich2 -> mpich * remove slurm dependency * use most recent gfortran * turn enableParallelBulding on * ensure mpi[cc,cxx,fort] uses default compilers it was built with
This commit is contained in:
parent
cd794f4216
commit
87925f0ba6
@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, perl, gfortran
|
||||
, slurm, openssh, hwloc
|
||||
, openssh, hwloc
|
||||
} :
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -16,7 +16,9 @@ stdenv.mkDerivation rec {
|
||||
"--enable-sharedlib"
|
||||
];
|
||||
|
||||
buildInputs = [ perl gfortran slurm openssh hwloc ];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildInputs = [ perl gfortran openssh hwloc ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
@ -26,8 +28,12 @@ stdenv.mkDerivation rec {
|
||||
echo "fix rpath: $entry"
|
||||
patchelf --set-rpath "$out/lib" $entry
|
||||
done
|
||||
'';
|
||||
|
||||
# Ensure the default compilers are the ones mpich was built with
|
||||
sed -i 's:CC="gcc":CC=${stdenv.cc}/bin/gcc:' $out/bin/mpicc
|
||||
sed -i 's:CXX="g++":CXX=${stdenv.cc}/bin/g++:' $out/bin/mpicxx
|
||||
sed -i 's:FC="gfortran":FC=${gfortran}/bin/gfortran:' $out/bin/mpifort
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Implementation of the Message Passing Interface (MPI) standard";
|
@ -171,6 +171,7 @@ mapAliases ({
|
||||
mlt-qt5 = libsForQt5.mlt; # added 2015-12-19
|
||||
mobile_broadband_provider_info = mobile-broadband-provider-info; # added 2018-02-25
|
||||
module_init_tools = kmod; # added 2016-04-22
|
||||
mpich2 = mpich; # added 2018-08-06
|
||||
msf = metasploit; # added 2018-04-25
|
||||
mssys = ms-sys; # added 2015-12-13
|
||||
multipath_tools = multipath-tools; # added 2016-01-21
|
||||
|
@ -11071,9 +11071,7 @@ with pkgs;
|
||||
|
||||
libmpc = callPackage ../development/libraries/libmpc { };
|
||||
|
||||
mpich2 = callPackage ../development/libraries/mpich2 {
|
||||
gfortran = gfortran5;
|
||||
};
|
||||
mpich = callPackage ../development/libraries/mpich { };
|
||||
|
||||
mstpd = callPackage ../os-specific/linux/mstpd { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user