User Tools

Site Tools


howto:pbsdsh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
howto:pbsdsh [2023/10/10 13:37]
wikiadmin
howto:pbsdsh [2026/08/25 21:58] (current)
kevin [Example 2: job script]
Line 41: Line 41:
 #!/bin/bash #!/bin/bash
 #PBS -N p2nodes #PBS -N p2nodes
-#PBS -l select=2:ncpus=24+#PBS -l select=2:ncpus=24:mpiprocs=24
 #PBS -P YOURPROJECT #PBS -P YOURPROJECT
 #PBS -q normal #PBS -q normal
Line 49: Line 49:
 cd $CWD cd $CWD
 echo "Working directory: " `pwd` echo "Working directory: " `pwd`
 +nprocs=`cat $PBS_NODEFILE | wc -l`
  
 SCDIR=/mnt/lustre/users/$USER/scripts SCDIR=/mnt/lustre/users/$USER/scripts
Line 56: Line 56:
 INPUTS=inputs.txt           # Each line in this file is used as arguments to ${SCRIPT} INPUTS=inputs.txt           # Each line in this file is used as arguments to ${SCRIPT}
  
-parallel -j ${PBS_NCPUS} pbsdsh -n {%} -- bash -l -c '"'${SCRIPT} {}'"' :::: ${INPUTS}+parallel -j ${nprocs} pbsdsh -n {%} -- bash -l -c '"'${SCRIPT} {}'"' :::: ${INPUTS}
 </code> </code>
  
/app/dokuwiki/data/attic/howto/pbsdsh.1696937828.txt.gz · Last modified: 2023/10/10 13:37 by wikiadmin