https://bugs.winehq.org/show_bug.cgi?id=54480
Bug ID: 54480 Summary: GPU Caps Viewer does not report any CUDA devices Product: Wine-staging Version: 8.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: danielyhwong@gmail.com CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
wine version 8.1 does not report any cuda devices in Caps viewer 1.58.01
$ deviceQuery deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 2 CUDA Capable device(s)
CUDA https://i.imgur.com/zbTiqfC.png
OpenCL https://i.imgur.com/jvu8nde.png
https://bugs.winehq.org/show_bug.cgi?id=54480
--- Comment #1 from Daniel Wong danielyhwong@gmail.com --- I have installed these packages:
wine-staging-amd64/jammy,now 8.1~jammy-1 amd64 [installed] wine-staging-i386/jammy,now 8.1~jammy-1 i386 [installed] wine-staging/jammy,now 8.1~jammy-1 amd64 [installed] winehq-staging/jammy,now 8.1~jammy-1 amd64 [installed]
I can access cuda from linux without any issues as indicated by the deviceQuery command, and other cuda related linux apps. However, both caps viewer and cuda-z said I have no cuda.
Appreciate any pointers on how to setup cuda on wine 8.1
Thanks!
https://bugs.winehq.org/show_bug.cgi?id=54480
--- Comment #2 from Daniel Wong danielyhwong@gmail.com --- When comparing 8.1 and 7.20 staging, I cannot find these files in 8.1 staging:
$ find /opt/wine-staging -name '*cuda*' -print /opt/wine-staging/lib/wine/i386-unix/nvcuda.dll.so /opt/wine-staging/lib/wine/i386-windows/nvcuda.dll /opt/wine-staging/lib64/wine/x86_64-windows/nvcuda.dll /opt/wine-staging/lib64/wine/x86_64-unix/nvcuda.dll.so
$ find /opt/wine-staging -name 'nv*' -print /opt/wine-staging/lib/wine/i386-unix/nvcuda.dll.so /opt/wine-staging/lib/wine/i386-unix/nvcuvid.dll.so /opt/wine-staging/lib/wine/i386-unix/nvencodeapi.dll.so /opt/wine-staging/lib/wine/i386-windows/nvapi.dll /opt/wine-staging/lib/wine/i386-windows/nvcuda.dll /opt/wine-staging/lib/wine/i386-windows/nvcuvid.dll /opt/wine-staging/lib/wine/i386-windows/nvencodeapi.dll /opt/wine-staging/lib64/wine/x86_64-windows/nvencodeapi64.dll /opt/wine-staging/lib64/wine/x86_64-windows/nvcuda.dll /opt/wine-staging/lib64/wine/x86_64-windows/nvcuvid.dll /opt/wine-staging/lib64/wine/x86_64-windows/nvapi64.dll /opt/wine-staging/lib64/wine/x86_64-unix/nvcuda.dll.so /opt/wine-staging/lib64/wine/x86_64-unix/nvencodeapi64.dll.so /opt/wine-staging/lib64/wine/x86_64-unix/nvcuvid.dll.so
https://bugs.winehq.org/show_bug.cgi?id=54480
--- Comment #3 from Daniel Wong danielyhwong@gmail.com --- My Nvidia driver version is 525.85.05
$ nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Built on Thu_Nov_18_09:45:30_PST_2021 Cuda compilation tools, release 11.5, V11.5.119 Build cuda_11.5.r11.5/compiler.30672275_0
CUDA works well with wine 7.20 staging.
https://bugs.winehq.org/show_bug.cgi?id=54480
--- Comment #4 from Daniel Wong danielyhwong@gmail.com --- after I copy the nv* files to 8.1-staging, everything is working again.
I suppose we can close this ticket.
https://bugs.winehq.org/show_bug.cgi?id=54480
Alois Schlögl alois.schloegl@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alois.schloegl@gmail.com
--- Comment #5 from Alois Schlögl alois.schloegl@gmail.com ---
nvidia patches have been disabled in wine-staging 7.22 and later. see commit
https://gitlab.winehq.org/wine/wine-staging/-/commit/6c3797b3e8dba19698328c4... Since then, cuda etc. is not supported by wine-staging.
nvidia-libs https://github.com/SveSop/nvidia-libs can be used to enable nvcuda, etc. again.