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