Zilu Wang, Steve Lantz
Cornell Center for Advanced Computing

4/2026 (original)

In a well structured program that uses a GPU, the programmer must organize their data transfers to be as efficient as possible. In this topic, we cover how how to finely control data movement through the map clause and other methods to transfer data to the device.

Objectives

After you complete this topic, you should be able to:

  • Control data transfer between host and device with the map clause
  • Manage data persistence across regions with target data
Prerequisites
  • A working knowledge of general programming concepts
  • A working knowledge of Linux; otherwise, try working through the Linux topic first
  • Ability to program in a high-level language such as Fortran or C
  • A basic familiarity with parallel programming concepts and OpenMP
 
©  |   Cornell University    |   Center for Advanced Computing    |   Copyright Statement    |   Access Statement
CVW material development is supported by NSF OAC awards 1854828, 2321040, 2323116 (UT Austin) and 2005506 (Indiana University)