CSCI 3366 (Introduction to Parallel and Distributed Processing), Fall 2005:
Using OpenMP on the Linux Lab Machines

At present an OpenMP compiler is available only on the publicly available multi-processor machines (SnowWhite, Dione01, and Dione02). It's open-source software, and the installation has been only minimally tested, so please report any problems to me at bmassing@cs.trinity.edu.

Compiling OpenMP programs

Use the command omcc to compile C programs with OpenMP extensions. Typical usage:

omcc -o foo foo.c

See the sample programs page for a Makefile.

Running OpenMP programs

To execute the compiled program, just type the name of the executable. Recall from class that you can temporarily set an environment variable for a program on the command line. Example usages:

foo

foo arg1 arg2

OMP_NUM_THREADS=10 foo



Berna Massingill
2005-09-28