saiph: if extrae add some env var

This commit is contained in:
sandra 2020-09-23 13:13:51 +02:00
parent c8915dfc89
commit c1b64e8897

View File

@ -115,6 +115,18 @@ let
# have to get the definition of the bsc packages and the garlic ones as
# overlays.
argv = {stage, conf, ...}: with conf; w.argv {
program = stageProgram stage;
env = ''
export NANOS6_REPORT_PREFIX="#"
export I_MPI_THREAD_SPLIT=1
''
+ optionalString enableExtrae
''export NANOS6=extrae
export NANOS6_EXTRAE_AS_THREADS=0
'';
};
saiphFn = {stage, conf, ...}: with conf;
let
# We set the mpi implementation to the one specified in the conf, so all
@ -153,7 +165,7 @@ let
++ optional enablePerf perf
# Execute the saiph example app
++ [ saiphFn ];
++ [ argv saiphFn ];
# List of actual programs to be executed
jobs = map (conf: w.stagen { inherit conf stages; }) configs;