#!/bin/bash -l #$ -l h_rt=12:00:00 # IDL can make use of multiple cores automatically. # Here request 2 cores. However - IDL must be configured # to only use the requested # of cores. When this flag is # used the NSLOTS variable will be set to 2. The IDL # batch scripts below will read the NSLOTS value and set # the IDL thread limit to match before calling the real # IDL program. #$ -pe omp 2 # clear any loaded modules module purge # Load the IDL module module load idl/8.6.0 # OR...load the ENVI module which includes # IDL version 8.6.0 # module load envi/5.4 # The -quiet flag suppresses the printout of the IDL # version to stderr # NSLOTS is set to 2 so the TPOOL_NTHREADS value that is # printed should also be 2. The command to set the IDL # TPOOL_NTHREADS value is in idl_batch.pro idl -quiet < idl_batch.pro # Optionally, the output could be re-directed to a file. idl -quiet < idl_batch.pro > my_output_file.log # This sets arguments to the idl_batch_args.pro program # as environment variables. Alternatively a configuration file # could be read in. The use of the -arg or -args flags does # not currently work in an SCC batch. export NLOOPS=10 export SIZE_X=500 export SIZE_Y=250 idl -quiet < idl_batch_args.pro