2021-07-13 18:37:04 +08:00
|
|
|
{
|
|
|
|
stdenv
|
2023-11-24 22:22:57 +08:00
|
|
|
, fetchFromGitHub
|
2021-07-13 18:37:04 +08:00
|
|
|
, automake
|
|
|
|
, autoconf
|
|
|
|
, libtool
|
|
|
|
, mpi
|
|
|
|
, autoreconfHook
|
2023-10-02 16:38:49 +08:00
|
|
|
, gpi-2
|
2021-07-13 18:37:04 +08:00
|
|
|
, boost
|
|
|
|
, numactl
|
|
|
|
, rdma-core
|
|
|
|
, gfortran
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tagaspi";
|
2022-04-05 22:34:10 +08:00
|
|
|
enableParallelBuilding = true;
|
2023-11-20 22:43:29 +08:00
|
|
|
separateDebugInfo = true;
|
2021-07-13 18:37:04 +08:00
|
|
|
|
2023-11-24 22:22:57 +08:00
|
|
|
version = "2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bsc-pm";
|
|
|
|
repo = "tagaspi";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-RGG/Re2uM293HduZfGzKUWioDtwnSYYdfeG9pVrX9EM=";
|
|
|
|
};
|
|
|
|
|
2021-07-13 18:37:04 +08:00
|
|
|
buildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
automake
|
|
|
|
autoconf
|
|
|
|
libtool
|
|
|
|
boost
|
|
|
|
mpi
|
|
|
|
numactl
|
|
|
|
rdma-core
|
|
|
|
gfortran
|
|
|
|
];
|
|
|
|
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
|
|
|
configureFlags = [
|
2023-10-02 16:38:49 +08:00
|
|
|
"--with-gaspi=${gpi-2}"
|
2021-07-13 18:37:04 +08:00
|
|
|
"CFLAGS=-fPIC"
|
|
|
|
"CXXFLAGS=-fPIC"
|
|
|
|
];
|
|
|
|
|
|
|
|
hardeningDisable = [ "all" ];
|
|
|
|
}
|