Skip to content

Commit ec56a31

Browse files
committed
chore: update mpirun commands
1 parent 5dad347 commit ec56a31

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

lang/en/docs/jobs-cli/batch-scripts/sample-scripts.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ This example requests 1 node with 2 processors (cores) for 10 minutes, in the De
2323

2424
cd $PBS_O_WORKDIR
2525
module load espresso
26-
mpirun -np $PBS_NP pw.x -in pw.input
26+
# $EXEC_CMD is set by the environment module
27+
mpirun -np $PBS_NP $EXEC_CMD pw.x -in pw.input
2728
```
2829

2930
## On-demand regular (OR)
@@ -44,5 +45,6 @@ This example requests 1 node and 16 cores for 10 minutes, on the OR [queue](../.
4445

4546
cd $PBS_O_WORKDIR
4647
module load vasp
47-
mpirun -np $PBS_NP vasp
48+
# $EXEC_CMD is set by the environment module
49+
mpirun -np $PBS_NP $EXEC_CMD vasp
4850
```

lang/en/docs/tutorials/jobs-cli/job-cli-example.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ Secondly, we prepare the [Batch Script](../../jobs-cli/batch-scripts/overview.md
112112

113113
module add espresso
114114
cd $PBS_O_WORKDIR
115-
mpirun -np $PBS_NP pw.x -in pw.in > pw.out
115+
# $EXEC_CMD is set by the environment module
116+
mpirun -np $PBS_NP $EXEC_CMD pw.x -in pw.in > pw.out
116117
```
117118

118119
Just like before, we are using template variables again instead of the [project](../../jobs/projects.md) name and email. Variables starting with `$PBS` are automatically set by the [resource manager](../../infrastructure/resource/overview.md), and are known as the ["PBS Directives"](../../jobs-cli/batch-scripts/directives.md).
@@ -258,7 +259,7 @@ EOF
258259
259260
module add espresso
260261
cd \$PBS_O_WORKDIR
261-
mpirun -np \$PBS_NP pw.x -in srzro3_${celldm1}.in | tee srzro3_${celldm1}.out
262+
mpirun -np \$PBS_NP $EXEC_CMD pw.x -in srzro3_${celldm1}.in | tee srzro3_${celldm1}.out
262263
EOF
263264
qsub run_QE_${celldm1}.pbs
264265
done

lang/en/docs/tutorials/jobs-cli/qe-gpu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ with 8 OpenMP threads.
4141
```bash
4242
module load espresso/7.4-cuda-12.4-cc-70
4343
export OMP_NUM_THREADS=8
44-
mpirun -np 1 pw.x -npool 1 -ndiag 1 -in pw.cuo.scf.in > pw.cuo.gpu.scf.out
44+
mpirun -np 1 $EXEC_CMD pw.x -npool 1 -ndiag 1 -in pw.cuo.scf.in > pw.cuo.gpu.scf.out
4545
```
4646

4747
6. Finally, we can submit our job using:

0 commit comments

Comments
 (0)