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
|
# Resources
|
||||||
qos = "debug";
|
qos = "debug";
|
||||||
ntasksPerNode = hw.socketsPerNode;
|
ntasksPerNode = hw.socketsPerNode;
|
||||||
|
cpusPerTask = hw.cpusPerSocket;
|
||||||
inherit (c.input) time nodes;
|
inherit (c.input) time nodes;
|
||||||
jobName = unitName;
|
jobName = unitName;
|
||||||
};
|
};
|
||||||
@ -54,6 +55,14 @@ let
|
|||||||
inherit varConf genConf;
|
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
|
# Custom stage to copy the creams input dataset
|
||||||
copyInput = {nextStage, conf, ...}:
|
copyInput = {nextStage, conf, ...}:
|
||||||
let
|
let
|
||||||
@ -78,7 +87,7 @@ let
|
|||||||
inherit cc mpi gitBranch;
|
inherit cc mpi gitBranch;
|
||||||
};
|
};
|
||||||
|
|
||||||
pipeline = stdexp.stdPipeline ++ [ copyInput creams ];
|
pipeline = stdexp.stdPipeline ++ [ nanos6Env copyInput creams ];
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
@ -38,6 +38,7 @@ let
|
|||||||
# Resources
|
# Resources
|
||||||
qos = "debug";
|
qos = "debug";
|
||||||
ntasksPerNode = hw.cpusPerNode;
|
ntasksPerNode = hw.cpusPerNode;
|
||||||
|
cpusPerTask = 1;
|
||||||
inherit (c.input) time nodes;
|
inherit (c.input) time nodes;
|
||||||
jobName = unitName;
|
jobName = unitName;
|
||||||
};
|
};
|
||||||
@ -47,6 +48,14 @@ let
|
|||||||
inherit varConf genConf;
|
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
|
# Custom stage to copy the creams input dataset
|
||||||
copyInput = {nextStage, conf, ...}:
|
copyInput = {nextStage, conf, ...}:
|
||||||
let
|
let
|
||||||
@ -71,7 +80,7 @@ let
|
|||||||
inherit cc mpi gitBranch;
|
inherit cc mpi gitBranch;
|
||||||
};
|
};
|
||||||
|
|
||||||
pipeline = stdexp.stdPipeline ++ [ copyInput creams ];
|
pipeline = stdexp.stdPipeline ++ [ nanos6Env copyInput creams ];
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user