Thank you for sending your enquiry! One of our team members will contact you shortly.
Thank you for sending your booking! One of our team members will contact you shortly.
Duration 28 hours
Course Outline
Introduction
- Defining ROCm
- Understanding HIP
- Comparing ROCm, CUDA, and OpenCL
- Overview of ROCm and HIP features and architecture
- Setting up the Development Environment
Getting Started
- Creating a new ROCm project with Visual Studio Code
- Exploring the project structure and files
- Compiling and executing the program
- Displaying output via printf and fprintf
ROCm API
- Understanding the role of the ROCm API in the host program
- Querying device information and capabilities using the ROCm API
- Allocating and deallocating device memory with the ROCm API
- Copying data between host and device via the ROCm API
- Launching kernels and synchronizing threads using the ROCm API
- Handling errors and exceptions with the ROCm API
HIP Language
- Understanding the role of the HIP language in the device program
- Writing kernels that execute on the GPU and manipulate data using HIP
- Utilizing HIP data types, qualifiers, operators, and expressions
- Performing common tasks and operations using HIP built-in functions, variables, and libraries
ROCm and HIP Memory Model
- Understanding the difference between host and device memory models
- Using ROCm and HIP memory spaces, such as global, shared, constant, and local
- Managing ROCm and HIP memory objects, such as pointers, arrays, textures, and surfaces
- Applying ROCm and HIP memory access modes, such as read-only, write-only, read-write, etc.
- Implementing ROCm and HIP memory consistency models and synchronization mechanisms
ROCm and HIP Execution Model
- Understanding the difference between host and device execution models
- Defining parallelism using ROCm and HIP threads, blocks, and grids
- Utilizing ROCm and HIP thread functions, such as hipThreadIdx_x, hipBlockIdx_x, hipBlockDim_x, etc.
- Applying ROCm and HIP block functions, such as __syncthreads, __threadfence_block, etc.
- Using ROCm and HIP grid functions, such as hipGridDim_x, hipGridSync, cooperative groups, etc.
Debugging
- Identifying common errors and bugs in ROCm and HIP programs
- Inspecting variables, breakpoints, and call stacks using the Visual Studio Code debugger
- Debugging ROCm and HIP programs on AMD devices with the ROCm Debugger
- Analyzing ROCm and HIP programs on AMD devices using the ROCm Profiler
Optimization
- Understanding the factors that affect the performance of ROCm and HIP programs
- Improving memory throughput using ROCm and HIP coalescing techniques
- Reducing memory latency using ROCm and HIP caching and prefetching techniques
- Optimizing memory access and bandwidth using ROCm and HIP shared memory and local memory techniques
- Measuring and improving execution time and resource utilization using ROCm and HIP profiling tools
Summary and Next Steps
Requirements
- Familiarity with the C/C++ programming languages and core parallel programming concepts
- Fundamental understanding of computer architecture and memory hierarchy
- Proficiency with command-line utilities and code editors
Target Audience
- Developers aiming to learn how to utilize ROCm and HIP for programming AMD GPUs and leveraging their parallel capabilities
- Engineers seeking to write high-performance, scalable code compatible with various AMD devices
- Programmers interested in exploring the low-level intricacies of GPU programming to optimize code performance