Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Installation

suchitha92 edited this page Jun 20, 2017 · 1 revision

Installation steps

The following are the steps to use the library

  • ROCM 1.5 Kernel, Driver and Compiler Installation (if not done until now)
  • Library installation.

ROCM 1.5 Installation

To Know more about ROCM refer https://github.com/RadeonOpenCompute/ROCm/blob/master/README.md

a. Installing Debian ROCM repositories

Before proceeding, make sure to completely uninstall any pre-release ROCm packages.

Refer https://github.com/RadeonOpenCompute/ROCm#removing-pre-release-packages for instructions to remove pre-release ROCM packages.

Steps to install rocm package are,

wget -qO - http://packages.amd.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -

sudo sh -c 'echo deb [arch=amd64] http://packages.amd.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'

sudo apt-get update

sudo apt-get install rocm

Then, make the ROCm kernel your default kernel. If using grub2 as your bootloader, you can edit the GRUB_DEFAULT variable in the following file:

sudo vi /etc/default/grub

sudo update-grub

and Reboot the system

b. Verifying the Installation

Once Reboot, to verify that the ROCm stack completed successfully you can execute HSA vector_copy sample application:

   * cd /opt/rocm/hsa/sample        
   * make       
   * ./vector_copy

Library Installation

a. Build debian from source

git clone https://github.com/ROCmSoftwarePlatform/HcSPARSE.git && cd HcSPARSE

chmod +x build.sh && ./build.sh

build.sh execution builds the library and generates a debian under build directory.