Skip to content

ROCm 1.4.0 RC1

Pre-release
Pre-release
Compare
Choose a tag to compare
@whchung whchung released this 03 Nov 07:09
· 2463 commits to clang_tot_upgrade since this release

ROCm 1.4.0 RC1 binary package

Contents:

  • ROCm Device Library
  • HCC Compiler

Steps to build from source:
(adopted from https://github.com/RadeonOpenCompute/HCC-Native-GCN-ISA/wiki )

# Initialize the Workspace
mkdir repo-roc-1.4.0-rc1
cd repo-roc-1.4.0-rc1
repo init -u https://github.com/RadeonOpenCompute/HCC-Native-GCN-ISA.git -b refs/tags/roc-1.4.0-rc1
repo sync

# build various LLVM components in order to build ROCm device library
mkdir llvm/build
cd llvm/build
cmake .. -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="AMDGPU;X86" -DLLVM_APPEND_VC_REV=ON 
make
cd ../..

# build ROCm device library
mkdir ocml/build
cd ocml/build
export LLVM_BUILD=`pwd`/../../llvm/build
CC=$LLVM_BUILD/bin/clang cmake -DLLVM_DIR=$LLVM_BUILD -DAMDHSACOD=/opt/rocm/bin/amdhsacod ..
make
# build binary packages for distribution
make package
# install the package built so HCC could be properly configured
sudo dpkg -i rocm-device-libs-0.0.1401-Linux.deb
cd ../..

# build HCC compiler and HCC runtime
mkdir hcc/build
cd hcc/build
cmake .. \
  -DHSA_AMDGPU_GPU_TARGET=AMD:AMDGPU:8:0:3 \
  -DROCM_DEVICE_LIB_DIR=/opt/rocm/lib \
  -DDISTRO=ubuntu
make
# build binary packages for distribution
make package
cd ../..