Developing Applications with the AMD ROCm Ecosystem

This training material is created by AMD in collaboration with ENCCS. It covers how to develop and port applications to run on AMD GPU and CPU hardware on top AMD-powered supercomputers. You will learn about the ROCm software development languages, libraries, and tools, as well as getting a developer’s view of the hardware that powers the system. The material focuses mostly on how to program applications to run on the GPU.


It is useful to have prior experience developing HPC applications, and some understanding of recent HPC computer hardware and the Linux operating system.

Who is the course for?

About the course

4 half-day schedule

Day 1, 2022, 13:00-17:00 — Programming Environments

  • HIP (George Markomanolis, AMD)

  • HIP Exercises on ACP cloud

  • Break

  • Hipify — porting applications to HIP

  • Hipify exercises

  • Getting Started with OpenMP® Offload Applications on AMD Accelerators (Jose Noudohouenou, AMD)

  • Break

  • OpenMP exercises

  • Developing Fortran Applications, HIPFort & Flang (Bob Robey and Brian Cornille, AMD)

  • Fortran exercises – HIPFort

Day 2, 13:00-17:00 — Understanding the Hardware

  • The AMD MI250X GPUs (George Markomanolis, AMD)

  • AMD Communication Fabrics (Mahdieh Ghazimirsaeed,AMD)

  • Memory Systems (Bob Robey, AMD)

  • Break

  • Exercises – MPI Benchmark and Memory Systems

  • Roofline Model (Noah Wolfe, AMD)

  • Affinity — Placement, Ordering and Binding (Gina Sitaraman and Bob Robey, AMD)

  • Exercises – Affinity

Day 3, 13:00-17:00 — Tools

  • Profiler - rocprof

  • Exercises - rocprof

  • Profiler - Omnitrace

  • Break

  • Profiler - Omniperf

  • Break

  • Debuggers — rocgdb

  • Debugging - exercises

Day 4, 13:00-17:00 — Special Topics

  • Using OpenMP® (Michael Klemm, AMD)

  • Break

  • Introduction to ML frameworks (Alessandro Fanfarillo, AMD)

  • Break

  • Discussion and feedback

See also


The lesson file structure and browsing layout is inspired by and derived from work by CodeRefinery licensed under the MIT license. We have copied and adapted most of their license text.

Instructional Material

This instructional material is made available under the Creative Commons Attribution license (CC-BY-4.0). The following is a human-readable summary of (and not a substitute for) the full legal text of the CC-BY-4.0 license. You are free to:

  • share - copy and redistribute the material in any medium or format

  • adapt - remix, transform, and build upon the material for any purpose, even commercially.

The licensor cannot revoke these freedoms as long as you follow these license terms:

  • Attribution - You must give appropriate credit (mentioning that your work is derived from work that is Copyright (c) ENCCS and individual contributors and, where practical, linking to, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

  • No additional restrictions - You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.

With the understanding that:

  • You do not have to comply with the license for elements of the material in the public domain or where your use is permitted by an applicable exception or limitation.

  • No warranties are given. The license may not give you all of the permissions necessary for your intended use. For example, other rights such as publicity, privacy, or moral rights may limit how you use the material.


Except where otherwise noted, the example programs and other software provided with this repository are made available under the OSI-approved MIT license.