Quote:
Originally Posted by selroc
The command to install minimal OpenCL:
apt install rock-dkms rocm-opencl rocm-opencl-dev rocm-smi
The full Makefile:
Code:
all: utilities dependencies rocm mfakto primetools gpuowl
utilities:
apt update
apt install ntp tmux lm-sensors make git g++
dependencies:
apt install libgmp-dev
rocm:
apt update
apt dist-upgrade
apt install libnuma-dev
wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | apt-key add -
echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | tee /etc/apt/sources.list.d/rocm.list
apt update
apt install rock-dkms rocm-opencl rocm-opencl-dev rocm-smi
echo 'SUBSYSTEM=="kfd", KERNEL=="kfd", TAG+="uaccess", GROUP="video"' | tee /etc/udev/rules.d/70-kfd.rules
usermod -a -G video root
echo 'ADD_EXTRA_GROUPS=1' | tee -a /etc/adduser.conf
echo 'EXTRA_GROUPS=video' | tee -a /etc/adduser.conf
echo 'export LD_LIBRARY_PATH=/opt/rocm/opencl/lib/x86_64:/opt/rocm/hsa/lib:$$LD_LIBRARY_PATH' | tee -a /etc/profile.d/rocm.sh
echo 'export PATH=$$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin/x86_64' | tee -a /etc/profile.d/rocm.sh
mfakto:
cd /root
git clone https://github.com/preda/mfakto
cd /root/mfakto/src
make
primetools:
cd /root
git clone https://github.com/teknohog/primetools
gpuowl:
cd /root
git clone https://github.com/preda/gpuowl
cd /root/gpuowl
make
|
It is also possible and maybe desirable to install everything in a single pass:
Code:
rocm:
apt update
apt dist-upgrade
apt install libnuma-dev libgmp-dev ntp tmux lm-sensors make git g++
wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | apt-key add -
echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | tee /etc/apt/sources.list.d/rocm.list
apt update
apt install rock-dkms rocm-opencl rocm-opencl-dev rocm-smi
echo 'SUBSYSTEM=="kfd", KERNEL=="kfd", TAG+="uaccess", GROUP="video"' | tee /etc/udev/rules.d/70-kfd.rules
usermod -a -G video root
echo 'ADD_EXTRA_GROUPS=1' | tee -a /etc/adduser.conf
echo 'EXTRA_GROUPS=video' | tee -a /etc/adduser.conf
echo 'export LD_LIBRARY_PATH=/opt/rocm/opencl/lib/x86_64:/opt/rocm/hsa/lib:$$LD_LIBRARY_PATH' | tee -a /etc/profile.d/rocm.sh
echo 'export PATH=$$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin/x86_64' | tee -a /etc/profile.d/rocm.sh
mfakto:
cd /root
git clone https://github.com/preda/mfakto
cd /root/mfakto/src
primetools:
cd /root
git clone https://github.com/teknohog/primetools
gpuowl:
cd /root
git clone https://github.com/preda/gpuowl
Issue with <double-space> vs. <tabulation>:
GitHub does not allow tabs in text thus I am forced to replace tabs with two spaces, but then the makefile is plain wrong and do not work.
So to make it work substitute all " " with tabs.