2021-07-13 12:37:04 +02:00
|
|
|
{
|
|
|
|
stdenv
|
2023-11-23 14:56:22 +01:00
|
|
|
, fetchurl
|
2023-11-21 16:55:47 +01:00
|
|
|
, symlinkJoin
|
2021-07-13 12:37:04 +02:00
|
|
|
, slurm
|
|
|
|
, rdma-core
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, mpi
|
|
|
|
, rsync
|
|
|
|
, gfortran
|
|
|
|
}:
|
|
|
|
|
2023-11-21 16:55:47 +01:00
|
|
|
let
|
|
|
|
rdma-core-all = symlinkJoin {
|
|
|
|
name ="rdma-core-all";
|
|
|
|
paths = [ rdma-core.dev rdma-core.out ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2021-07-13 12:37:04 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "GPI-2";
|
2023-11-23 14:56:22 +01:00
|
|
|
version = "tagaspi-2021.11";
|
2021-07-13 12:37:04 +02:00
|
|
|
|
2023-11-23 14:56:22 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://pm.bsc.es/gitlab/interoperability/extern/GPI-2/-/archive/${version}/GPI-2-${version}.tar.gz";
|
|
|
|
hash = "sha256-eY2wpyTpnOXRoAcYoAP82Jq9Q7p5WwDpMj+f1vEX5zw=";
|
2021-07-13 12:37:04 +02:00
|
|
|
};
|
|
|
|
|
2022-04-05 16:34:10 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-07-13 12:37:04 +02:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs autogen.sh
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
2023-11-21 16:55:47 +01:00
|
|
|
"--with-infiniband=${rdma-core-all}"
|
2021-07-13 12:37:04 +02:00
|
|
|
"--with-mpi=${mpi}"
|
|
|
|
"--with-slurm"
|
|
|
|
"CFLAGS=-fPIC"
|
|
|
|
"CXXFLAGS=-fPIC"
|
|
|
|
];
|
|
|
|
|
2023-11-21 16:55:47 +01:00
|
|
|
buildInputs = [ slurm mpi rdma-core-all autoconf automake libtool rsync gfortran ];
|
2021-07-13 12:37:04 +02:00
|
|
|
|
|
|
|
hardeningDisable = [ "all" ];
|
|
|
|
}
|