2016-03-16 14:42:30 +00:00
|
|
|
{stdenv, fetchurl, gfortran, perl, libibverbs
|
2014-07-06 21:13:04 +00:00
|
|
|
|
|
|
|
# Enable the Sun Grid Engine bindings
|
|
|
|
, enableSGE ? false
|
|
|
|
|
|
|
|
# Pass PATH/LD_LIBRARY_PATH to point to current mpirun by default
|
|
|
|
, enablePrefix ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2009-06-05 13:31:57 +00:00
|
|
|
|
2015-12-28 23:24:51 +00:00
|
|
|
let
|
|
|
|
majorVersion = "1.10";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2017-06-23 06:11:06 +00:00
|
|
|
name = "openmpi-${majorVersion}.7";
|
2015-12-28 23:24:51 +00:00
|
|
|
|
2009-06-05 13:31:57 +00:00
|
|
|
src = fetchurl {
|
2015-12-28 23:24:51 +00:00
|
|
|
url = "http://www.open-mpi.org/software/ompi/v${majorVersion}/downloads/${name}.tar.bz2";
|
2017-06-23 06:11:06 +00:00
|
|
|
sha256 = "142s1vny9gllkq336yafxayjgcirj2jv0ddabj879jgya7hyr2d0";
|
2009-06-05 13:31:57 +00:00
|
|
|
};
|
2015-12-28 23:24:51 +00:00
|
|
|
|
2016-07-21 22:55:44 +00:00
|
|
|
buildInputs = [ gfortran ]
|
|
|
|
++ optional (stdenv.isLinux || stdenv.isFreeBSD) libibverbs;
|
2015-12-28 23:24:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
|
2014-07-06 21:13:04 +00:00
|
|
|
configureFlags = []
|
|
|
|
++ optional enableSGE "--with-sge"
|
|
|
|
++ optional enablePrefix "--enable-mpirun-prefix-by-default"
|
|
|
|
;
|
2015-12-28 23:24:51 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
patchShebangs ompi/mpi/fortran/base/gen-mpi-sizeof.pl
|
|
|
|
'';
|
|
|
|
|
2016-08-31 10:03:07 +00:00
|
|
|
postInstall = ''
|
|
|
|
rm -f $out/lib/*.la
|
|
|
|
'';
|
|
|
|
|
2013-02-03 16:45:35 +00:00
|
|
|
meta = {
|
2015-04-20 12:20:03 +00:00
|
|
|
homepage = http://www.open-mpi.org/;
|
2013-02-03 16:45:35 +00:00
|
|
|
description = "Open source MPI-2 implementation";
|
|
|
|
longDescription = "The Open MPI Project is an open source MPI-2 implementation that is developed and maintained by a consortium of academic, research, and industry partners. Open MPI is therefore able to combine the expertise, technologies, and resources from all across the High Performance Computing community in order to build the best MPI library available. Open MPI offers advantages for system and software vendors, application developers and computer science researchers.";
|
2014-09-13 11:51:39 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.mornfall ];
|
2016-07-21 22:55:44 +00:00
|
|
|
platforms = platforms.unix;
|
2013-02-03 16:45:35 +00:00
|
|
|
};
|
2009-06-05 13:31:57 +00:00
|
|
|
}
|