Wiki

Clone wiki

CS5220-S14 / openmp-htc

Running OpenMP jobs on C4

To run an OpenMP job on C4 (or, more generally, a multi-threaded job in your favorite environment), you may use the ompsub command. You may also write your own submission script directly.

The ompsub script prepares an HTCondor submission script to run an OpenMP job and submits that script to the scheduler. For example,

ompsub -n 2 ./hello.x

will reserve a slot with two processors on the C4 cluster, set OMP_NUM_THREADS to 2, and run hello.x. By default will only consider nodes allocated to the class; if you want to allow any old node, supply ompsub the -a flag.

Updated