2020-09-30 17:32:49 +02:00
|
|
|
{
|
|
|
|
stdenv
|
2020-10-01 16:48:35 +02:00
|
|
|
, granul ? 0
|
|
|
|
, nprocz ? 0
|
2021-04-19 13:17:24 +02:00
|
|
|
, gitBranch ? "garlic/mpi+send+seq"
|
|
|
|
, gitCommit ? null
|
|
|
|
, garlicTools
|
2020-09-30 17:32:49 +02:00
|
|
|
}:
|
|
|
|
|
2021-04-19 13:17:24 +02:00
|
|
|
let
|
|
|
|
gitSource = garlicTools.fetchGarlicApp {
|
|
|
|
appName = "creams";
|
|
|
|
inherit gitCommit gitBranch;
|
|
|
|
gitTable = import ./git-table.nix;
|
2020-09-30 17:32:49 +02:00
|
|
|
};
|
2021-04-19 13:17:24 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "creams-input";
|
|
|
|
|
|
|
|
inherit (gitSource) src gitBranch gitCommit;
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "patchPhase" "installPhase" ];
|
2020-09-30 17:32:49 +02:00
|
|
|
|
2021-04-19 13:17:24 +02:00
|
|
|
patchPhase = ''
|
|
|
|
patchShebangs SodTubeBenchmark/gridScript.sh
|
|
|
|
'';
|
2020-10-01 16:48:35 +02:00
|
|
|
|
2021-04-19 13:17:24 +02:00
|
|
|
installPhase = ''
|
|
|
|
pushd SodTubeBenchmark
|
|
|
|
./gridScript.sh 0 0 ${toString nprocz} ${toString granul}
|
|
|
|
popd
|
2020-09-30 17:32:49 +02:00
|
|
|
|
2021-04-19 13:17:24 +02:00
|
|
|
mkdir -p $out
|
|
|
|
cp -a SodTubeBenchmark $out/
|
|
|
|
'';
|
2021-04-06 19:19:24 +02:00
|
|
|
|
|
|
|
hardeningDisable = [ "all" ];
|
2021-04-19 13:17:24 +02:00
|
|
|
}
|