#!/bin/bash # # CHOOSE THE NUMBER OF PROCESSOR WHEN YOU RUN THE JOB. # FOR EXAMPLE TO USE 8 PROCESSORS, TYPE: # qsub -pe mpi 8 example.sge # #$ -V # Tell Gridengine what shell to use: #$ -S /bin/bash # # Start this script from the current working directory: #$ -cwd # # Combine output and error messages into one output file: #$ -j y # # Name of the output file: #$ -o hello_output_$JOB_ID.txt # mpirun -np $NSLOTS ./hello