-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
The following are the steps to use the library
- ROCM 1.5 Kernel, Driver and Compiler Installation (if not done until now)
- Library installation.
To Know more about ROCM refer https://github.com/RadeonOpenCompute/ROCm/blob/master/README.md
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
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
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.