2020-09-21 17:30:24 +02:00
|
|
|
{
|
|
|
|
stdenv
|
2020-10-09 17:20:50 +02:00
|
|
|
, stdexp
|
|
|
|
, bsc
|
|
|
|
, targetMachine
|
|
|
|
, stages
|
2020-09-21 17:30:24 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let
|
2020-10-09 19:40:49 +02:00
|
|
|
# Initial variable configuration
|
|
|
|
varConf = with bsc; {
|
2020-10-09 17:20:50 +02:00
|
|
|
numComm = [ 1 2 ];
|
2020-09-21 17:30:24 +02:00
|
|
|
};
|
|
|
|
|
2020-10-09 19:40:49 +02:00
|
|
|
# Generate the complete configuration for each unit
|
|
|
|
genConf = with bsc; c: targetMachine.config // rec {
|
2020-11-05 19:53:38 +01:00
|
|
|
expName = "saiph.numcomm";
|
|
|
|
unitName = "${expName}.nc-${toString numComm}";
|
|
|
|
|
2020-10-09 17:20:50 +02:00
|
|
|
# saiph options
|
2020-10-09 19:40:49 +02:00
|
|
|
inherit (c) numComm;
|
2020-10-09 17:20:50 +02:00
|
|
|
mpi = impi;
|
2020-09-30 18:33:08 +02:00
|
|
|
gitBranch = "garlic/tampi+isend+oss+task+simd";
|
2020-09-21 17:30:24 +02:00
|
|
|
|
2020-10-09 19:40:49 +02:00
|
|
|
# Repeat the execution of each unit 100 times
|
2020-10-09 17:20:50 +02:00
|
|
|
loops = 100;
|
2020-09-21 17:30:24 +02:00
|
|
|
|
2020-10-09 17:20:50 +02:00
|
|
|
# Resources
|
2020-10-09 19:40:49 +02:00
|
|
|
qos = "debug";
|
|
|
|
time = "02:00:00";
|
2020-10-09 17:20:50 +02:00
|
|
|
ntasksPerNode = 2;
|
|
|
|
nodes = 1;
|
|
|
|
cpuBind = "sockets,verbose";
|
2020-10-09 19:40:49 +02:00
|
|
|
jobName = "saiph-${toString numComm}-${gitBranch}";
|
2020-09-22 17:39:26 +02:00
|
|
|
};
|
|
|
|
|
2020-10-09 17:20:50 +02:00
|
|
|
# Compute the array of configurations
|
|
|
|
configs = stdexp.buildConfigs {
|
2020-10-09 19:40:49 +02:00
|
|
|
inherit varConf genConf;
|
2020-09-22 17:39:26 +02:00
|
|
|
};
|
2020-09-21 17:30:24 +02:00
|
|
|
|
2020-10-09 17:20:50 +02:00
|
|
|
exec = {nextStage, conf, ...}: with conf; stages.exec {
|
|
|
|
inherit nextStage;
|
2020-09-23 13:13:51 +02:00
|
|
|
env = ''
|
2020-10-07 11:38:57 +02:00
|
|
|
export OMP_NUM_THREADS=24
|
2020-09-23 13:13:51 +02:00
|
|
|
export NANOS6_REPORT_PREFIX="#"
|
|
|
|
export I_MPI_THREAD_SPLIT=1
|
2020-10-09 17:20:50 +02:00
|
|
|
export ASAN_SYMBOLIZER_PATH=${bsc.clangOmpss2Unwrapped}/bin/llvm-symbolizer
|
2020-09-23 13:13:51 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-10-09 17:20:50 +02:00
|
|
|
program = {nextStage, conf, ...}: with conf;
|
|
|
|
let
|
|
|
|
customPkgs = stdexp.replaceMpi conf.mpi;
|
|
|
|
in
|
2020-10-09 19:40:49 +02:00
|
|
|
customPkgs.apps.saiph.override {
|
2020-11-12 19:10:43 +01:00
|
|
|
inherit numComm mpi gitBranch;
|
2020-10-09 19:40:49 +02:00
|
|
|
};
|
2020-09-21 17:30:24 +02:00
|
|
|
|
2020-10-09 19:40:49 +02:00
|
|
|
pipeline = stdexp.stdPipeline ++ [ exec program ];
|
2020-09-21 17:30:24 +02:00
|
|
|
|
|
|
|
in
|
2020-10-09 17:20:50 +02:00
|
|
|
|
|
|
|
stdexp.genExperiment { inherit configs pipeline; }
|