nbody: Allow custom reservation
This commit is contained in:
parent
69b1dcf08a
commit
ec21ba98b5
@ -52,14 +52,23 @@ let
|
|||||||
|
|
||||||
w = runWrappers;
|
w = runWrappers;
|
||||||
|
|
||||||
sbatch = {stage, conf, ...}: with conf; w.sbatch {
|
sbatch = {stage, conf, ...}: with conf; w.sbatch (
|
||||||
|
# Allow a user to define a custom reservation for the job in MareNostrum4,
|
||||||
|
# by setting the garlic.sbatch.reservation attribute in the
|
||||||
|
# ~/.config/nixpkgs/config.nix file. If the attribute is not set, no
|
||||||
|
# reservation is used. The user reservation may be overwritten by the
|
||||||
|
# experiment, if the reservation is set like with nodes or ntasksPerNode.
|
||||||
|
optionalAttrs (pkgs.config ? garlic.sbatch.reservation) {
|
||||||
|
inherit (pkgs.config.garlic.sbatch) reservation;
|
||||||
|
} // {
|
||||||
program = stageProgram stage;
|
program = stageProgram stage;
|
||||||
exclusive = true;
|
exclusive = true;
|
||||||
time = "02:00:00";
|
time = "02:00:00";
|
||||||
qos = "debug";
|
qos = "debug";
|
||||||
jobName = "nbody-bs";
|
jobName = "nbody-tampi";
|
||||||
inherit nixPrefix nodes ntasksPerNode;
|
inherit nixPrefix nodes ntasksPerNode;
|
||||||
};
|
}
|
||||||
|
);
|
||||||
|
|
||||||
control = {stage, conf, ...}: with conf; w.control {
|
control = {stage, conf, ...}: with conf; w.control {
|
||||||
program = stageProgram stage;
|
program = stageProgram stage;
|
||||||
|
Loading…
Reference in New Issue
Block a user