bscpkgs/garlic/exp/fwi/io.nix

75 lines
1.8 KiB
Nix
Raw Normal View History

# Test 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 runs
# without I/O for comparison purposes. Also, a range of block sizes
# deemed as efficient according to the granularity experiment are
# explored.
2020-10-30 22:58:03 +08:00
{
stdenv
, stdexp
, bsc
, targetMachine
, stages
, callPackage
, enableExtended ? false
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" ];
blocksize = [ 1 2 4 8 ];
n = [ {nx=500; nz=500; ny=16000;} ];
nodes = if (enableExtended) then range2 1 16 else [ 4 ];
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-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; }