You are not logged in.

#1 2017-11-16 11:57:54

operating
Member
Registered: 2011-01-27
Posts: 3

Amd opencl failing (machine with *both* Amd and nvidia cards)

So I have mining rig, used for cryptocurrencies. I have amd rx570 (x1) and nvidia gtx 1060 (x2).Recently amd started failing, meaning opencl command failed

lspci output:

04:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] (rev a1) (prog-if 00 [VGA controller])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
05:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] (rev a1) (prog-if 00 [VGA controller])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/580] (rev ef) (prog-if 00 [VGA controller])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+

nvidia drivers:

$ pacman -Q |grep nvidia
nvidia 387.22-5
nvidia-settings 387.22-1
nvidia-utils 387.22-1
opencl-nvidia 387.22-1

amd:

$ pacman -Q | grep amd
opencl-amd 17.40.492261-1

I am aware of catalyst and catalyst-test packages in aur, but they depend on xorg-server <1.18 and currently on arch it is 1.19 version. If using repos with xorg version 1.17, trying to install catalyst or catalyst-test, there is conflict with libglvnd package. And also lightdm refuses to start with downgraded xorg-server packages...

xorg 1.17 repos for catalyst:

[xorg117]
Server = http://mirror.hactar.xyz/Vi0L0/xorg117/$arch
  
[catalyst]
Server = http://mirror.hactar.xyz/Vi0L0/catalyst/$arch

I need X server for nvidia overclocking support. I am pretty sure this crazy amd/nvidia combo was working, but could be some updates caused opencl problems. What am I doing wrong, and is there some other way of making this work? My last resort is switching to ubuntu since there are reports of amdgpu-pro driver working there and amd/nvidia combos working too. This is really my last resort since I am used to arch, so please help me stay on arch if possible smile

output from claymore miner:

13:36:02:222    689ed740        GPU0 t=38C fan=60%
13:36:02:222    689ed740        em hbt: 1, fm hbt: 21, 
13:36:02:222    689ed740        watchdog - thread 0, hb time 89908
13:36:02:223    689ed740        WATCHDOG: GPU 0 hangs in OpenCL call, exit
13:36:02:223    689ed740        watchdog - thread 1, hb time 89908
13:36:02:223    689ed740        WATCHDOG: GPU 0 hangs in OpenCL call, exit
13:36:02:223    689ed740        watchdog - thread 2, hb time 89908
13:36:02:223    689ed740        WATCHDOG: GPU 0 hangs in OpenCL call, exit
13:36:02:223    689ed740        watchdog - thread 3, hb time 89908
13:36:02:223    689ed740        WATCHDOG: GPU 0 hangs in OpenCL call, exit

active kernel is linux 4.13.12-1, x86_64

Last edited by operating (2017-11-16 11:58:46)

Offline

#2 2017-11-17 15:54:18

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Amd opencl failing (machine with *both* Amd and nvidia cards)

If using repos with xorg version 1.17, trying to install catalyst or catalyst-test, there is conflict with libglvnd package

that can be solved by using mesa-noglvnd from aur , but i doubt your card is old enough to work with catalyst .

Try opencl-amd from AUR .
It is designed to work with the amd open source drivers and only contains the opencl part of amdgpu-pro .

edit: you are already using opencl-amd !

Do you want help troubleshooting it ?

Last edited by Lone_Wolf (2017-11-17 15:56:09)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2017-11-18 17:27:17

operating
Member
Registered: 2011-01-27
Posts: 3

Re: Amd opencl failing (machine with *both* Amd and nvidia cards)

Somewhere something went terribly wrong. During few months of use, and because I did update from time to time and seems like I didnt have to if it was working smile Now I am down to nvidia drivers and opencl-amd, but not 17.40 from aur but some older 16.40 build, PKGBUILD here: https://github.com/grmat/opencl-amd/blob/16.40/PKGBUILD

Hoping it behaves better than 17.40 version.

To clarify: seems like up to kernel 4.8 catalyst packages from above mentioned repos or aur could work ok. But now as xorg moved to 1.19, kernel lts is 4.9, think there is dependency hell trying to get all that to work. Only option imho currently is opencl-amd package, but with older drivers. Its long shot, but it still is working, maybe that is actual solution for my case.

Last edited by operating (2017-11-19 09:52:57)

Offline

Board footer

Powered by FluxBB