-
Notifications
You must be signed in to change notification settings - Fork 0
OpenMP
Xiaoguang Dai edited this page Jan 29, 2014
·
2 revisions
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
You can use standard gcc to compile OpenMP program. See here for more information on GCC's implementation status of the OpenMP.
- Tim's wonderful Introduction to OpenMP on Youtube
- Tim's Hands-on Tutorial to OpenMP