Add OSU test benchmarks

This commit is contained in:
2020-08-18 18:28:30 +02:00
parent ecc01e4314
commit 1e07be863a
7 changed files with 134 additions and 10 deletions

38
bsc/osu/default.nix Normal file
View File

@@ -0,0 +1,38 @@
{
stdenv,
fetchurl,
mpi
}:
stdenv.mkDerivation rec {
version = "5.6.3";
name = "osu-micro-benchmarks-${version}";
src = fetchurl {
url = "http://mvapich.cse.ohio-state.edu/download/mvapich/osu-micro-benchmarks-${version}.tar.gz";
sha256 = "1f5fc252c0k4rd26xh1v5017wfbbsr2w7jm49x8yigc6n32sisn5";
};
doCheck = true;
enableParallelBuilding = true;
buildInputs = [ mpi ];
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;
};
}