2021-04-16 11:51:34 +02:00
|
|
|
{
|
|
|
|
stdenv
|
|
|
|
, stdexp
|
|
|
|
, bsc
|
|
|
|
, targetMachine
|
|
|
|
, stages
|
|
|
|
, garlicTools
|
|
|
|
, callPackage
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
with garlicTools;
|
|
|
|
|
|
|
|
let
|
|
|
|
common = callPackage ./common.nix { };
|
|
|
|
|
|
|
|
inherit (common) pipeline getSizePerTask;
|
|
|
|
|
|
|
|
# Initial variable configuration
|
|
|
|
varConf = {
|
2021-04-19 15:57:31 +02:00
|
|
|
sizeFactor = [ 1 2 4 8 16 32 ];
|
2021-04-16 11:51:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# Generate the complete configuration for each unit
|
|
|
|
genConf = c: targetMachine.config // rec {
|
2021-04-19 15:57:31 +02:00
|
|
|
expName = "hpcg-size";
|
2021-04-16 11:51:34 +02:00
|
|
|
unitName = "${expName}"
|
|
|
|
+ "-nodes${toString nodes}"
|
2021-04-19 15:57:31 +02:00
|
|
|
+ "-sf${toString sizeFactor}";
|
2021-04-16 11:51:34 +02:00
|
|
|
|
|
|
|
inherit (targetMachine.config) hw;
|
|
|
|
|
|
|
|
# hpcg options
|
2021-04-19 15:57:31 +02:00
|
|
|
inherit (c) sizeFactor;
|
|
|
|
gitBranch = "garlic/tampi+isend+oss+task";
|
|
|
|
nodes = 16;
|
2021-04-16 11:51:34 +02:00
|
|
|
totalTasks = ntasksPerNode * nodes;
|
2021-04-19 15:57:31 +02:00
|
|
|
sizePerCpu = { x = 2; y = 2; z = 4 * sizeFactor; };
|
2021-04-16 11:51:34 +02:00
|
|
|
sizePerTask = getSizePerTask cpusPerTask sizePerCpu;
|
|
|
|
nprocs = { x=1; y=1; z=totalTasks; };
|
2021-04-19 15:57:31 +02:00
|
|
|
blocksPerCpu = 4;
|
2021-04-16 11:51:34 +02:00
|
|
|
nblocks = blocksPerCpu * cpusPerTask;
|
|
|
|
ncomms = 1;
|
|
|
|
disableAspectRatio = true;
|
|
|
|
|
|
|
|
# Repeat the execution of each unit several times
|
2021-04-19 15:57:31 +02:00
|
|
|
loops = 5;
|
2021-04-16 11:51:34 +02:00
|
|
|
|
|
|
|
# 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; }
|