First, follow the instruction to install ROCm, which provides the HCC compiler, the ROCr runtime and the toolchains to compile the samples.
How to Build the Samples
HC C++ samples
- Make sure the HCC compiler is in your path. The default installation of HCC is /opt/rocm/bin.
- In the HCC-Example-Applications directory, create a build directory.
- Go into the build directory, then type
CXX=hcc cmake ..to generate the makefiles.
maketo compile the samples.