Skip to content
Xiaoguang Dai edited this page Jan 29, 2014 · 2 revisions

Environment Setup

HPCLinux On VirtualBox

The suggested way to practice OpenMP in this class is trying to use the HPCLinux OVA image on VirtualBox. The OVA image contains both icc and gcc. It is a ready to use environment. To show that, you can try to compile and run an OpenMP sample program with either icc or gcc:

$ gcc -fopenmp /opt/intel/composer_xe_2013_sp1.0.080/Samples/en_US/C++/openmp_samples/openmp_sample.c && ./a.out

$ icc -openmp /opt/intel/composer_xe_2013_sp1.0.080/Samples/en_US/C++/openmp_samples/openmp_sample.c && ./a.out

Standalone installation

You can use standard gcc to compile OpenMP program. See here for more information on GCC's implementation status of the OpenMP.

Reference Materials

  1. Tim's wonderful Introduction to OpenMP on Youtube
  2. Tim's Hands-on Tutorial to OpenMP
Clone this wiki locally