Skip to Content
Parallel and High Performance Computing
book

Parallel and High Performance Computing

by Yuliana Zamora, Robert Robey
July 2021
Intermediate to advanced content levelIntermediate to advanced
704 pages
21h 6m
English
Manning Publications
Content preview from Parallel and High Performance Computing

11 Directive-based GPU programming

This chapter covers

  • Selecting the best directive-based language for your GPU
  • Using directives or pragmas to port your code to GPUs or other accelerator devices
  • Optimizing the performance of your GPU application

There has been a scramble to establish standards for directive-based languages for programming for GPUs. The pre-eminent directive-based language, OpenMP, released in 1997, was the natural candidate to look to as an easier way to program GPUs. At that time, OpenMP was playing catchup and mainly focused on new CPU capabilities. To address GPU accessibility, in 2011, a small group of compiler vendors, (Cray, PGI and CAPS) along with NVIDIA as the GPU vendor, joined to release the OpenACC standard, providing ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Massively Parallel Processors, 4th Edition

Programming Massively Parallel Processors, 4th Edition

Wen-mei W. Hwu, David B. Kirk, Izzat El Hajj
Algorithms: 24-part Lecture Series

Algorithms: 24-part Lecture Series

Robert Sedgewick, Kevin Wayne
Grokking Algorithms

Grokking Algorithms

Aditya Bhargava

Publisher Resources

ISBN: 9781617296468Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link