Installing the AMD Tool Chain
Before you can debug an AMD program, download and install the ROCm software from AMD. Visit the installation and download page at https://docs.amd.com. During the installation, select a supported Linux distribution.
By default, ROCm is installed in /opt/rocm-<version>. After installing, you may wish to:
*Add the ROCm binaries to your PATH:
export PATH=$PATH:/opt/rocm-<version>/bin:/opt/rocm-<version>/opencl/bin
*Add the ROCm library version to your LD_LIBRARY_PATH environment variable:
export LD_LIBRARY_PATH=/opt/rocm-<version>/lib;/opt/rocm-<version>/lib64