2021-04-07 12:35:44 +02:00
|
|
|
# Regular granularity test for FWI
|
|
|
|
|
2021-03-24 10:24:29 +01:00
|
|
|
{
|
|
|
|
stdenv
|
|
|
|
, stdexp
|
|
|
|
, bsc
|
|
|
|
, targetMachine
|
|
|
|
, stages
|
2021-04-12 14:41:26 +02:00
|
|
|
, garlicTools
|
|
|
|
, callPackage
|
2021-03-24 10:24:29 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2021-04-12 14:41:26 +02:00
|
|
|
with garlicTools;
|
2021-03-24 10:24:29 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
inherit (targetMachine) fs;
|
|
|
|
|
|
|
|
# Initial variable configuration
|
|
|
|
varConf = {
|
2021-04-12 15:01:25 +02:00
|
|
|
gitBranch = [ "garlic/tampi+isend+oss+task" ];
|
2021-04-12 14:41:26 +02:00
|
|
|
blocksize = range2 1 256;
|
|
|
|
n = [ {nx=100; nz=100; ny=8000; ntpn=2; nodes=1;} ];
|
2021-03-24 10:24:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
machineConfig = targetMachine.config;
|
|
|
|
|
|
|
|
# Generate the complete configuration for each unit
|
2021-04-12 14:41:26 +02:00
|
|
|
genConf = c: targetMachine.config // rec {
|
|
|
|
expName = "fwi-granularity";
|
|
|
|
unitName = "${expName}"
|
|
|
|
+ "-bs${toString blocksize}"
|
|
|
|
+ "-${toString gitBranch}";
|
2021-03-24 10:24:29 +01:00
|
|
|
|
2021-04-12 14:41:26 +02:00
|
|
|
inherit (machineConfig) hw;
|
2021-03-24 10:24:29 +01:00
|
|
|
inherit (c) gitBranch blocksize;
|
2021-04-12 14:41:26 +02:00
|
|
|
inherit (c.n) nx ny nz ntpn nodes;
|
2021-03-24 10:24:29 +01:00
|
|
|
|
|
|
|
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 = ntpn;
|
|
|
|
qos = "debug";
|
|
|
|
time = "02:00:00";
|
|
|
|
jobName = unitName;
|
|
|
|
|
2021-04-12 14:41:26 +02:00
|
|
|
enableCTF = false;
|
2021-03-24 10:24:29 +01:00
|
|
|
|
|
|
|
# Enable permissions to write in the local storage
|
|
|
|
extraMounts = [ fs.local.temp ];
|
2021-04-12 14:41:26 +02:00
|
|
|
tempDir = fs.local.temp;
|
2021-03-24 10:24:29 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2021-04-12 14:41:26 +02:00
|
|
|
common = callPackage ./common.nix {};
|
2021-03-24 10:24:29 +01:00
|
|
|
|
2021-04-12 15:01:25 +02:00
|
|
|
inherit (common) getConfigs pipeline;
|
|
|
|
|
|
|
|
configs = getConfigs {
|
|
|
|
inherit varConf genConf;
|
|
|
|
};
|
2021-03-24 10:24:29 +01:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdexp.genExperiment { inherit configs pipeline; }
|