OpenACC Tutorial/en: Difference between revisions
Jump to navigation
Jump to search
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 4: | Line 4: | ||
OpenACC is an application programming interface (API) for porting code onto accelerators such as GPU and coprocessors. It has been developed by Cray, CAPS, NVidia and PGI. Like in [[OpenMP]], the programmer annotates C, C++ or Fortran code to identify portions that should be parallelized by the compiler. | OpenACC is an application programming interface (API) for porting code onto accelerators such as GPU and coprocessors. It has been developed by Cray, CAPS, NVidia and PGI. Like in [[OpenMP]], the programmer annotates C, C++ or Fortran code to identify portions that should be parallelized by the compiler. | ||
{{Prerequisites | {{Prerequisites | ||
|title=Prerequisites for this tutorial | |title=Prerequisites for this tutorial | ||
Line 24: | Line 25: | ||
== External references == | == External references == | ||
Here are some useful external references: | Here are some useful external references: | ||
* [ | * [https://www.openacc.org/sites/default/files/inline-files/openacc-guide.pdf OpenACC Programming and Best Practices Guide (PDF)] | ||
* [ | * [https://www.openacc.org/sites/default/files/inline-files/API%20Guide%202.7.pdf OpenACC API 2.7 Reference Guide (PDF)] | ||
* [ | * [https://developer.nvidia.com/blog/getting-started-openacc/ Getting Started with OpenACC] | ||
* [ | * [https://docs.nvidia.com/hpc-sdk/pgi-compilers/legacy.html PGI Compiler] | ||
* [http://www.pgroup.com/resources/pgprof-quickstart.htm PG Profiler] | * [http://www.pgroup.com/resources/pgprof-quickstart.htm PG Profiler] | ||
* [http://docs.nvidia.com/cuda/profiler-users-guide/index.html#visual-profiler NVIDIA Visual Profiler] | * [http://docs.nvidia.com/cuda/profiler-users-guide/index.html#visual-profiler NVIDIA Visual Profiler] | ||
Revision as of 20:57, 30 November 2022
This tutorial is strongly inspired from the OpenACC Bootcamp session presented at GPU Technology Conference 2016.
OpenACC is an application programming interface (API) for porting code onto accelerators such as GPU and coprocessors. It has been developed by Cray, CAPS, NVidia and PGI. Like in OpenMP, the programmer annotates C, C++ or Fortran code to identify portions that should be parallelized by the compiler.
Prerequisites for this tutorial
This tutorial uses OpenACC to accelerate C, C++ or Fortran code. A working knowledge of one of these languages is therefore required to gain the most benefit out of it.
Getting ready
This tutorial is based on examples. You can download all of the examples in this Github repository.
Lesson plan
- Introduction
- Gathering a profile and getting compiler information
- Expressing parallelism with OpenACC directives
- Expressing data movement
- Optimizing loops
External references
Here are some useful external references: