Get in Touch
 Duration 21 hours

Course Outline

Introduction

  • What is ROCm?
  • What is HIP?
  • Comparing ROCm, CUDA, and OpenCL
  • Overview of ROCm and HIP features and architecture
  • Differences between ROCm for Windows and ROCm for Linux

Installation

  • Installing ROCm on Windows
  • Verifying the installation and checking device compatibility
  • Updating or uninstalling ROCm on Windows
  • Troubleshooting common installation issues

Getting Started

  • Creating a new ROCm project using Visual Studio Code on Windows
  • Exploring the project structure and files
  • Compiling and running the program
  • Displaying output using printf and fprintf

ROCm API

  • Utilizing the ROCm API within the host program
  • Querying device information and capabilities
  • Allocating and deallocating device memory
  • Copying data between host and device
  • Launching kernels and synchronizing threads
  • Handling errors and exceptions

HIP Language

  • Utilizing the HIP language within the device program
  • Writing kernels that execute on the GPU and manipulate data
  • Using data types, qualifiers, operators, and expressions
  • Employing built-in functions, variables, and libraries

ROCm and HIP Memory Model

  • Using different memory spaces, such as global, shared, constant, and local
  • Using different memory objects, such as pointers, arrays, textures, and surfaces
  • Using different memory access modes, such as read-only, write-only, read-write, etc.
  • Applying the memory consistency model and synchronization mechanisms

ROCm and HIP Execution Model

  • Using different execution models, such as threads, blocks, and grids
  • Using thread functions, such as hipThreadIdx_x, hipBlockIdx_x, hipBlockDim_x, etc.
  • Using block functions, such as __syncthreads, __threadfence_block, etc.
  • Using grid functions, such as hipGridDim_x, hipGridSync, cooperative groups, etc.

Debugging

  • Debugging ROCm and HIP programs on Windows
  • Using the Visual Studio Code debugger to inspect variables, breakpoints, call stack, etc.
  • Using the ROCm Debugger to debug ROCm and HIP programs on AMD devices
  • Using the ROCm Profiler to analyze ROCm and HIP programs on AMD devices

Optimization

  • Optimizing ROCm and HIP programs on Windows
  • Using coalescing techniques to improve memory throughput
  • Using caching and prefetching techniques to reduce memory latency
  • Using shared memory and local memory techniques to optimize memory accesses and bandwidth
  • Using profiling and profiling tools to measure and improve the execution time and resource utilization

Summary and Next Steps

Requirements

  • A solid understanding of C/C++ languages and parallel programming concepts
  • Fundamental knowledge of computer architecture and memory hierarchy
  • Proficiency with command-line tools and code editors
  • Familiarity with the Windows operating system and PowerShell

Target Audience

  • Developers seeking to learn how to install and use ROCm on Windows to program AMD GPUs and utilize their parallelism
  • Developers aiming to write high-performance, scalable code compatible with various AMD devices
  • Programmers interested in exploring the low-level aspects of GPU programming and optimizing code performance

Number of participants


Price per participant

Upcoming Courses

Related Categories