heat: update test experiment

This commit is contained in:
Rodrigo Arias 2021-03-05 16:18:51 +01:00
parent 7e10a43b40
commit 363700eb9a

View File

@ -4,14 +4,17 @@
, bsc , bsc
, targetMachine , targetMachine
, stages , stages
, garlicTools
}: }:
with stdenv.lib; with stdenv.lib;
with garlicTools;
let let
# Initial variable configuration # Initial variable configuration
varConf = with bsc; { varConf = with bsc; {
bsx = [ 1024 2048 4096 ]; cbs = range2 8 4096;
rbs = range2 32 4096;
}; };
machineConfig = targetMachine.config; machineConfig = targetMachine.config;
@ -19,12 +22,19 @@ let
# Generate the complete configuration for each unit # Generate the complete configuration for each unit
genConf = with bsc; c: targetMachine.config // rec { genConf = with bsc; c: targetMachine.config // rec {
expName = "heat"; expName = "heat";
unitName = "${expName}.bsx-${toString bsx}"; unitName = expName +
".cbs-${toString cbs}" +
".rbs-${toString rbs}";
inherit (machineConfig) hw; inherit (machineConfig) hw;
# heat options # heat options
inherit (c) bsx;
timesteps = 10; timesteps = 10;
cols = 1024 * 16; # Columns
rows = 1024 * 16; # Rows
cbs = c.cbs;
rbs = c.rbs;
gitBranch = "garlic/tampi+isend+oss+task";
# Repeat the execution of each unit 30 times # Repeat the execution of each unit 30 times
loops = 10; loops = 10;
@ -44,20 +54,25 @@ let
inherit varConf genConf; inherit varConf genConf;
}; };
exec = {nextStage, conf, ...}: with conf; stages.exec { exec = {nextStage, conf, ...}: stages.exec {
inherit nextStage; inherit nextStage;
argv = [ "-s" 1024 "-t" timesteps ]; argv = [
"--rows" conf.rows
"--cols" conf.cols
"--rbs" conf.rbs
"--cbs" conf.cbs
"--timesteps" conf.timesteps
];
# The next stage is the program
env = '' env = ''
export LD_DEBUG=libs ln -sf ${nextStage}/etc/heat.conf heat.conf || true
export NANOS6_LOADER_VERBOSE=1
cp ${nextStage}/etc/heat.conf .
''; '';
}; };
program = {nextStage, conf, ...}: with conf; program = {nextStage, conf, ...}: bsc.garlic.apps.heat.override {
bsc.garlic.apps.heat.override { inherit (conf) gitBranch;
inherit bsx; };
};
pipeline = stdexp.stdPipeline ++ [ exec program ]; pipeline = stdexp.stdPipeline ++ [ exec program ];