Configure the nanos6 environment and get the right hardware attributes

This commit is contained in:
Pedro Martinez 2020-12-15 19:34:49 +01:00
parent 2e18761b48
commit 203dc9f295
2 changed files with 20 additions and 2 deletions

View File

@ -45,6 +45,7 @@ let
# Resources
qos = "debug";
ntasksPerNode = hw.socketsPerNode;
cpusPerTask = hw.cpusPerSocket;
inherit (c.input) time nodes;
jobName = unitName;
};
@ -54,6 +55,14 @@ let
inherit varConf genConf;
};
# Use nanos6 with regions
nanos6Env = {nextStage, conf, ...}: with conf; stages.exec {
inherit nextStage;
env = ''
export NANOS6_CONFIG_OVERRIDE="version.dependencies=regions"
'';
};
# Custom stage to copy the creams input dataset
copyInput = {nextStage, conf, ...}:
let
@ -78,7 +87,7 @@ let
inherit cc mpi gitBranch;
};
pipeline = stdexp.stdPipeline ++ [ copyInput creams ];
pipeline = stdexp.stdPipeline ++ [ nanos6Env copyInput creams ];
in

View File

@ -38,6 +38,7 @@ let
# Resources
qos = "debug";
ntasksPerNode = hw.cpusPerNode;
cpusPerTask = 1;
inherit (c.input) time nodes;
jobName = unitName;
};
@ -47,6 +48,14 @@ let
inherit varConf genConf;
};
# Use nanos6 with regions
nanos6Env = {nextStage, conf, ...}: with conf; stages.exec {
inherit nextStage;
env = ''
export NANOS6_CONFIG_OVERRIDE="version.dependencies=regions"
'';
};
# Custom stage to copy the creams input dataset
copyInput = {nextStage, conf, ...}:
let
@ -71,7 +80,7 @@ let
inherit cc mpi gitBranch;
};
pipeline = stdexp.stdPipeline ++ [ copyInput creams ];
pipeline = stdexp.stdPipeline ++ [ nanos6Env copyInput creams ];
in