Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658796 - media-libs/mesa - Nvidia OpenCL implementation not working anymore.
Summary: media-libs/mesa - Nvidia OpenCL implementation not working anymore.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-23 08:21 UTC by Pablo Cholaky
Modified: 2018-07-04 21:40 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo Cholaky 2018-06-23 08:21:37 UTC
As reported and commited at https://bugs.gentoo.org/658120, now we lost OpenCL functionality using Nvidia drivers, making opencl.h to not be available.

OpenCL works actually for Nvidia Drivers, so can you also add video_cards_nvidia?

I haven't tried with nouveau, but works fine with x11-drivers/nvidia-drivers.

Many thanks.


Extra info:

- Compiling memtestCL project without mesa opencl:

memtestCL_core.h:45:13: fatal error: CL/opencl.h: No such file or directory
    #include <CL/opencl.h>
             ^~~~~~~~~~~~~

- Enabling opencl works fine, and runs well.

Available OpenCL platforms:
         0: NVIDIA CUDA (SELECTED)
Available OpenCL devices on selected platform:
         0: GeForce GTX 1080 with Max-Q Design (SELECTED
Comment 1 Matt Turner gentoo-dev 2018-06-24 21:31:13 UTC
I think the real problem is that because you cannot install mesa[opencl], you don't get opencl headers?
Comment 2 Pablo Cholaky 2018-06-25 10:25:09 UTC
(In reply to Matt Turner from comment #1)
> I think the real problem is that because you cannot install mesa[opencl],
> you don't get opencl headers?

Yes, exactly, without opencl USE flag it doesn't appears, and I can't use it because is only enabled for radeonsi/r600.

I had to locally modify the ebuild to support nvidia, and works fine.


Also, without Mesa's OpenCL USE Flag, I miss a lot of applications with OpenCL, which already works perfectly with Nvidia binary driver.

My petition is to get back OpenCL USE flag support for Nvidia driver also at Mesa ebuild.
Comment 3 Ștefan Talpalaru 2018-07-03 15:23:12 UTC
> Also, without Mesa's OpenCL USE Flag, I miss a lot of applications with OpenCL, which already works perfectly with Nvidia binary driver.

Re-emerge eselect-opencl-1.1.0-r4 and it will symlink the right headers under "/usr/include/CL". You might have to manually remove some old, broken symlink in there.
Comment 4 Pablo Cholaky 2018-07-04 21:40:01 UTC
(In reply to Ștefan Talpalaru from comment #3)
> > Also, without Mesa's OpenCL USE Flag, I miss a lot of applications with OpenCL, which already works perfectly with Nvidia binary driver.
> 
> Re-emerge eselect-opencl-1.1.0-r4 and it will symlink the right headers
> under "/usr/include/CL". You might have to manually remove some old, broken
> symlink in there.

Many thanks. It works perfectly. I can confirm this as solved.

Still a broken symlink at ../../lib64/OpenCL/vendors/mesa/include/CL/cl.hpp under /usr/include/CL/ , but seems to work.