fwi: refactor config generation into common.nix

This commit is contained in:
2021-04-12 15:01:25 +02:00
parent 9aa07993b2
commit 41665bc6fc
3 changed files with 29 additions and 35 deletions

View File

@@ -18,8 +18,6 @@ with garlicTools;
let
common = callPackage ./common.nix {};
inherit (targetMachine) fs;
# Initial variable configuration
@@ -81,17 +79,14 @@ let
tempDir = fs.local.temp;
};
# Compute the array of configurations
allConfigs = stdexp.buildConfigs {
common = callPackage ./common.nix {};
inherit (common) getConfigs pipeline;
configs = getConfigs {
inherit varConf genConf;
};
# The unique function ensures that we only run one config for the fork
# join branch, even if we have multiple blocksizes.
configs = unique (map fixBlocksize allConfigs);
inherit (common) fixBlocksize pipeline;
in
stdexp.genExperiment { inherit configs pipeline; }