Skip to content
Snippets Groups Projects
Commit dd145b33 authored by Michael Müller's avatar Michael Müller
Browse files

Merge branch 'gpuprogramming' into 'preview'

Fix checks

See merge request zih/hpc-compendium/hpc-compendium!147
parents 4ebc062c a0d67bb5
No related branches found
No related tags found
3 merge requests!322Merge preview into main,!319Merge preview into main,!147Fix checks
......@@ -2,23 +2,20 @@
## Directive Based GPU Programming
Directives are special compiler commands in your C/C++ or Fortran source
code. The tell the compiler how to parallelize and offload work to a
GPU. This section explains how to use this technique.
Directives are special compiler commands in your C/C++ or Fortran source code. The tell the compiler
how to parallelize and offload work to a GPU. This section explains how to use this technique.
### OpenACC
[OpenACC](http://www.openacc-standard.org) is a
directive based GPU programming model. It currently only supports NVIDIA
GPUs as a target.
[OpenACC](http://www.openacc-standard.org) is a directive based GPU programming model. It currently
only supports NVIDIA GPUs as a target.
Please use the following information as a start on OpenACC:
Please use the following information as a start on OpenACC:
Introduction
OpenACC can be used with the PGI and CAPS compilers. For PGI please be
sure to load version 13.4 or newer for full support for the NVIDIA Tesla
K20x GPUs at ZIH.
OpenACC can be used with the PGI and CAPS compilers. For PGI please be sure to load version 13.4 or
newer for full support for the NVIDIA Tesla K20x GPUs at ZIH.
#### Using OpenACC with PGI compilers
......@@ -35,10 +32,10 @@ HMPP is available from the CAPS compilers.
### CUDA
Native [CUDA](http://www.nvidia.com/cuda) programs can sometimes offer a better performance. Please use the following slides as an introduction:
Native [CUDA](http://www.nvidia.com/cuda) programs can sometimes offer a better performance. Please
use the following slides as an introduction:
* Introduction to CUDA;
* Advanced Tuning for NVIDIA Kepler GPUs.
In order to compiler an application with CUDA use the `nvcc` compiler
command
In order to compiler an application with CUDA use the `nvcc` compiler command.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment