2019-02-19 23:02:04 +00:00
|
|
|
{ stdenv, fetchpatch, fetchFromGitHub, autoreconfHook
|
2020-03-31 15:47:18 +01:00
|
|
|
, blas, gfortran, openssh, openmpi
|
2018-08-01 23:16:11 +01:00
|
|
|
} :
|
|
|
|
|
|
|
|
let
|
2020-04-14 11:29:36 +01:00
|
|
|
version = "5.7.2";
|
2018-08-01 23:16:11 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "globalarrays";
|
|
|
|
inherit version;
|
2018-08-01 23:16:11 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GlobalArrays";
|
|
|
|
repo = "ga";
|
|
|
|
rev = "v${version}";
|
2020-04-14 11:29:36 +01:00
|
|
|
sha256 = "0c1y9a5jpdw9nafzfmvjcln1xc2gklskaly0r1alm18ng9zng33i";
|
2018-08-01 23:16:11 +01:00
|
|
|
};
|
|
|
|
|
2019-02-19 23:02:04 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2020-03-31 15:47:18 +01:00
|
|
|
buildInputs = [ openmpi blas gfortran openssh ];
|
2018-08-01 23:16:11 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray+=( "--enable-i8" \
|
|
|
|
"--with-mpi" \
|
|
|
|
"--with-mpi3" \
|
|
|
|
"--enable-eispack" \
|
|
|
|
"--enable-underscoring" \
|
2020-03-31 15:47:18 +01:00
|
|
|
"--with-blas8=${blas}/lib -lblas" )
|
2018-08-01 23:16:11 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Global Arrays Programming Models";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://hpc.pnl.gov/globalarrays/";
|
2018-08-01 23:16:11 +01:00
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|