How to accelerate your code in under 10 lines
Rachel Smullen gave a talk on using OpenACC, a system of hints for your C, C++, and Fortran code that enables a compiler to move computations to the GPU or other accelerators. She attended the International High Performance Computing Summer School last summer, which covered OpenACC, and was kind enough to share what she learned with all of us.
Example code to start from (exercise and solution in the slides)
There are also some slides from IHPCSS by John Urbanic that cover OpenACC in more detail: