openmpi: 1.6.5 -> 1.10.1
This commit is contained in:
parent
c2b70e6147
commit
fea89d6bc3
@ -1,25 +1,44 @@
|
||||
{stdenv, fetchurl, gfortran
|
||||
{stdenv, fetchurl, gfortran, perl
|
||||
|
||||
# Enable the Sun Grid Engine bindings
|
||||
, enableSGE ? false
|
||||
|
||||
# Pass PATH/LD_LIBRARY_PATH to point to current mpirun by default
|
||||
, enablePrefix ? false
|
||||
|
||||
# Build static libraries
|
||||
, enableStatic ? false
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "openmpi-1.6.5";
|
||||
let
|
||||
majorVersion = "1.10";
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "openmpi-${majorVersion}.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.5.tar.bz2 ;
|
||||
sha256 = "11gws4d3z7934zna2r7m1f80iay2ha17kp42mkh39wjykfwbldzy";
|
||||
url = "http://www.open-mpi.org/software/ompi/v${majorVersion}/downloads/${name}.tar.bz2";
|
||||
sha256 = "14p4px9a3qzjc22lnl6braxrcrmd9rgmy7fh4qpanawn2pgfq6br";
|
||||
};
|
||||
|
||||
buildInputs = [ gfortran ];
|
||||
|
||||
nativeBuildInputs = [ perl ];
|
||||
|
||||
configureFlags = []
|
||||
++ optional enableSGE "--with-sge"
|
||||
++ optional enablePrefix "--enable-mpirun-prefix-by-default"
|
||||
++ optional enableStatic "--enable-static"
|
||||
;
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
preBuild = ''
|
||||
patchShebangs ompi/mpi/fortran/base/gen-mpi-sizeof.pl
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = http://www.open-mpi.org/;
|
||||
description = "Open source MPI-2 implementation";
|
||||
|
Loading…
Reference in New Issue
Block a user