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

12 GPU languages: Getting down to basics

This chapter covers

  • Understanding the current landscape of native GPU languages
  • Creating simple GPU programs in each language
  • Tackling more complex multi-kernel operations
  • Porting between various GPU languages

This chapter covers lower-level languages for GPUs. We call these native languages because they directly reflect features of the target GPU hardware. We cover two of these languages, CUDA and OpenCL, that are widely used. We also cover HIP, a new variant for AMD GPUs. In contrast to the pragma-based implementation, these GPU languages have a smaller reliance on the compiler. You should use these languages for more fine-tuned control of your program’s performance. How are these languages different ...

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