File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ with every _SBATCH_VAR_ replaced by _SLURM_VAR_.
174174| CI_** SLURM_CI_SLURM_NICE** | [--nice](https://slurm.schedmd.com/sbatch.html#OPT_nice) | ✅ | | |
175175| CI_** SLURM_MEM_PER_CPU** | [--mem-per-cpu](https://slurm.schedmd.com/sbatch.html#OPT_mem-per-cpu) | ✅ | | |
176176| CI_** SLURM_COMMENT** | [--comment](https://slurm.schedmd.com/sbatch.html#OPT_comment) | ✅ | | ` Automatic job created from GitLab CI` |
177+ | CI_** SLURM_ACCOUNT** | [-A / --account](https://slurm.schedmd.com/sbatch.html#OPT_account) | ✅ | | |
178+ | CI_** SLURM_QOS** | [--qos](https://slurm.schedmd.com/sbatch.html#OPT_qos) | ✅ | | |
177179| CI_** SLURM_GPUS** | [-G / --gpus](https://slurm.schedmd.com/sbatch.html#OPT_gpus) | ⌛ | | |
178180| CI_** SLURM_GPUS_PER_NODE** | [--gpus-per-node](https://slurm.schedmd.com/sbatch.html#OPT_gpus-per-node) | ⌛ | | |
179181| CI_** SLURM_GPUS_PER_TASK** | [--gpus-per-task](https://slurm.schedmd.com/sbatch.html#OPT_gpus-per-task) | ⌛ | | |
Original file line number Diff line number Diff line change @@ -248,6 +248,8 @@ def prepare():
248248 nice = GitLabJobInterface .get_env ("CI_SLURM_NICE" ),
249249 comment = GitLabJobInterface .get_env ("CI_SLURM_COMMENT" , "Automatic job created from GitLab CI" ),
250250 chdir = GitLabJobInterface .get_build_dir_path (),
251+ account = GitLabJobInterface .get_env ("CI_SLURM_ACCOUNT" ),
252+ qos = GitLabJobInterface .get_env ("CI_SLURM_QOS" ),
251253 export = "ALL" ,
252254 stdout_file = "stdout.log" ,
253255 stderr_file = "stderr.log"
Original file line number Diff line number Diff line change @@ -146,6 +146,8 @@ def __init__(
146146 export : str = None ,
147147 stdout_file : str = None ,
148148 stderr_file : str = None ,
149+ account : str = None ,
150+ qos : str = None ,
149151 ):
150152 self .job_name = job_name
151153 self .nodes = nodes
@@ -168,6 +170,8 @@ def __init__(
168170 self .export = export
169171 self .stdout_file = stdout_file
170172 self .stderr_file = stderr_file
173+ self .account = account
174+ self .qos = qos
171175
172176 def get_cli_parameters (self ) -> List [str ]:
173177 parameters = [
@@ -192,6 +196,8 @@ def get_cli_parameters(self) -> List[str]:
192196 f"--export={ self .export } " if self .export is not None else None ,
193197 f"--output={ self .stdout_file } " if self .stdout_file is not None else None ,
194198 f"--error={ self .stderr_file } " if self .stderr_file is not None else None ,
199+ f"--account={ self .account } " if self .account is not None else None ,
200+ f"--qos={ self .qos } " if self .qos is not None else None ,
195201 ]
196202 return [x for x in parameters if x is not None ]
197203
You can’t perform that action at this time.
0 commit comments