From 6818b29d02f4d322ad0374e964a61d43122f9f84 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 4 Mar 2021 12:45:29 +0100 Subject: [PATCH] creams: fix outdated nanos6.toml This temporal fix allows the experiment to ignore the nanos6.toml in the git repository, and only set version.dependencies variable. --- garlic/exp/creams/gran+node16.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/garlic/exp/creams/gran+node16.nix b/garlic/exp/creams/gran+node16.nix index f295c4b..7322175 100644 --- a/garlic/exp/creams/gran+node16.nix +++ b/garlic/exp/creams/gran+node16.nix @@ -79,9 +79,22 @@ let preSrun = '' cp -r ${input}/SodTubeBenchmark/* . chmod +w -R . + rm -f nanos6.toml ''; }; + exec = {nextStage, conf, ...}: with conf; stages.exec { + inherit nextStage; + env = '' + export NANOS6_CONFIG_OVERRIDE="version.dependencies=regions" + ''; + + # Remove restarts as is not needed and is huge + post = '' + rm -rf restarts || true + ''; + }; + # Creams program creams = {nextStage, conf, ...}: with conf; let @@ -96,7 +109,7 @@ let # Replace the stdandard srun stage with our own srun = customSrun; }; - } ++ [ creams ]; + } ++ [ exec creams ]; in