Rodrigo Arias Mallo
b4e37a15a9
- The file gen.nix now provides an experiment for each unit, to reduce the evaluation time. - The pipeline is specified in the common.nix file only. - The input dataset path is no longer symlinked, but is specified in the "--load" argument. - The size is renamed to "sizePerTask" instead of "n".
69 lines
1.4 KiB
Nix
69 lines
1.4 KiB
Nix
{
|
|
stdenv
|
|
, stdexp
|
|
, bsc
|
|
, targetMachine
|
|
, stages
|
|
, garlicTools
|
|
, callPackage
|
|
, enableExtended ? false
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
with garlicTools;
|
|
|
|
let
|
|
common = callPackage ./common.nix { };
|
|
|
|
inherit (common) pipeline getSizePerTask;
|
|
|
|
# Initial variable configuration
|
|
varConf = {
|
|
nodes = range2 1 16;
|
|
blocksPerCpu = if (enableExtended)
|
|
then range2 1 8
|
|
else [ 4 ];
|
|
gitBranch = [
|
|
"garlic/tampi+isend+oss+task"
|
|
];
|
|
};
|
|
|
|
# Generate the complete configuration for each unit
|
|
genConf = c: targetMachine.config // rec {
|
|
expName = "hpcg-ss";
|
|
unitName = "${expName}"
|
|
+ "-nodes${toString nodes}"
|
|
+ "-bpc${toString blocksPerCpu}";
|
|
|
|
inherit (targetMachine.config) hw;
|
|
|
|
# hpcg options
|
|
inherit (c) nodes blocksPerCpu gitBranch;
|
|
totalTasks = ntasksPerNode * nodes;
|
|
sizePerCpu = { x=2; y=2; z=128 / totalTasks; };
|
|
sizePerTask = getSizePerTask cpusPerTask sizePerCpu;
|
|
nprocs = { x=1; y=1; z=totalTasks; };
|
|
nblocks = blocksPerCpu * cpusPerTask;
|
|
ncomms = 1;
|
|
disableAspectRatio = true;
|
|
|
|
# Repeat the execution of each unit several times
|
|
loops = 10;
|
|
|
|
# Resources
|
|
qos = "debug";
|
|
time = "02:00:00";
|
|
cpusPerTask = hw.cpusPerSocket;
|
|
ntasksPerNode = hw.socketsPerNode;
|
|
jobName = unitName;
|
|
};
|
|
|
|
# Compute the array of configurations
|
|
configs = stdexp.buildConfigs {
|
|
inherit varConf genConf;
|
|
};
|
|
|
|
in
|
|
|
|
stdexp.genExperiment { inherit configs pipeline; }
|