Table of Contents
OpenMP
Actually in use
* OpenMP v3.1 (Feb. 2011) implemented in GCC 4.7 (Aug. 2011) * OpenMP v3.0 (May 2008) implemented in GCC 4.4 (June 2008) * OpenMP v2.5 implemented in GCC 4.2 (March 2006)
Future versions
* OpenMP v4.0 (Oct. 2013) implemented in GCC 4.9rc
Requirements
Ubuntu 12.04 GCC 4.6 with OpenMP v3.0 - necessary Package libgomp1
Examples and Tutorials for GCC
OpenMP Wiki
const int N = 1000000; double A[N], B[N], C[N]; /* Initialisierung von A, B und C */ #pragma omp parallel for for (int i = 0; i < N; i++) { A[i] = B[i] + C[i]; }
Optimization
Optimize the environment for your OpenMP code.
OpenMP 4.0 and OpenACC offloading support in GCC
GCC 5.0 with libgomp
OpenMP 4.0 with OpenACC only works for NVIDIA NVPTX and Intel Xeon Phi targets