bscpkgs/garlic/apps/creams/input.nix

39 lines
739 B
Nix
Raw Normal View History

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