How do I submit a multi-threaded job?

Please note: The FAQ pages at the HPCVL website are continuously being revised. Some pages might pertain to an older configuration of the system. Please let us know if you encounter problems or inaccuracies, and we will correct the entries.

You need to specify the parallel environment to use, which is in our case, and how many processors are going to be used. This is done via the script line:

#$ -pe 16

if you want to use 16 processors. This sets and environment variable NSLOTS and requests the corresponding number of processes.

There is no request for parallel queues or special complexes, but like in an interactive run of multi-threaded program you need to set the variables PARALLELand also OMP_NUM_THREADS (in case of OpenMP applications) to the number of processors to be used. Add the following lines to your script file (bash syntax):


For more instructions, see the serial job section.