Introduction to GPU Programming

Overview of Modular Lesson Material

Graphical Processing Units (GPUs) have become the primary computational workhorse of many modern high-performance computing (HPC) systems around the world. Over the past decade, the number of GPU-enabled supercomputers in the Top500 list of the world’s most powerful supercomputers has grown steadily, and this trend is expected to continue. As HPC architectures increasingly rely on GPUs and other hardware accelerators to deliver performance and energy efficiency, a large fraction of the computational resources available to researchers, engineers, and scientists will be provided by these devices. Consequently, the ability to develop efficient GPU-accelerated applications has become an essential skill for HPC software developers.

At the same time, the GPU hardware and software ecosystem has become increasingly diverse and complex, with a wide range of hardware platforms, software stacks, and programming environments available to software developers. Multiple hardware vendors compete in the accelerator market, each offering its own architectures, software stacks, programming models, and development toolkits. Beyond vendor-specific solutions, software developers can choose from a growing range of programming models, domain-specific frameworks, libraries, and compiler technologies. As a result, it can be challenging for software developers and project owners to navigate this complex hardware and software landscape and select the most appropriate GPU programming model or framework that best meets the needs of their projects. The choice depends on a range of factors, including application requirements, target hardware platforms, performance objectives, code portability, long-term maintainability, and compatibility with existing code.

This introductory module provides an overview of the contemporary GPU programming landscape. Rather than focusing on a single programming model, it introduces the major GPU hardware platforms, programming languages, frameworks, and portability solutions currently used in HPC. Participants will gain an understanding of the strengths, limitations, and typical use cases of different approaches, enabling them to make informed decisions when selecting technologies for new software projects or when adapting existing HPC applications for accelerator-based systems.

Prerequisites

  • A basic understanding of programming in C/C++ or Fortran.

  • Familiarity with compiling and running programs from the command line in a Linux environment.

  • A basic understanding of parallel computing concepts, such as processes, threads, and shared versus distributed memory, is beneficial but not required.

  • Some experience using HPC systems (e.g., logging in via SSH, compiling code, and submitting jobs to a scheduler) is helpful but not essential.

  • No prior experience with GPU programming is assumed.

Table of Content

Learning Outcomes

This modular lesson material is intended for HPC software developers, computational scientists, research software engineers, and technical decision makers who want to understand the GPU programming ecosystem and identify the most suitable technologies for their applications and long-term software development goals.

By the end of this module, learners should be able to:

  • Understand when and why GPUs and other accelerators are beneficial for HPC applications (link to leaves in skill tree);

  • Grasp the core concepts of GPU programming, including parallel execution models, GPU architectures, memory management, and the challenges of developing efficient GPU-accelerated applications (link to leaves in skill tree);

  • Navigate the GPU software ecosystem by understanding the roles of different programming models, frameworks, libraries, and development tools (link to leaves in skill tree);

  • Evaluate and select appropriate GPU programming tools and technologies based on application requirements, performance objectives, portability needs, and existing software constraints (link to leaves in skill tree).

Credits and Licenses

Credit

Don’t forget to check out additional modular lesson materials from the EVITA platform. Please contact us if you want to reuse these course materials in your teaching. You can also join the XXX channel to share your experience and get more help from the community.

License