Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Krause
tardis-doc
Commits
ee7b975d
Commit
ee7b975d
authored
Sep 22, 2020
by
Michael Krause
🎉
Browse files
slurm: remove gpu from example job
parent
3e0b9a58
Pipeline
#7271
passed with stages
in 35 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
rm/slurm/jobs.rst
View file @
ee7b975d
...
@@ -38,23 +38,29 @@ Example ``job_with_resources.job``
...
@@ -38,23 +38,29 @@ Example ``job_with_resources.job``
.. code-block:: bash
.. code-block:: bash
#!/bin/bash
#!/bin/bash
#SBATCH --job-name myjob
#SBATCH --job-name myjob
#SBATCH --partition gpu
#SBATCH --time 24:0:0
#SBATCH --time 24:0:0
#SBATCH --cpus-per-task 2
#SBATCH --cpus-per-task 2
#SBATCH --mem 32GB
#SBATCH --mem 32GB
#SBATCH --gres gpu:1
#SBATCH --mail-type NONE
#SBATCH --mail-type NONE
#SBATCH --workdir .
#SBATCH --workdir .
./run_simulation.py
./run_simulation.py
This would create a job called "myjob" in the GPU partiton, that needs 24 hours
This would create a job called "myjob" in the default partiton, that needs 24
of running time, 32GB of RAM, a single GPU of any type, and 2 processors. It
hours of running time, 32GB of RAM, and 2 processors. It will not send any
will not send any e-mails and start in the current directory.
e-mails and start in the current directory.
Additionally, adding the following two lines would request a job in the **GPU** partition, requesting a single gpu of any kind.
.. code-block:: bash
...
#SBATCH --gres gpu:1
#SBATCH --partition gpu
...
Interactive Jobs
Interactive Jobs
++++++++++++++++
++++++++++++++++
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment