How can cuda work under wine

Questions about Wine on Linux
Locked
game12138
Level 2
Level 2
Posts: 23
Joined: Wed Oct 10, 2018 10:35 pm

How can cuda work under wine

Post by game12138 »

I install winehq-stable 9.0, and install nvidia-libs from https://github.com/SveSop/nvidia-libs
cuda-z.run can work on linux, wine cuda-z.exe with error
How can I do ?

Code: Select all

WINEPREFIX=/home/Test/.wine ./setup_nvlibs.sh install
winecfg.jpg
I can run Linux CUDA-Z:
linux-cuda-z.jpg
but it cannot work on wine:
wine-cuda-z.jpg
linux 5.8.0-43 ubuntu 20.04.1

Code: Select all

Tue Sep 10 18:01:13 2024       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.60.13    Driver Version: 525.60.13    CUDA Version: 12.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0  On |                  N/A |
| N/A   52C    P0    21W /  N/A |    434MiB /  6144MiB |     69%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       913      G   /usr/lib/xorg/Xorg                271MiB |
|    0   N/A  N/A      1159      G   /usr/bin/gnome-shell               28MiB |
|    0   N/A  N/A      1372      G   ...loginclient --cmd=autorun       10MiB |
|    0   N/A  N/A      1468      G   ...nlogin/bin/sunloginclient        2MiB |
|    0   N/A  N/A      1507      G   ...E115CD877BF1A1EC1DB5AC389        1MiB |
|    0   N/A  N/A      4727      C   ./CUDA-Z-0.10.251-32bit.run       116MiB |
+-----------------------------------------------------------------------------+

Code: Select all

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Mon_Oct_24_19:12:58_PDT_2022
Cuda compilation tools, release 12.0, V12.0.76
Build cuda_12.0.r12.0/compiler.31968024_0
game12138
Level 2
Level 2
Posts: 23
Joined: Wed Oct 10, 2018 10:35 pm

Re: How can cuda work under wine

Post by game12138 »

it can work , nvcuda need libc6 version 2.34 or newer
Locked