bscpkgs/garlic/exp/fwi/ss-io.nix

77 lines
1.8 KiB
Nix
Raw Normal View History

# 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.
2020-10-30 22:58:03 +08:00
{
stdenv
, stdexp
, bsc
, targetMachine
, stages
, callPackage
2020-10-30 22:58:03 +08:00
}:
with stdenv.lib;
let
common = callPackage ./common.nix {};
inherit (common) getConfigs getResources pipeline;
inherit (targetMachine) fs;
2020-10-30 22:58:03 +08:00
# Initial variable configuration
varConf = {
gitBranch = [
"garlic/tampi+send+oss+task"
];
2021-03-05 01:41:24 +08:00
blocksize = [ 1 2 4 8 ];
n = [ {nx=500; nz=500; ny=16000;} ];
nodes = [ 1 2 4 8 16 ];
ioFreq = [ 9999 (-1) ];
2020-10-30 22:58:03 +08:00
};
machineConfig = targetMachine.config;
2020-10-30 22:58:03 +08:00
# 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;
2020-10-30 22:58:03 +08:00
# Resources
inherit (getResources { inherit gitBranch hw; })
cpusPerTask ntasksPerNode;
qos = "debug";
2020-10-30 22:58:03 +08:00
time = "02:00:00";
jobName = unitName;
enableCTF = false;
# Enable permissions to write in the local storage
extraMounts = [ fs.local.temp ];
tempDir = fs.local.temp;
2020-10-30 22:58:03 +08:00
};
configs = getConfigs {
2020-10-30 22:58:03 +08:00
inherit varConf genConf;
};
in
stdexp.genExperiment { inherit configs pipeline; }