2021-02-19 11:07:58 +01:00
|
|
|
{
|
|
|
|
stdenv
|
|
|
|
, stdexp
|
|
|
|
, bsc
|
|
|
|
, targetMachine
|
|
|
|
, stages
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
# Initial variable configuration
|
|
|
|
varConf = with bsc; {
|
|
|
|
nb = [ 1 2 4 8 16 32 64 128 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Generate the complete configuration for each unit
|
|
|
|
genConf = with bsc; c: targetMachine.config // rec {
|
|
|
|
expName = "saiph.blockingZ";
|
2021-02-19 11:29:38 +01:00
|
|
|
unitName = "${expName}.nbx-nby-nbz-${toString nbx}-${toString nby}-${toString nbz}.nsteps-${toString nsteps}";
|
2021-02-19 11:07:58 +01:00
|
|
|
inherit (targetMachine.config) hw;
|
|
|
|
|
|
|
|
# saiph options
|
|
|
|
nbx = 1;
|
|
|
|
nby = 1;
|
|
|
|
nbz = c.nb;
|
2021-02-19 11:29:38 +01:00
|
|
|
nsteps = 500;
|
2021-02-19 11:07:58 +01:00
|
|
|
mpi = impi;
|
|
|
|
gitBranch = "garlic/tampi+isend+oss+task+simd";
|
|
|
|
|
|
|
|
# Repeat the execution of each unit 50 times
|
|
|
|
loops = 30;
|
|
|
|
|
|
|
|
# Resources
|
|
|
|
cachelineBytes = hw.cachelineBytes;
|
|
|
|
qos = "debug";
|
|
|
|
time = "01:00:00";
|
|
|
|
nodes = 1;
|
|
|
|
ntasksPerNode = hw.socketsPerNode;
|
|
|
|
cpusPerTask = hw.cpusPerSocket;
|
|
|
|
jobName = "${unitName}-${gitBranch}";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Compute the array of configurations
|
|
|
|
configs = stdexp.buildConfigs {
|
|
|
|
inherit varConf genConf;
|
|
|
|
};
|
|
|
|
|
|
|
|
exec = {nextStage, conf, ...}: with conf; stages.exec {
|
|
|
|
inherit nextStage;
|
|
|
|
env = ''
|
|
|
|
export ASAN_SYMBOLIZER_PATH=${bsc.clangOmpss2Unwrapped}/bin/llvm-symbolizer
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
program = {nextStage, conf, ...}: with conf;
|
|
|
|
let
|
|
|
|
customPkgs = stdexp.replaceMpi conf.mpi;
|
|
|
|
in
|
|
|
|
customPkgs.apps.saiph.override {
|
2021-02-19 11:29:38 +01:00
|
|
|
inherit nbx nby nbz nsteps mpi gitBranch cachelineBytes;
|
2021-02-19 11:07:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pipeline = stdexp.stdPipeline ++ [ exec program ];
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdexp.genExperiment { inherit configs pipeline; }
|