-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-test.sh
26 lines (17 loc) · 856 Bytes
/
run-test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -x
srun hostname
srun --nodes=2 --tasks-per-node=2 hostname
srun --tasks-per-node=2 hostname
srun --nodes=2 hostname
srun --ntasks=4 hostname
srun --ntasks=4 --tasks-per-node=3 hostname
srun --ntasks=4 --tasks-per-node=2 hostname
srun --ntasks=4 --nodes=2 hostname
srun --gres=gpu hostname
srun --gres=gpu sh -c "env | grep SLURM_JOB_PARTITION; hostname"
srun --gres=gpu --partition=p1080_4 sh -c "env | grep SLURM_JOB_PARTITION; hostname"
srun --gres=gpu --partition=p1080_4,... sh -c "env | grep SLURM_JOB_PARTITION; hostname"
srun --gres=gpu:2 --cpus-per-task=4 sh -c "env | grep SLURM_JOB_PARTITION; hostname"
srun --gres=gpu:2 --partition=k80_4,... --cpus-per-task=4 sh -c "env | grep SLURM_JOB_PARTITION; hostname"
srun --gres=gpu:2 --partition=k80_8,... --cpus-per-task=4 sh -c "env | grep SLURM_JOB_PARTITION; hostname"