Differences between revisions 25 and 49 (spanning 24 versions)
Revision 25 as of 2013-03-16 09:31:49
Size: 5118
Editor: TobiasBurnus
Comment: Add OpenMP 4.0rc2 link
Revision 49 as of 2022-05-16 09:52:21
Size: 8972
Editor: TobiasBurnus
Comment: Update for GCC 12 release
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
This page contains information on GCC's implementation of the [[http://openmp.org/wp/|OpenMP]] standard and related functionality like the auto parallelizer ({{{-ftree-parallelize-loops}}}). This page contains information on GCC's implementation of the [[http://openmp.org/|OpenMP]] specification and related functionality like the auto parallelizer ({{{-ftree-parallelize-loops}}}).
Line 4: Line 4:
As of GCC 4.2, the compiler implements version 2.5 of the OpenMP standard and as of 4.4 it implements version 3.0 of the OpenMP standard. The OpenMP 3.1 is supported since GCC 4.7. As of GCC 4.2, the compiler implements version 2.5 of the OpenMP specification, as of 4.4 it implements version 3.0 and since GCC 4.7 it supports the OpenMP 3.1 specification. GCC 4.9 supports OpenMP 4.0 for C/C++, GCC 4.9.1 also for Fortran. GCC 5 adds support for [[Offloading]]. OpenMP 4.5 is supported for C/C++ since GCC 6 and since GCC 7 for Fortran (with omissions, largest missing item is structure element mapping). Since GCC 9, there is initial OpenMP 5 support (essentially C/C++, only). GCC 10 added some more features, mainly for C/C++ but also for Fortran.

GCC 11 extended the Fortran compiler to fully support OpenMP 4.5 and support more OpenMP 5.0; additionally, nonrectangular loops are now supported. GCC 12 has a growing support of OpenMP 5.0 and first support of OpenMP 5.1 features.

GCC 13 (ongoing development) has a still growing support of OpenMP 5.0, extends the support of OpenMP 5.1 features and very limited first support of OpenMP 5.2 features.

= See also =
 * Documentation on [[http://gcc.gnu.org/onlinedocs/libgomp/|libgomp]] (GNU Offloading and Multi Processing Runtime Library).
 * [[offloading|Offloading support wiki]]
 * [[https://gcc.gnu.org/projects/gomp/|GOMP Project homepage]]

= Release Notes =

 * [[https://gcc.gnu.org/gcc-13/changes.html|GCC 13 Changes]] [[https://gcc.gnu.org/onlinedocs/libgomp/OpenMP-Implementation-Status.html|OpenMP Implementation Status]] – work in progress (as of 2022)
 * [[https://gcc.gnu.org/gcc-12/changes.html|GCC 12 Changes]] [[https://gcc.gnu.org/onlinedocs/gcc-12.1.0/libgomp/OpenMP-Implementation-Status.html|OpenMP Implementation Status]]
 * [[https://gcc.gnu.org/gcc-11/changes.html|GCC 11 Changes]]
 * [[https://gcc.gnu.org/gcc-10/changes.html|GCC 10 Changes]]
 * [[https://gcc.gnu.org/gcc-9/changes.html|GCC 9 Changes]] – contains a TODO list
 * [[https://gcc.gnu.org/gcc-8/changes.html|GCC 8 Changes]]
 * [[https://gcc.gnu.org/gcc-7/changes.html|GCC 7 Changes]]
 * [[https://gcc.gnu.org/gcc-6/changes.html|GCC 6 Changes]]
 * [[https://gcc.gnu.org/gcc-5/changes.html|GCC 5 Changes]]
 * [[https://gcc.gnu.org/gcc-4.9/changes.html|GCC 4.9 Changes]]
 * [[https://gcc.gnu.org/gcc-4.8/changes.html|GCC 4.8 Changes]]
 * [[https://gcc.gnu.org/gcc-4.7/changes.html|GCC 4.7 Changes]]
 * [[https://gcc.gnu.org/gcc-4.6/changes.html|GCC 4.6 Changes]]
 * [[https://gcc.gnu.org/gcc-4.5/changes.html|GCC 4.5 Changes]]
 * [[https://gcc.gnu.org/gcc-4.4/changes.html|GCC 4.4 Changes]]
 * [[https://gcc.gnu.org/gcc-4.3/changes.html|GCC 4.3 Changes]]
 * [[https://gcc.gnu.org/gcc-4.2/changes.html|GCC 4.2 Changes]]

Line 8: Line 39:
 * Documentation on [[http://gcc.gnu.org/onlinedocs/libgomp/|libgomp]] (OpenMP runtime for GCC).
 * [[http://www.openmp.org/mp-documents/spec25.pdf|OpenMP v2.5 specification]]
 * [[http://www.openmp.org/mp-documents/spec30.pdf|OpenMP v3.0 specification]]
 * [[http://www.openmp.org/mp-documents/omp3.1-2011.0203a.pdf|OpenMP v3.1 draft specification]] ([[http://openmp.org/forum/viewforum.php?f=9|forum for draft comments]])
 * [[http://www.openmp.org/mp-documents/OpenMP3.1.pdf|OpenMP v3.1 specification]] (July 2011) ([[http://openmp.org/forum/viewforum.php?f=10|OpenMP 3.1 API forum]])
 * [[http://www.openmp.org/mp-documents/OpenMP_4.0_RC2.pdf|OpenMP v4.0rc1 specification]] (March 2013) ([[http://openmp.org/forum/viewforum.php?f=12|OpenMP 4.0 API forum]], [[http://openmp.org/wp/2013/03/openmp-40-rc2/|rc2 changes]])
 * Documentation on [[http://gcc.gnu.org/onlinedocs/libgomp/|libgomp]] (GNU Offloading and Multi Processing Runtime Library).
 * [[https://www.openmp.org/specifications/|OpenMP Specification page]] – includes the specifications linked below (also available as book) and links to the offical OpenMP example document and additional documentation:
 * [[https://www.openmp.org/mp-documents/spec25.pdf|OpenMP v2.5 specification]]
 * [[https://www.openmp.org/mp-documents/spec30.pdf|OpenMP v3.0 specification]]
 * [[https://www.openmp.org/mp-documents/OpenMP3.1.pdf|OpenMP v3.1 specification]] (July 2011)
 * [[https://www.openmp.org/mp-documents/OpenMP4.0.0.pdf|OpenMP v4.0 specification]] (July2013) (Official [[https://www.openmp.org/wp-content/uploads/openmp-examples-4.0.2.pdf|OpenMP 4.0.2 Examples]], [[https://forum.openmp.org/viewforum.php?f=13&sid=79390003ffdb371ab2a6a57484dba0e7|OpenMP 4.0 API forum]])
 * [[https://www.openmp.org/wp-content/uploads/openmp-4.5.pdf|OpenMP 4.5 specification]] (November 2015)
 * [[https://www.openmp.org/wp-content/uploads/OpenMP-API-Specification-5.0.pdf|OpenMP 5 specification]] ([[https://www.openmp.org/spec-html/5.0/openmp.html|as HTML]], November 2018)
 * [[https://www.openmp.org/wp-content/uploads/openmp-TR8.pdf|OpenMP 5.1 draft (= Technical Report 8)]] (November 2019)
 * [[https://www.openmp.org/wp-content/uploads/openmp-TR9.pdf|OpenMP 5.1 draft (= Technical Report 9)]] (August 2020)
 * [[https://www.openmp.org/wp-content/uploads/OpenMP-API-Specification-5-1.pdf|OpenMP 5.1]] (November 2020)
 * [[https://www.openmp.org/wp-content/uploads/openmp-TR10.pdf|OpenMP 5.2 draft (= Technical Report 10)]] (July 2021)
 * [[https://www.openmp.org/wp-content/uploads/OpenMP-API-Specification-5-2.pdf|OpenMP 5.2]] (November 2021)
Line 24: Line 61:
 * [[http://nanos.ac.upc.edu/content/barcelona-openmp-task-suite|OpenMP task test suite]] by BSC  * [[https://pm.bsc.es/projects/bots|OpenMP task test suite]] by BSC
Line 33: Line 70:
(Outdated!)
Line 35: Line 74:
 * Fix [[http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35423|PR 35423]] (missing parts of OpenMP WORKSHARE).
Line 41: Line 79:
 * OpenMP 4.0 -- when available. Cf. slides at the [[http://www.ccs.tsukuba.ac.jp/workshop/IWOMP2010/|IWOMP, the International Workshop for OpenMP]] ([[http://www.ccs.tsukuba.ac.jp/workshop/IWOMP2010/program.html|slides]] and [[http://www.ccs.tsukuba.ac.jp/workshop/IWOMP2010/tutorial.html|tutorials]]) in June 2010 and the [[http://www.springerlink.com/content/978-3-642-13216-2|OWOMP 2010 proceedings]]. There is also a [[http://www-949.ibm.com/software/rational/cafe/blogs/ccpp-parallel-multicore/2010/06/21/the-view-from-iwomp-2010-trip-report|blog entry]]. See also IWOMP 2012's [[http://www.ncsa.illinois.edu/Conferences/IWOMP11/program/program.html|talks]] and the [[http://www.ncsa.illinois.edu/Conferences/IWOMP11/program/presentations/supinski.pdf|committee report]]. SC2011 (November 2011): [[http://openmp.org/wp/presos/SC11_OpenMP_BoF.pdf|OpenMP Lang Committee Report]], [[http://openmp.org/wp/presos/SCBOF11.pdf|CEO report]]
  And the 2012 slides: [[http://iwomp-2012.caspur.it/program/workshop-program|IWOMP program]], [[http://iwomp-2012.caspur.it/sites/iwomp-2012.caspur.it/files/IWOMP12_State_of_LC.pdf|Language Committee report]]
 * OpenMP 4.0 (specifications released on July 2013). Cf. slides at the [[http://www.ccs.tsukuba.ac.jp/workshop/IWOMP2010/|IWOMP, the International Workshop for OpenMP]] ([[http://www.ccs.tsukuba.ac.jp/workshop/IWOMP2010/program.html|slides]] and [[http://www.ccs.tsukuba.ac.jp/workshop/IWOMP2010/tutorial.html|tutorials]]) in June 2010 and the [[http://www.springerlink.com/content/978-3-642-13216-2|OWOMP 2010 proceedings]]. There is also a [[http://www-949.ibm.com/software/rational/cafe/blogs/ccpp-parallel-multicore/2010/06/21/the-view-from-iwomp-2010-trip-report|blog entry]]. See also IWOMP 2012's [[http://www.ncsa.illinois.edu/Conferences/IWOMP11/program/program.html|talks]] and the [[http://www.ncsa.illinois.edu/Conferences/IWOMP11/program/presentations/supinski.pdf|committee report]]. SC2011 (November 2011): [[http://openmp.org/wp/presos/SC11_OpenMP_BoF.pdf|OpenMP Lang Committee Report]], [[http://openmp.org/wp/presos/SCBOF11.pdf|CEO report]]
  . And the 2012 slides: [[http://iwomp-2012.caspur.it/program/workshop-program|IWOMP program]], [[http://iwomp-2012.caspur.it/sites/iwomp-2012.caspur.it/files/IWOMP12_State_of_LC.pdf|Language Committee report]]
  . And the OpenMP 4.0 release candidate documents: [[http://www.openmp.org/mp-documents/OpenMP_4.0_RC2.pdf|OpenMP v4.0rc2 specification]] (March 2013) ([[http://openmp.org/forum/viewforum.php?f=12|OpenMP 4.0 API forum]], [[http://openmp.org/wp/2013/03/openmp-40-rc2/|rc2 changes]])
  . And a comment prior to the final release: [[https://www.ibm.com/developerworks/community/blogs/5894415f-be62-4bc0-81c5-3956e82276f3/entry/openmp_4_0_about_to_be_released_and_iwomp_2013?lang=en|OpenMP 4.0 about to be released and IWOMP 2013, by Michael Wong]] (May 2013)

OpenMP

This page contains information on GCC's implementation of the OpenMP specification and related functionality like the auto parallelizer (-ftree-parallelize-loops).

As of GCC 4.2, the compiler implements version 2.5 of the OpenMP specification, as of 4.4 it implements version 3.0 and since GCC 4.7 it supports the OpenMP 3.1 specification. GCC 4.9 supports OpenMP 4.0 for C/C++, GCC 4.9.1 also for Fortran. GCC 5 adds support for Offloading. OpenMP 4.5 is supported for C/C++ since GCC 6 and since GCC 7 for Fortran (with omissions, largest missing item is structure element mapping). Since GCC 9, there is initial OpenMP 5 support (essentially C/C++, only). GCC 10 added some more features, mainly for C/C++ but also for Fortran.

GCC 11 extended the Fortran compiler to fully support OpenMP 4.5 and support more OpenMP 5.0; additionally, nonrectangular loops are now supported. GCC 12 has a growing support of OpenMP 5.0 and first support of OpenMP 5.1 features.

GCC 13 (ongoing development) has a still growing support of OpenMP 5.0, extends the support of OpenMP 5.1 features and very limited first support of OpenMP 5.2 features.

See also

Release Notes

OpenMP Documentation

Automatic Parallelization

(-ftree-parallelize-loops)

  • Streamization

Test Suites and Benchmarks

TODO List

(Outdated!)

Feel free to add new items to this list as you run into issues or features that would be interesting to add. Send mail to the list and/or the GCC OpenMP maintainers if any item in this list sounds interesting but is hard to understand.

None: openmp (last edited 2022-05-16 09:52:21 by TobiasBurnus)