2021-04-07 12:35:44 +02:00
|
|
|
# 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
|
2022-09-01 16:27:29 +02:00
|
|
|
, lib
|
2021-03-26 17:34:34 +01:00
|
|
|
, stdexp
|
|
|
|
, bsc
|
|
|
|
, targetMachine
|
|
|
|
, stages
|
2021-04-12 12:51:10 +02:00
|
|
|
, garlicTools
|
2021-04-12 14:41:26 +02:00
|
|
|
, callPackage
|
2021-04-12 12:51:10 +02:00
|
|
|
, enableExtended ? false
|
2021-03-26 17:34:34 +01:00
|
|
|
}:
|
|
|
|
|
2022-09-01 16:27:29 +02:00
|
|
|
with lib;
|
2021-04-12 12:51:10 +02:00
|
|
|
with garlicTools;
|
2021-03-26 17:34:34 +01:00
|
|
|
|
|
|
|
let
|
2021-04-12 15:37:39 +02:00
|
|
|
common = callPackage ./common.nix {};
|
|
|
|
inherit (common) getConfigs getResources pipeline;
|
2021-03-26 17:34:34 +01:00
|
|
|
|
2021-04-12 14:41:26 +02:00
|
|
|
inherit (targetMachine) fs;
|
2021-04-12 12:51:10 +02:00
|
|
|
|
2021-03-26 17:34:34 +01:00
|
|
|
# Initial variable configuration
|
|
|
|
varConf = {
|
|
|
|
gitBranch = [
|
2021-04-12 12:51:10 +02:00
|
|
|
"garlic/tampi+isend+oss+task"
|
2021-04-12 14:41:26 +02:00
|
|
|
] ++ optionals (enableExtended) [
|
2021-04-12 12:51:10 +02:00
|
|
|
"garlic/tampi+send+oss+task"
|
|
|
|
"garlic/mpi+send+omp+task"
|
|
|
|
"garlic/mpi+send+oss+task"
|
2021-04-12 14:41:26 +02:00
|
|
|
"garlic/mpi+send+omp+fork"
|
2021-04-12 15:37:39 +02:00
|
|
|
# FIXME: the mpi pure version has additional constraints with the
|
|
|
|
# number of planes in Y. By now is disabled.
|
|
|
|
#"garlic/mpi+send+seq"
|
2021-04-12 14:41:26 +02:00
|
|
|
];
|
2021-03-26 17:34:34 +01:00
|
|
|
|
2021-04-12 12:51:10 +02:00
|
|
|
blocksize = if (enableExtended)
|
|
|
|
then range2 1 16
|
|
|
|
else [ 2 ];
|
2021-03-26 17:34:34 +01:00
|
|
|
|
2021-04-12 15:37:39 +02:00
|
|
|
n = [ { nx=100; ny=8000; nz=100; } ];
|
2021-03-26 17:34:34 +01:00
|
|
|
|
2021-04-12 12:51:10 +02:00
|
|
|
nodes = range2 1 16;
|
2021-03-26 17:34:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
machineConfig = targetMachine.config;
|
|
|
|
|
|
|
|
# Generate the complete configuration for each unit
|
2021-04-12 14:41:26 +02:00
|
|
|
genConf = c: machineConfig // rec {
|
2021-04-12 12:51:10 +02:00
|
|
|
expName = "fwi-ss";
|
|
|
|
unitName = "${expName}"
|
|
|
|
+ "-nodes${toString nodes}"
|
|
|
|
+ "-bs${toString blocksize}"
|
|
|
|
+ "-${toString gitBranch}";
|
2021-03-26 17:34:34 +01:00
|
|
|
|
2021-04-12 12:51:10 +02:00
|
|
|
inherit (machineConfig) hw;
|
2021-03-26 17:34:34 +01:00
|
|
|
inherit (c) gitBranch blocksize;
|
|
|
|
inherit (c.n) nx ny nz;
|
|
|
|
|
|
|
|
# Other FWI parameters
|
2021-04-12 20:09:17 +02:00
|
|
|
enableIO = true;
|
|
|
|
enableCTF = false;
|
2021-03-26 17:34:34 +01:00
|
|
|
|
|
|
|
# Repeat the execution of each unit several times
|
|
|
|
loops = 10;
|
|
|
|
|
|
|
|
# Resources
|
2021-04-12 15:37:39 +02:00
|
|
|
inherit (getResources { inherit gitBranch hw; })
|
|
|
|
cpusPerTask ntasksPerNode;
|
|
|
|
|
2021-03-26 17:34:34 +01:00
|
|
|
nodes = c.nodes;
|
|
|
|
qos = "debug";
|
|
|
|
time = "02:00:00";
|
|
|
|
jobName = unitName;
|
|
|
|
|
|
|
|
# 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-26 17:34:34 +01:00
|
|
|
};
|
|
|
|
|
2021-04-12 15:01:25 +02:00
|
|
|
configs = getConfigs {
|
|
|
|
inherit varConf genConf;
|
|
|
|
};
|
2021-03-26 17:34:34 +01:00
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdexp.genExperiment { inherit configs pipeline; }
|