Archived
1
0
forked from rarias/bscpkgs

Add extrae and perf stages

This commit is contained in:
2020-09-02 10:44:13 +02:00
parent d05d32edbf
commit d469ccd59d
11 changed files with 368 additions and 14 deletions

View File

@@ -1,7 +1,11 @@
{
stdenv
}:
{ app , nixPrefix ? "" }:
{
app
, nixPrefix ? ""
, srunOptions ? ""
}:
stdenv.mkDerivation rec {
name = "${app.name}-srun";
@@ -13,7 +17,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
cat > $out/bin/run <<EOF
#!/bin/sh
exec srun --mpi=pmi2 ${nixPrefix}${app}/bin/run
exec srun --mpi=pmi2 ${srunOptions} ${nixPrefix}${app}/bin/run
EOF
chmod +x $out/bin/run
'';