Fix saiph numcomm experiment

This commit is contained in:
Rodrigo Arias Mallo 2020-10-09 19:40:49 +02:00
parent 298c7362b3
commit 1b703bd431
2 changed files with 16 additions and 13 deletions

View File

@ -31,6 +31,7 @@ let
qos = "debug";
ntasksPerNode = 2;
nodes = 1;
time = "02:00:00";
cpuBind = "sockets,verbose";
jobName = "nbody-bs-${toString blocksize}-${gitBranch}";
};
@ -53,8 +54,7 @@ let
inherit cc blocksize mpi gitBranch;
};
pipeline = stdexp.stdUnitPre {sbatch=mySbatch;}
++ [ exec program ];
pipeline = stdexp.stdPipeline ++ [ exec program ];
in

View File

@ -9,31 +9,34 @@
with stdenv.lib;
let
# Configurations for each unit (using the cartesian product)
confUnit = with bsc; {
# Initial variable configuration
varConf = with bsc; {
numComm = [ 1 2 ];
};
# Configuration for the complete experiment
confExperiment = with bsc; {
# Generate the complete configuration for each unit
genConf = with bsc; c: targetMachine.config // rec {
# saiph options
devMode = false;
inherit (c) numComm;
mpi = impi;
gitBranch = "garlic/tampi+isend+oss+task+simd";
# Repeat the execution of each unit 30 times
# Repeat the execution of each unit 100 times
loops = 100;
# Resources
qos = "debug";
time = "02:00:00";
ntasksPerNode = 2;
nodes = 1;
cpuBind = "sockets,verbose";
jobName = "saiph-${toString numComm}-${gitBranch}";
};
# Compute the array of configurations
configs = stdexp.buildConfigs {
var = confUnit;
fixed = targetMachine.config // confExperiment;
inherit varConf genConf;
};
exec = {nextStage, conf, ...}: with conf; stages.exec {
@ -50,11 +53,11 @@ let
let
customPkgs = stdexp.replaceMpi conf.mpi;
in
customPkgs.apps.saiph.override {
inherit devMode numComm mpi gitBranch;
};
customPkgs.apps.saiph.override {
inherit devMode numComm mpi gitBranch;
};
pipeline = stdexp.stdStages ++ [ exec program ];
pipeline = stdexp.stdPipeline ++ [ exec program ];
in