Skip to content

Commit 54cea98

Browse files
Merge pull request #784 from AaltoSciComp/gpu-cuda-compute
Update docs to new GPU request syntax
2 parents b35bac8 + 4d49281 commit 54cea98

19 files changed

+107
-75
lines changed

triton/apps/keras.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Example
2424

2525
::
2626

27-
srun --gres=gpu:1 --pty bash
27+
srun --gpus=1 --pty bash
2828
module load scicomp-python-env
2929
python3
3030
>>> import keras

triton/examples/cntk/cntk_mnist.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ One can run this example with ``srun``::
1414

1515
wget https://raw.githubusercontent.com/AaltoSciComp/scicomp-docs/master/triton/examples/cntk/cntk_mnist.py
1616
module load nvidia-cntk
17-
srun --time=00:15:00 --gres=gpu:1 singularity_wrapper exec python cntk_mnist.py
17+
srun --time=00:15:00 --mem=4G --gpus=1 singularity_wrapper exec python cntk_mnist.py
1818

1919
or with ``sbatch`` by submitting
2020
:download:`cntk_mnist.sh</triton/examples/cntk/cntk_mnist.sh>`:

triton/examples/cntk/cntk_mnist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
2-
#SBATCH --gres=gpu:1
32
#SBATCH --time=00:15:00
3+
#SBATCH --gpus=1
44

55
module load nvidia-cntk
66

triton/examples/cntk/cntk_mnist_ex4.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
2-
#SBATCH --gres=gpu:1
32
#SBATCH --time=00:15:00
3+
#SBATCH --mem=4G
4+
#SBATCH --gpus=1
45

56
module load nvidia-cntk
67

triton/examples/detectron/detectron.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
#SBATCH --time=00:30:00
33
#SBATCH --mem=8G
4-
#SBATCH --gres=gpu:teslap100:1
4+
#SBATCH --gpus=1
55
#SBATCH -o detectron.out
66

77
module load singularity-detectron

triton/examples/detectron/detectron2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
#SBATCH --time=00:30:00
33
#SBATCH --mem=8G
4-
#SBATCH --gres=gpu:teslap100:1
4+
#SBATCH --gpus=1
55
#SBATCH -o detectron.out
66

77
module load singularity-detectron

triton/examples/openpose/openpose.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
#SBATCH --time=00:10:00
33
#SBATCH --mem=8G
4-
#SBATCH --gres=gpu:1
4+
#SBATCH --gpus=1
55

66
module load singularity-openpose/v1.5.1
77

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
2-
#SBATCH --cpus-per-task 1 # The number of CPUs your code can use, if in doubt, use 1 for CPU only code or 6 if you run on GPUs (since code running on GPUs commonly allows parallelization of data provision to the GPU)
3-
#SBATCH --mem 10G # The amount of memory you expect your code to need. Format is 10G for 10 Gigabyte, 500M for 500 Megabyte etc
2+
#SBATCH --cpus-per-task=1 # The number of CPUs your code can use, if in doubt, use 1 for CPU only code or 6 if you run on GPUs (since code running on GPUs commonly allows parallelization of data provision to the GPU)
3+
#SBATCH --mem=10G # The amount of memory you expect your code to need. Format is 10G for 10 Gigabyte, 500M for 500 Megabyte etc
44
#SBATCH --time=01:00:00 # Time in HH:MM:SS or DD-HH of your job. the maximum is 120 hours or 5 days.
5-
#SBATCH --gres=gpu:1 # Additional specific ressources can be requested via gres. Mainly used for requesting GPUs format is: gres=RessourceType:Number
5+
#SBATCH --gpus=1 # Request a GPU
6+
67
module load python-scicomp-env # or `module load mamba` if you use your own environment.
78
source activate yourEnvironment # if you use your own environment
89
python yourScriptName.py ARG

triton/examples/pytorch/pytorch_mnist.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ One can run this example with ``srun``:
1616
1717
$ wget https://raw.githubusercontent.com/AaltoSciComp/scicomp-docs/master/triton/examples/pytorch/pytorch_mnist.py
1818
$ module load scicomp-python-env
19-
$ srun --time=00:15:00 --gres=gpu:1 python pytorch_mnist.py
19+
$ srun --time=00:15:00 --mem=4G --gpus=1 python pytorch_mnist.py
2020
2121
or with ``sbatch`` by submitting
2222
:download:`pytorch_mnist.sh</triton/examples/pytorch/pytorch_mnist.sh>`:

triton/examples/pytorch/pytorch_mnist.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
2-
#SBATCH --gres=gpu:1
32
#SBATCH --time=00:15:00
3+
#SBATCH --mem=4G
4+
#SBATCH --gpus=1
45

56
module load scicomp-python-env
67

0 commit comments

Comments
 (0)