bscpkgs/garlic/exp/fwi/ss-io.nix
Rodrigo Arias Mallo 58dc277d3d fwi: refactor ss-io with common.nix
Also, keep the names short and consistent.
2021-04-12 17:57:46 +02:00

77 lines
1.8 KiB
Nix

# Strong scaling test for FWI variants based on tasks with and without I/O.
# This experiment solves a computationally expensive input which brings the
# storage devices to saturation when I/O is enabled. the same input us run
# without I/O for comparison purposes.. Also, the experiments are runt for a
# range of block sizes deemed as efficient according to the granularity
# experiment.
{
stdenv
, stdexp
, bsc
, targetMachine
, stages
, callPackage
}:
with stdenv.lib;
let
common = callPackage ./common.nix {};
inherit (common) getConfigs getResources pipeline;
inherit (targetMachine) fs;
# Initial variable configuration
varConf = {
gitBranch = [
"garlic/tampi+send+oss+task"
];
blocksize = [ 1 2 4 8 ];
n = [ {nx=500; nz=500; ny=16000;} ];
nodes = [ 1 2 4 8 16 ];
ioFreq = [ 9999 (-1) ];
};
machineConfig = targetMachine.config;
# Generate the complete configuration for each unit
genConf = c: targetMachine.config // rec {
expName = "fwi-ss-io";
unitName = "${expName}"
+ "-nodes${toString nodes}"
+ "-bs${toString blocksize}"
+ "-ioFreq${toString ioFreq}"
+ "-${toString gitBranch}";
inherit (machineConfig) hw;
inherit (c) gitBranch blocksize ioFreq nodes;
inherit (c.n) nx ny nz;
# Repeat the execution of each unit several times
loops = 10;
# Resources
inherit (getResources { inherit gitBranch hw; })
cpusPerTask ntasksPerNode;
qos = "debug";
time = "02:00:00";
jobName = unitName;
enableCTF = false;
# Enable permissions to write in the local storage
extraMounts = [ fs.local.temp ];
tempDir = fs.local.temp;
};
configs = getConfigs {
inherit varConf genConf;
};
in
stdexp.genExperiment { inherit configs pipeline; }