2020-10-09 15:55:37 +02:00
|
|
|
{
|
|
|
|
stdenv
|
|
|
|
, stdexp
|
2020-10-09 16:32:28 +02:00
|
|
|
, bsc
|
2020-10-09 15:55:37 +02:00
|
|
|
, targetMachine
|
|
|
|
, stages
|
2021-03-24 10:12:05 +01:00
|
|
|
, garlicTools
|
2021-04-20 16:14:44 +02:00
|
|
|
, callPackage
|
2020-10-09 15:55:37 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2021-03-24 10:12:05 +01:00
|
|
|
with garlicTools;
|
2020-10-09 15:55:37 +02:00
|
|
|
|
|
|
|
let
|
2020-10-09 19:33:06 +02:00
|
|
|
# Initial variable configuration
|
2021-04-20 16:14:44 +02:00
|
|
|
varConf = {
|
|
|
|
blocksize = range2 64 2048;
|
2021-03-24 10:12:05 +01:00
|
|
|
gitBranch = [
|
2021-04-20 16:14:44 +02:00
|
|
|
# "garlic/mpi+send+oss+task"
|
|
|
|
# "garlic/tampi+send+oss+task"
|
2021-03-24 10:12:05 +01:00
|
|
|
"garlic/tampi+isend+oss+task"
|
|
|
|
];
|
2020-10-09 15:55:37 +02:00
|
|
|
};
|
|
|
|
|
2020-10-09 19:33:06 +02:00
|
|
|
# Generate the complete configuration for each unit
|
2021-03-24 10:12:05 +01:00
|
|
|
genConf = c: targetMachine.config // rec {
|
|
|
|
hw = targetMachine.config.hw;
|
2021-04-20 16:14:44 +02:00
|
|
|
particles = 8 * 1024 * hw.cpusPerSocket;
|
2020-10-09 15:55:37 +02:00
|
|
|
timesteps = 10;
|
2021-03-24 10:12:05 +01:00
|
|
|
blocksize = c.blocksize;
|
|
|
|
gitBranch = c.gitBranch;
|
2020-10-09 15:55:37 +02:00
|
|
|
|
2021-03-24 10:12:05 +01:00
|
|
|
expName = "nbody-granularity";
|
2021-04-20 16:14:44 +02:00
|
|
|
unitName = expName +
|
|
|
|
"-${toString gitBranch}" +
|
|
|
|
"-bs${toString blocksize}";
|
2020-10-09 15:55:37 +02:00
|
|
|
|
2021-04-20 16:14:44 +02:00
|
|
|
loops = 10;
|
2020-10-26 19:43:02 +01:00
|
|
|
|
2021-04-20 16:14:44 +02:00
|
|
|
qos = "debug";
|
2021-03-24 10:12:05 +01:00
|
|
|
cpusPerTask = hw.cpusPerSocket;
|
2021-04-20 16:14:44 +02:00
|
|
|
ntasksPerNode = hw.socketsPerNode;
|
|
|
|
nodes = 1;
|
|
|
|
time = "02:00:00";
|
2021-03-24 10:12:05 +01:00
|
|
|
jobName = unitName;
|
2020-10-09 15:55:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-04-20 16:14:44 +02:00
|
|
|
common = callPackage ./common.nix {};
|
2020-10-09 15:55:37 +02:00
|
|
|
|
2021-04-20 16:14:44 +02:00
|
|
|
inherit (common) getConfigs pipeline;
|
2020-10-09 15:55:37 +02:00
|
|
|
|
2021-04-20 16:14:44 +02:00
|
|
|
configs = getConfigs {
|
|
|
|
inherit varConf genConf;
|
|
|
|
};
|
2020-10-09 15:55:37 +02:00
|
|
|
|
|
|
|
in
|
2020-10-28 15:35:09 +01:00
|
|
|
|
2020-10-09 17:19:00 +02:00
|
|
|
stdexp.genExperiment { inherit configs pipeline; }
|