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
- What is OpenCL?
- Comparing OpenCL, CUDA, and SYCL
- Overview of OpenCL features and architecture
- Configuring the Development Environment
Getting Started
- Creating a new OpenCL project in Visual Studio Code
- Examining the project structure and files
- Compiling and executing the program
- Displaying output using printf and fprintf
OpenCL API
- Understanding the role of the OpenCL API in the host program
- Querying device information and capabilities via the OpenCL API
- Creating contexts, command queues, buffers, kernels, and events using the OpenCL API
- Enqueuing commands such as read, write, copy, map, unmap, execute, and wait using the OpenCL API
- Handling errors and exceptions with the OpenCL API
OpenCL C
- Understanding the role of OpenCL C in the device program
- Writing kernels in OpenCL C for device execution and data manipulation
- Utilising OpenCL C data types, qualifiers, operators, and expressions
- Using OpenCL C built-in functions for math, geometry, and relational operations
- Applying OpenCL C extensions and libraries, including atomic operations, images, and cl_khr_fp16
OpenCL Memory Model
- Distinguishing between host and device memory models
- Utilising OpenCL memory spaces such as global, local, constant, and private
- Managing OpenCL memory objects including buffers, images, and pipes
- Applying OpenCL memory access modes like read-only, write-only, and read-write
- Leveraging the OpenCL memory consistency model and synchronization mechanisms
OpenCL Execution Model
- Distinguishing between host and device execution models
- Defining parallelism using OpenCL work-items, work-groups, and ND-ranges
- Utilising OpenCL work-item functions such as get_global_id, get_local_id, and get_group_id
- Applying OpenCL work-group functions including barrier, work_group_reduce, and work_group_scan
- Using OpenCL device functions such as get_num_groups, get_global_size, and get_local_size
Debugging
- Identifying common errors and bugs in OpenCL programs
- Inspecting variables, breakpoints, and call stacks using the Visual Studio Code debugger
- Debugging and analyzing OpenCL programs on AMD devices using CodeXL
- Debugging and analyzing OpenCL programs on Intel devices using Intel VTune
- Debugging and analyzing OpenCL programs on NVIDIA devices using NVIDIA Nsight
Optimisation
- Understanding factors affecting OpenCL program performance
- Improving arithmetic throughput with OpenCL vector data types and vectorization techniques
- Reducing control overhead and enhancing locality using OpenCL loop unrolling and tiling
- Optimising memory access and bandwidth with OpenCL local memory and related functions
- Measuring and improving execution time and resource utilization via OpenCL profiling tools
Requirements
- A grasp of the C/C++ language and parallel programming principles
- Foundational knowledge of computer architecture and memory hierarchy
- Proficiency with command-line tools and code editors
Target Audience
- Developers seeking to master OpenCL for programming heterogeneous devices and exploiting their parallelism
- Developers aiming to write portable, scalable code compatible with various platforms and devices
- Programmers looking to explore the low-level facets of heterogeneous programming and optimise code performance
Custom Corporate Training
Training solutions designed exclusively for businesses.
- Customised Content: We adapt the syllabus and practical exercises to the real goals and needs of your project.
- Flexible Schedule: Dates and times adapted to your team's agenda.
- Format: Online (live), In-company (at your offices), or Hybrid.
Price per private group, online live training, starting from £6400 + VAT*
Contact us for an exact quote and to hear our latest promotions