From d469ccd59daab0bfe1f2b15a6e75bde96b4a02ad Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 2 Sep 2020 10:44:13 +0200 Subject: [PATCH] Add extrae and perf stages --- bsc/garlic/control.nix | 2 +- bsc/garlic/default.nix | 8 ++ bsc/garlic/exp/nbody/bs.nix | 45 ++++++- bsc/garlic/exp/nbody/extrae.xml | 211 ++++++++++++++++++++++++++++++++ bsc/garlic/exp/osu/latency.nix | 12 +- bsc/garlic/extrae.nix | 30 +++++ bsc/garlic/nbody/default.nix | 10 +- bsc/garlic/perf.nix | 26 ++++ bsc/garlic/sbatch.nix | 1 + bsc/garlic/srun.nix | 8 +- bsc/garlic/statspy.nix | 29 +++++ 11 files changed, 368 insertions(+), 14 deletions(-) create mode 100644 bsc/garlic/exp/nbody/extrae.xml create mode 100644 bsc/garlic/extrae.nix create mode 100644 bsc/garlic/perf.nix create mode 100644 bsc/garlic/statspy.nix diff --git a/bsc/garlic/control.nix b/bsc/garlic/control.nix index 0e5daa8..268c928 100644 --- a/bsc/garlic/control.nix +++ b/bsc/garlic/control.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation { mkdir -p $out/bin cat > $out/bin/run < + + + + + + + + + + + + + + + + 1-3 + + 1-5 + + 1-3 + + 1-3 + + 1-3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + PAPI_TOT_INS,PAPI_TOT_CYC + + + + + + + + + + + + + + + + + TRACE + + 5 + + /scratch + + /gpfs/scratch/bsc41/bsc41273 + + + + + + 5000000 + + + + + + + + /gpfs/scratch/bsc41/bsc41273/control + + + + + + + 10M + + + + + + + + + + + 500u + + + + + + + + + + + + + + + + + + + + diff --git a/bsc/garlic/exp/osu/latency.nix b/bsc/garlic/exp/osu/latency.nix index 3a3a777..77970c6 100644 --- a/bsc/garlic/exp/osu/latency.nix +++ b/bsc/garlic/exp/osu/latency.nix @@ -64,7 +64,17 @@ let with conf; bsc.osumb.override { inherit mpi; }; - pipeline = conf: sbatch conf (srun (nixsetupWrapper (argv (osumbFn conf)))); + + pipeline = conf: + sbatch conf ( + nixsetupWrapper ( + controlWrapper ( + srun ( + nixsetupWrapper ( + argv ( + osumbFn conf)))))); + + #pipeline = conf: sbatch conf (srun (nixsetupWrapper (argv (osumbFn conf)))); #pipeline = conf: sbatch conf (srun (nixsetupWrapper (argv bsc.osumb))); # Ideally it should look like this: diff --git a/bsc/garlic/extrae.nix b/bsc/garlic/extrae.nix new file mode 100644 index 0000000..174636f --- /dev/null +++ b/bsc/garlic/extrae.nix @@ -0,0 +1,30 @@ +{ + stdenv +, bash +, extrae +}: + +{ + app +, traceLib ? "mpi" +, configFile +, program ? "bin/run" +}: + +stdenv.mkDerivation { + name = "${app.name}-extrae"; + preferLocalBuild = true; + phases = [ "installPhase" ]; + installPhase = '' + mkdir -p $out/bin + cat > $out/bin/run < $out/bin/run < $out/bin/run < $out/bin/run < ${outputDir}/statspy.\$(date +%s.%3N).begin + ${app}/${program} + cat /proc/[0-9]*/stat | sort -n > ${outputDir}/statspy.\$(date +%s.%3N).end + + EOF + chmod +x $out/bin/run + ''; +}