sample torque pbs file
#!/bin/bash
#PBS -V
##your pbs job name
#PBS -N myname
##your job allocation
##e.g. nodes=1:ppn=1, nodes=2:ppn=4, nodes=cmth01:ppn=2+cmth02:ppn=4
#PBS -l nodes=1:ppn=1
##time limit
#PBS -l walltime=999:00:00
##memory limit
#PBS -l mem=1900mb
##which queue
#PBS -q yourqueue
#PBS -m ae
##your email address
#PBS -M myemail@email.org
cd $PBS_O_WORKDIR
NCORES=`cat $PBS_NODEFILE | wc -l`
export OMP_NUM_THREADS=$NCORES
source /etc/bash.bashrc
#specify your binary file
mpiexec -np 1 /shared/home/myhome/mybinary > output.log