bsc: add GPI-2 and TAGASPI

This commit is contained in:
Rodrigo Arias 2021-07-13 12:37:04 +02:00
parent d2834624c2
commit a5af7890b8
3 changed files with 94 additions and 0 deletions

38
bsc/gpi-2/default.nix Normal file
View File

@ -0,0 +1,38 @@
{
stdenv
, slurm
, rdma-core
, autoconf
, automake
, libtool
, mpi
, rsync
, gfortran
}:
stdenv.mkDerivation rec {
pname = "GPI-2";
version = src.shortRev;
src = builtins.fetchGit {
url = "ssh://git@bscpm03.bsc.es/interoperability/GPI-2";
ref = "lowlevel";
};
preConfigure = ''
patchShebangs autogen.sh
./autogen.sh
'';
configureFlags = [
"--with-infiniband=${rdma-core}"
"--with-mpi=${mpi}"
"--with-slurm"
"CFLAGS=-fPIC"
"CXXFLAGS=-fPIC"
];
buildInputs = [ slurm mpi rdma-core autoconf automake libtool rsync gfortran ];
hardeningDisable = [ "all" ];
}

46
bsc/tagaspi/default.nix Normal file
View File

@ -0,0 +1,46 @@
{
stdenv
, automake
, autoconf
, libtool
, mpi
, autoreconfHook
, gaspi
, boost
, numactl
, rdma-core
, gfortran
}:
stdenv.mkDerivation rec {
pname = "tagaspi";
version = src.shortRev;
enableParallelBuilding = false;
buildInputs = [
autoreconfHook
automake
autoconf
libtool
boost
mpi
numactl
rdma-core
gfortran
];
dontDisableStatic = true;
configureFlags = [
"--with-gaspi=${gaspi}"
"CFLAGS=-fPIC"
"CXXFLAGS=-fPIC"
];
src = builtins.fetchGit {
url = "ssh://git@bscpm03.bsc.es/interoperability/tagaspi";
ref = "master";
};
hardeningDisable = [ "all" ];
}

View File

@ -134,6 +134,16 @@ let
tampiRelease = callPackage ./bsc/tampi/default.nix { }; tampiRelease = callPackage ./bsc/tampi/default.nix { };
tampiGit = callPackage ./bsc/tampi/git.nix { }; tampiGit = callPackage ./bsc/tampi/git.nix { };
# =================================================================
# GASPI
# =================================================================
gpi-2 = callPackage ./bsc/gpi-2/default.nix { };
# Use GPI-2 as the default implementation for GASPI
gaspi = bsc.gpi-2;
tagaspi = callPackage ./bsc/tagaspi/default.nix { };
# ================================================================= # =================================================================
# Tracing # Tracing
# ================================================================= # =================================================================