View on GitHub ROCm_Logo

ROCm, a New Era in Open GPU Computing

Platform for GPU-Enabled HPC and Ultrascale Computing


ROCm 1.6 introduces big updates to our OpenCL compiler and runtime implementation – built on top of the ROCm software stack!

This developer release includes the following:

Quickstart Instructions

Here’s a simple workflow to get you quickly up and running with OpenCL on ROCm –

Install the ROCm OpenCL implementation (assuming you already have the ‘rocm’ package installed):
sudo apt-get install rocm-opencl-dev

For a sample OpenCL application, let’s use a simple vector-add example from the University of Bristol’s very nice “Hands On OpenCL” lectures.

git clone

cd Exercises-Solutions/Exercises/Exercise02/C

make \
  LIBS="-L$OPENCL_ROOT/lib/x86_64 -lOpenCL -lm"


Not for all your application that supported the AMDGPU SDK for OpenCL to get the Header, rocm-opencl-dev now included the headerfiles.

If your built all your code with the AMDAPPSDK you do not need to download anything else, you can just export environment variable to /opt/rocm/opencl Do not install the AMDAPPSDK 3.0 on ROCm OpenCL it designed for old driver which need headers installed. rocm-opencl-dev package does this for you.


export AMDAPPSDKROOT=/opt/rocm/opencl 

Example 2 for AMDAPPSDK

export AMDAPPSDK=/opt/rocm/opencl

Where is clinfo?

That’s it! Super easy.

ROCm Developer website will have more information: http:/

University of Bristol’s “Hands On OpenCL” course webpage: