opencl with nvidia GPU

Questions about Wine on Linux
Locked
3djake
Newbie
Newbie
Posts: 2
Joined: Sun May 13, 2018 5:49 pm

opencl with nvidia GPU

Post by 3djake »

Hello,

I am trying to get opencl to function properly using my nvidia GPU in wine but I am struggling to compile the libraries correctly.

I am running Ubuntu 16.04

here is how I compiled, I suspect I am missing some flags

Code: Select all

export CPPFLAGS="-I/usr/local/cuda-9.0/include/" export LDFLAGS="-L/usr/local/cuda-9.0/lib64" 
./configure --with-opencl --enable-win64 --without-x
make -j4
cp dlls/opencl/opencl.dll.so /opt/wine-stable/lib64/wine/
cp dlls/opencl/opencl.dll.fake /opt/wine-stable/lib64/wine/fakedlls
I think I am still using the wrong cl.h header file.
When I run

Code: Select all

wine ~/.wine/drive_c/windows/syswow64/clinfo.exe
I get errors about unimplemented functions, I seem to have compiled version 1.0 of the opencl libraries.

Any help on what I did wrong is appreciated, thanks.
3djake
Newbie
Newbie
Posts: 2
Joined: Sun May 13, 2018 5:49 pm

Re: opencl with nvidia GPU

Post by 3djake »

I ended up using wine-staging, it seems to work using the native opencl library.
Locked