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 {
|
2021-03-04 00:41:05 +08:00
|
|
|
version = "5.7";
|
2020-08-19 00:28:30 +08: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-04 00:41:05 +08:00
|
|
|
sha256 = "1425ygxpk3kyy6ilh4f6qjsjdyx0gjjzs7ic1cb7zjmn1vhfnw0l";
|
2020-08-19 00:28:30 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
buildInputs = [ mpi ];
|
2021-04-22 01:42:37 +08:00
|
|
|
hardeningDisable = [ "all" ];
|
2020-08-19 00:28:30 +08: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 = [ ];
|
2022-09-01 22:27:29 +08:00
|
|
|
platforms = lib.platforms.all;
|
2020-08-19 00:28:30 +08:00
|
|
|
};
|
|
|
|
}
|