For the runtime dependency, could we also support HIP ? We have a large audience of steam deck users who might want to tinker around with HIP applications. I'd like to share a library my team has been working on called Orochi https://github.com/GPUOpen-LibrariesAndSDKs/Orochi
It handles runtime linking of both nvcuda.dll and amdhip64.dll dynamically. This could be used as part of a wine add-on.

Cheers,
Aaryaman

On Wed, Nov 16, 2022 at 4:39 PM Alois Schlögl <alois.schloegl@gmail.com> wrote:


Am 11/16/22 um 02:21 schrieb Alex Henrie:
> On Sat, Nov 12, 2022 at 9:13 AM Alois Schlögl <alois.schloegl@gmail.com> wrote:
>> I'd like suggesting to merge the 17 patches from
>> wine-staging/patches/nvcuda-CUDA_Support patches into upstream wine
> In my opinion, CUDA for Wine would make the most sense as some kind of
> downloadable add-on (maybe something akin to Wine Mono). But I never
> use CUDA, so it would be up to someone else to make that happen.
>
> -Alex

[1] seems to suggest that this is not possible because cuda is a
"low-level library", and because of that
"...You cant install some windows driver in wine and expect this to
work. ...".

Therefore, adding the nvcuda patches in upstream wine seems to be the
proper approach.

- Alois


[1] https://bugs.winehq.org/show_bug.cgi?id=52528#c4