mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
6dba41fbcb
Use the attribute mpi to provide a system wide default MPI implementation. The default is openmpi (as before). This now allows for overriding the MPI implentation by using the overlay mechanism. Build all packages with mpich instead of the default openmpi can now be achived like this: self: super: { mpi = super.mpich; } All derivations that have been using "mpi ? null" to provide optional building with MPI have been change in the following way to allow for optional builds with MPI: { ... , mpi , useMpi ? false }
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{ lib, stdenv, fetchpatch, fetchFromGitHub, autoreconfHook
|
|
, blas, gfortran, openssh, mpi
|
|
} :
|
|
|
|
let
|
|
version = "5.8";
|
|
|
|
in stdenv.mkDerivation {
|
|
pname = "globalarrays";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GlobalArrays";
|
|
repo = "ga";
|
|
rev = "v${version}";
|
|
sha256 = "0bky91ncz6vy0011ps9prsnq9f4a5s5xwr23kkmi39xzg0417mnd";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [ mpi blas gfortran openssh ];
|
|
|
|
preConfigure = ''
|
|
configureFlagsArray+=( "--enable-i8" \
|
|
"--with-mpi" \
|
|
"--with-mpi3" \
|
|
"--enable-eispack" \
|
|
"--enable-underscoring" \
|
|
"--with-blas8=${blas}/lib -lblas" )
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "Global Arrays Programming Models";
|
|
homepage = "http://hpc.pnl.gov/globalarrays/";
|
|
maintainers = [ maintainers.markuskowa ];
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|