saiph: including reservation option

This commit is contained in:
Sandra 2020-09-30 18:34:14 +02:00
parent 6a2d865225
commit 78b96c1bc6

View File

@ -44,14 +44,23 @@ let
w = runWrappers; w = runWrappers;
sbatch = {stage, conf, ...}: with conf; w.sbatch { sbatch = {stage, conf, ...}: with conf; w.sbatch (
program = stageProgram stage; # Allow a user to define a custom reservation for the job in MareNostrum4,
exclusive = true; # by setting the garlic.sbatch.reservation attribute in the
time = "02:00:00"; # ~/.config/nixpkgs/config.nix file. If the attribute is not set, no
qos = "debug"; # reservation is used. The user reservation may be overwritten by the
jobName = "saiph"; # experiment, if the reservation is set like with nodes or ntasksPerNode.
inherit nixPrefix nodes ntasksPerNode; optionalAttrs (pkgs.config ? garlic.sbatch.reservation) {
}; inherit (pkgs.config.garlic.sbatch) reservation;
} // {
program = stageProgram stage;
exclusive = true;
time = "02:00:00";
qos = "debug";
jobName = "saiph";
inherit nixPrefix nodes ntasksPerNode;
}
);
control = {stage, conf, ...}: with conf; w.control { control = {stage, conf, ...}: with conf; w.control {
program = stageProgram stage; program = stageProgram stage;