You are not logged in.

#1 2017-10-27 22:57:22

!llum1nated
Member
Registered: 2017-02-23
Posts: 11

How to install AMD Blockchain Compute driver fix for Arch Linux?

Hi, for people who mine ethereum, this is a must have!

Its possible someone can create a package for it, or its only possible build as new kernel, how about to install as addon? Please let me know!


First need to install latest opencl-amd from AUR: https://aur.archlinux.org/packages/opencl-amd/


Also in manual for AMDGPU-PRO it says: https://support.amd.com/en-us/kb-articl … stall.aspx

Installing the Optional ROCm Component
This AMDGPU-Pro driver package incorporates the ROCm component that can be optionally installed for running Compute/OpenCL applications.  You can install the component by issuing the following command:

sudo apt install -y rocm-amdgpu-pro

Now how to install ROCm as component in Arch Linux, it only gives instructions for Ubuntu?


Here is the ROCm official github page.
https://rocm.github.io/install.html


Here I found some few months old post about how to build kernel with rocm on Arch Linux, not sure if works with latest kernel? https://github.com/RadeonOpenCompute/ROCm/issues/117

To compile the kernel:

First, clone the linux-git repo and check out the commit for linux 4.9.0

git clone https://aur.archlinux.org/linux-git.git linux-rocm
cd linux-rocm
git checkout 63b0d79
Then, edit PKGBUILD and rename linux-git.preset to linux-rocm.preset

diff --git a/PKGBUILD b/PKGBUILD
index ae5e7b0..c135a8f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,16 +5,16 @@
 # Contributor: misc <tastky@gmail.com>
 # Contributor: NextHendrix <cjones12 at sheffield.ac.uk>

-pkgbase=linux-git
-_srcname=linux
-pkgver=4.9.r0.g69973b8
+pkgbase=linux-rocm
+_srcname=ROCK-Kernel-Driver
+pkgver=roc.1.5.0.r0.g757f29e928f0
 pkgrel=1
 arch=('i686' 'x86_64')
 url="http://www.kernel.org/"
 license=('GPL2')
 makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'git' 'libelf')
 options=('!strip')
-source=('git+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git'
+source=('git+https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver.git'
         # the main kernel config files
         'config' 'config.x86_64'
         # standard config files for mkinitcpio ramdisk
diff --git a/linux-git.preset b/linux-rocm.preset
similarity index 100%
rename from linux-git.preset
rename to linux-rocm.preset
Finally, makepkg

makepkg -s

ROCm offers a docker that can be used to try out the userspace tools: https://github.com/RadeonOpenCompute/ROCm-docker

Here are instrucions for Ubuntu: https://bitcointalk.org/index.php?topic … sg21305411

#Install new ROCm Kernel: 

wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
sudo apt-get update
sudo apt-get install rocm

#edit grub
sudo nano  /etc/default/grub
#2MB fragments for Ellesmere are enabled with a grub option:
GRUB_CMDLINE_LINUX="amdgpu.vm_fragment_size=9"

sudo update-grub
sudo reboot

Last edited by !llum1nated (2017-10-27 23:46:53)

Offline

#2 2017-11-02 19:01:28

!llum1nated
Member
Registered: 2017-02-23
Posts: 11

Re: How to install AMD Blockchain Compute driver fix for Arch Linux?

Bump

Offline

#3 2017-11-02 19:33:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How to install AMD Blockchain Compute driver fix for Arch Linux?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2018-02-25 13:47:55

archid
Member
Registered: 2018-02-25
Posts: 1

Re: How to install AMD Blockchain Compute driver fix for Arch Linux?

Is anyone on this? It would be a big help.

Offline

#5 2018-03-24 11:08:11

eggz
Member
Registered: 2017-09-16
Posts: 8

Re: How to install AMD Blockchain Compute driver fix for Arch Linux?

I'm 'on it' as well for many months, but so far utterly failing. Actually, this is just a fancy way of bumping. hmm

Offline

#6 2018-03-24 12:03:20

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: How to install AMD Blockchain Compute driver fix for Arch Linux?

eggz wrote:

I'm 'on it' as well for many months, but so far utterly failing.

What have you tried so far?  How has that failed?

Offline

Board footer

Powered by FluxBB