Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627998 - dev-libs/amdgpu-pro-opencl is installed, seen but unoperable
Summary: dev-libs/amdgpu-pro-opencl is installed, seen but unoperable
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-16 09:17 UTC by Nick
Modified: 2017-12-06 10:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
darktable-cltest output (darktable-cltest.txt,1.43 KB, text/plain)
2017-08-16 09:17 UTC, Nick
Details
clinfo output (clinfo.txt,8.03 KB, text/plain)
2017-08-16 09:19 UTC, Nick
Details
kernel config (config-4.12.0-pf6-amdgpu,103.87 KB, text/x-mpsub)
2017-08-16 09:21 UTC, Nick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick 2017-08-16 09:17:48 UTC
Created attachment 489250 [details]
darktable-cltest output

Installed dev-libs/amdgpu-pro-opencl for 7770 Cape Verde card. Clinfo reports look fine, but darktable fails with 
[opencl_init] could not create command queue for device 0: -6
Other apps I tried see opencl but don't work either. Looks like permission or setup/configuration problem. Please help.
kernel 4.12.0-pf6
xorg-server-1.19.3
libdrm-2.4.82
x11-drivers/xf86-video-amdgpu-1.3.0
Comment 1 Nick 2017-08-16 09:19:42 UTC
Created attachment 489252 [details]
clinfo output
Comment 2 Nick 2017-08-16 09:21:02 UTC
Created attachment 489254 [details]
kernel config
Comment 3 Marek Szuba archtester gentoo-dev 2017-08-16 15:17:36 UTC
Could you run darktable with debug information enabled and see if it produces any more information?
Comment 4 Nick 2017-08-17 06:53:04 UTC
darktable -d opencl provides exactly the same info as darktable-cltest.
What I probably can do is to open another issue on darktable bug tracker and provice the link to this bug so you guys may communicate... I really interested in getting opencl eventually work again. Having dumped fglrx AMD left me without fast darktable for more than half a year so far...
Comment 5 Nick 2017-08-21 12:56:48 UTC
Here comes the reply I got from darktable bug tracker:

From darktable-cltest's output:

[opencl_init] could not create command queue for device 0: -6
Error code -6 relates to CL_OUT_OF_HOST_MEMORY. And that's what the docs tell us about this error during command queue creation:

CL_OUT_OF_HOST_MEMORY if there is a failure to allocate resources required by the
OpenCL implementation on the host.

I guess it's a driver bug.
Comment 6 Francisco Lloret 2017-10-15 10:29:21 UTC
Don't works with R7 250.It causes a segmentation fault.
Comment 7 Francisco Lloret 2017-12-06 10:18:22 UTC
R7 250 died. I installed a new Rx 580 card.

After the upgrade to GCC 5 and recompilation of all world, it works using last stable kernel (4.12.12)
Comment 8 Marek Szuba archtester gentoo-dev 2017-12-06 10:45:48 UTC
Well, seeing as OpenCL clients do see devices there really isn't much I could can do here, is there... What happens inside is entirely up to AMD.