bscpkgs/pkgs/osu/default.nix

40 lines
851 B
Nix
Raw Normal View History

2020-08-19 00:28:30 +08:00
{
2023-06-16 21:50:03 +08:00
stdenv
, fetchurl
, mpi
, lib
2020-08-19 00:28:30 +08:00
}:
stdenv.mkDerivation rec {
2023-06-16 22:27:47 +08:00
version = "7.1-1";
2020-08-19 00:28:30 +08:00
name = "osu-micro-benchmarks-${version}";
src = fetchurl {
2023-06-16 22:27:47 +08:00
url = "https://mvapich.cse.ohio-state.edu/download/mvapich/osu-micro-benchmarks-${version}.tar.gz";
sha256 = "sha256-hfTdi+HfMSVeIyhSdprluC6HpfsUvi+Ouhrp3o/+ORo=";
2020-08-19 00:28:30 +08:00
};
doCheck = true;
enableParallelBuilding = true;
buildInputs = [ mpi ];
hardeningDisable = [ "all" ];
2020-08-19 00:28:30 +08:00
configureFlags = [
"CC=${mpi}/bin/mpicc"
"CXX=${mpi}/bin/mpicxx"
];
postInstall = ''
mkdir -p $out/bin
2023-06-16 22:27:47 +08:00
for f in $(find $out -executable -type f); do
ln -s "$f" $out/bin/$(basename "$f")
done
2020-08-19 00:28:30 +08:00
'';
meta = {
description = "OSU Micro-Benchmarks";
homepage = http://mvapich.cse.ohio-state.edu/benchmarks/;
maintainers = [ ];
2022-09-01 22:27:29 +08:00
platforms = lib.platforms.all;
2020-08-19 00:28:30 +08:00
};
}