How should I set up my environment to run an OpenMP program.

The OMP_NUM_THREADS environment variable determines the number of processors that will be used during execution. If you are using csh, you can set this variable to, for example, 4 by typing:


You should also set the environment variable PARALLEL to 1. This variable must be set or else any timers used by the program will return incorrect timings (see the etime man page for more details).

In order for your application to find the Guide libaries, you must set your LD_LIBRARY_PATH environment variable to ~paramnt/tools/guide38/lib/32, see the FAQ on how to use the Purdue installed version of the KAPPro tools under KAPPro_Toolset.

You can find more details about other OpenMP variables at the OpenMP webpage.