Commit ee7b975d authored by Michael Krause's avatar Michael Krause 🎉
Browse files

slurm: remove gpu from example job

parent 3e0b9a58
Pipeline #7271 passed with stages
in 35 seconds
...@@ -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
++++++++++++++++ ++++++++++++++++
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment