#!/bin/bash # Multi-thread (shared-memory) sample script for Grid Engine # Replace items enclosed by {} #$ -S /bin/bash #$ -V #$ -cwd #$ -M {email address for notification} #$ -m {codition for notification, e.g. be for beginning and end} #$ -o {file for standard output} #$ -e {file for standard error} #$ -pe shm.pe {number of processes requested} export PARALLEL=$NSLOTS export OMP_NUM_THREADS=$NSLOTS {program call}