bscpkgs/bsc/osu/default.nix

40 lines
1013 B
Nix
Raw Normal View History

2020-08-18 18:28:30 +02:00
{
stdenv,
fetchurl,
mpi
}:
stdenv.mkDerivation rec {
2021-03-03 17:41:05 +01:00
version = "5.7";
2020-08-18 18:28:30 +02:00
name = "osu-micro-benchmarks-${version}";
src = fetchurl {
url = "http://mvapich.cse.ohio-state.edu/download/mvapich/osu-micro-benchmarks-${version}.tar.gz";
2021-03-03 17:41:05 +01:00
sha256 = "1425ygxpk3kyy6ilh4f6qjsjdyx0gjjzs7ic1cb7zjmn1vhfnw0l";
2020-08-18 18:28:30 +02:00
};
doCheck = true;
enableParallelBuilding = true;
buildInputs = [ mpi ];
hardeningDisable = [ "all" ];
2020-08-18 18:28:30 +02:00
configureFlags = [
"CC=${mpi}/bin/mpicc"
"CXX=${mpi}/bin/mpicxx"
];
postInstall = ''
mkdir -p $out/bin
cp $out/libexec/osu-micro-benchmarks/mpi/one-sided/* $out/bin/
cp $out/libexec/osu-micro-benchmarks/mpi/collective/* $out/bin/
cp $out/libexec/osu-micro-benchmarks/mpi/pt2pt/* $out/bin/
cp $out/libexec/osu-micro-benchmarks/mpi/startup/* $out/bin/
'';
meta = {
description = "OSU Micro-Benchmarks";
homepage = http://mvapich.cse.ohio-state.edu/benchmarks/;
maintainers = [ ];
platforms = stdenv.lib.platforms.all;
};
}