openmpi: Optional configure flags
* Activate support for the Sun Grid Engine * Pass PATH/LD_LIBRARY_PATH pointing to the current mpi installation to other processes by default.
This commit is contained in:
parent
3c6afb3496
commit
1e0605738a
|
@ -1,4 +1,13 @@
|
||||||
{stdenv, fetchurl, gfortran}:
|
{stdenv, fetchurl, gfortran
|
||||||
|
|
||||||
|
# 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;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "openmpi-1.6.5";
|
name = "openmpi-1.6.5";
|
||||||
|
@ -7,6 +16,10 @@ stdenv.mkDerivation {
|
||||||
sha256 = "11gws4d3z7934zna2r7m1f80iay2ha17kp42mkh39wjykfwbldzy";
|
sha256 = "11gws4d3z7934zna2r7m1f80iay2ha17kp42mkh39wjykfwbldzy";
|
||||||
};
|
};
|
||||||
buildInputs = [ gfortran ];
|
buildInputs = [ gfortran ];
|
||||||
|
configureFlags = []
|
||||||
|
++ optional enableSGE "--with-sge"
|
||||||
|
++ optional enablePrefix "--enable-mpirun-prefix-by-default"
|
||||||
|
;
|
||||||
meta = {
|
meta = {
|
||||||
homePage = http://www.open-mpi.org/;
|
homePage = http://www.open-mpi.org/;
|
||||||
description = "Open source MPI-2 implementation";
|
description = "Open source MPI-2 implementation";
|
||||||
|
|
Loading…
Reference in New Issue