@@ -18,8 +18,8 @@ title: "Slurm"
|
||||
提交一个 VASP(CPU)任务的例子:
|
||||
|
||||
```bash
|
||||
sbatch --partition=localhost --nodes=1-1 --ntasks=2 --cpus-per-task=4 --hint=nomultithread --job-name="my great job" --output=output.txt --export=ALL,OMP_STACKSIZE=512m --mem=28G vasp-intel srun vasp-std
|
||||
sbatch -p localhost -N 1-1 -n 2 -c 4 -J "my great job" -o output.txt vasp-intel srun vasp-std
|
||||
sbatch --partition=localhost --nodes=1-1 --ntasks=2 --cpus-per-task=4 --hint=nomultithread --job-name="my great job" --output=output.txt --export=ALL,OMP_STACKSIZE=512m --mem=28G --wrap="vasp-intel srun vasp-std"
|
||||
sbatch -p localhost -N 1-1 -n 2 -c 4 -J "my great job" -o output.txt --wrap="vasp-intel srun vasp-std"
|
||||
```
|
||||
|
||||
* `--partition` 或 `-p` 指定使用哪个队列,不写则使用默认队列。
|
||||
@@ -41,14 +41,14 @@ sbatch -p localhost -N 1-1 -n 2 -c 4 -J "my great job" -o output.txt vasp-intel
|
||||
vasp 脚本中已经设置了一些必需的参数,通常情况下不需要再手动指定。
|
||||
* `--mem=28G` 指定只使用内存大于等于 28 G 的节点,不设置则没有这个限制。
|
||||
由于 Slurm 看到的内存大小比物理内存小一些[^14](例如 32 G 内存的节点,Slurm 可能会认为它只有 31.5 G),因此指定时也需要略小一些。
|
||||
* `vasp-intel srun vasp-std` 指调用 std 版本的 VASP[^7]。
|
||||
* `--wrap="vasp-intel srun vasp-std"` 指调用 std 版本的 VASP[^7]。
|
||||
要使用 gam 或 ncl 版本,将最后的 `vasp-std` 改为 `vasp-gam` 或 `vasp-ncl`。
|
||||
|
||||
以下是一个提交 VASP(GPU)任务的例子:
|
||||
|
||||
```bash
|
||||
sbatch --partition=localhost --ntasks=1 --cpus-per-task=1 --gpus=4060:1 --job-name="my great job" --output=output.txt vasp-nvidia srun vasp-std
|
||||
sbatch -p localhost -n 1 -c 1 -G 4060:1 -J "my great job" -o output.txt vasp-nvidia srun vasp-std
|
||||
sbatch --partition=localhost --ntasks=1 --cpus-per-task=1 --gpus=4060:1 --job-name="my great job" --output=output.txt --wrap="vasp-nvidia srun vasp-std"
|
||||
sbatch -p localhost -n 1 -c 1 -G 4060:1 -J "my great job" -o output.txt --wrap="vasp-nvidia srun vasp-std"
|
||||
```
|
||||
|
||||
* `--gpus` 或 `-G` 指定使用哪个 GPU:
|
||||
|
||||
Reference in New Issue
Block a user