bscpkgs/garlic/exp/fwi/ss.nix

93 lines
1.8 KiB
Nix
Raw Normal View History

# Strong scaling test for FWI variants based on tasks. This
# experiment explores a range of block sizes deemed as efficient
# according to the granularity experiment.
2021-03-26 17:34:34 +01:00
{
stdenv
, stdexp
, bsc
, targetMachine
, stages
, garlicTools
, callPackage
, enableExtended ? false
2021-03-26 17:34:34 +01:00
}:
with stdenv.lib;
with garlicTools;
2021-03-26 17:34:34 +01:00
let
inherit (targetMachine) fs;
2021-03-26 17:34:34 +01:00
# Initial variable configuration
varConf = {
gitBranch = [
"garlic/tampi+isend+oss+task"
] ++ optionals (enableExtended) [
"garlic/tampi+send+oss+task"
"garlic/mpi+send+omp+task"
"garlic/mpi+send+oss+task"
"garlic/mpi+send+omp+fork"
];
2021-03-26 17:34:34 +01:00
blocksize = if (enableExtended)
then range2 1 16
else [ 2 ];
2021-03-26 17:34:34 +01:00
n = [ {nx=100; nz=100; ny=8000;} ];
2021-03-26 17:34:34 +01:00
nodes = range2 1 16;
2021-03-26 17:34:34 +01:00
};
machineConfig = targetMachine.config;
# Generate the complete configuration for each unit
genConf = c: machineConfig // rec {
expName = "fwi-ss";
unitName = "${expName}"
+ "-nodes${toString nodes}"
+ "-bs${toString blocksize}"
+ "-${toString gitBranch}";
2021-03-26 17:34:34 +01:00
inherit (machineConfig) hw;
2021-03-26 17:34:34 +01:00
inherit (c) gitBranch blocksize;
inherit (c.n) nx ny nz;
fwiInput = bsc.apps.fwi.input.override {
inherit (c.n) nx ny nz;
};
# Other FWI parameters
ioFreq = -1;
# Repeat the execution of each unit several times
loops = 10;
# Resources
cpusPerTask = hw.cpusPerSocket;
ntasksPerNode = hw.socketsPerNode;
2021-03-26 17:34:34 +01:00
nodes = c.nodes;
qos = "debug";
time = "02:00:00";
jobName = unitName;
enableCTF = false;
2021-03-26 17:34:34 +01:00
# Enable permissions to write in the local storage
extraMounts = [ fs.local.temp ];
tempDir = fs.local.temp;
2021-03-26 17:34:34 +01:00
};
common = callPackage ./common.nix {};
2021-03-26 17:34:34 +01:00
inherit (common) getConfigs pipeline;
configs = getConfigs {
inherit varConf genConf;
};
2021-03-26 17:34:34 +01:00
in
stdexp.genExperiment { inherit configs pipeline; }