Configure the nanos6 environment and get the right hardware attributes
This commit is contained in:
parent
2e18761b48
commit
203dc9f295
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user