System Experiments Laboratory  

Go Back   System Experiments Laboratory > SEL Mersenne prime research effort and other plans > Available software and reference information

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2019
selroc selroc is offline
Administrator
 
Join Date: Aug 2019
Location: ROME
Posts: 111
Default Minimal ROCm installation procedure for Debian

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
Reply With Quote
  #2  
Old 09-23-2019
selroc selroc is offline
Administrator
 
Join Date: Aug 2019
Location: ROME
Posts: 111
Default Re: Minimal ROCm installation procedure for Debian

Quote:
Originally Posted by selroc View Post
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT +2. The time now is 09:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
(c) 2019 System Experiments Laboratory