Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
habrok:job_management:running_jobs [2023/03/22 13:06] – [Submitting jobs] fokke | habrok:job_management:running_jobs [2023/03/23 15:57] (current) – [Job environment] admin | ||
---|---|---|---|
Line 15: | Line 15: | ||
sbatch --partition=gpu jobscript | sbatch --partition=gpu jobscript | ||
</ | </ | ||
- | Note that if you have options defined in your job script and as sbatch command-line arguments, the latter ones will override the values in the job script. So the last example will always send the job to the “short” partition, regardless of what you may have defined in the job script itself. For more detailed (and complete) examples, please look at the [[..: | + | Note that if you have options defined in your job script and as sbatch command-line arguments, the latter ones will override the values in the job script. So the last example will always send the job to the “gpu” partition, regardless of what you may have defined in the job script itself. For more detailed (and complete) examples, please look at the [[..: |
===== Job environment ===== | ===== Job environment ===== | ||
- | Jobs will always start in the same directory as from which they were submitted. | + | Jobs will always start in the same directory as from which they were submitted. |
+ | If you do really want to change the latter behavior (which we really do not recommend, as it breaks the reproducibility of your scripts), you can add the following to your job script: | ||
< | < | ||
- | #SBATCH --export=var1, | + | #SBATCH --export=ALL |
</ | </ | ||
- | It takes a list of names of environment variables that should be transferred to the job. Special values that can be given are ALL (default) and NONE. By using the latter, the job will start with a clean/empty environment. | ||