On WSL2, my GPU literally just gets passed to the VM and I can do everything on it, including CUDA shit. I don't need a second graphics card, I don't need to write obscure configuration files, I don't need to unload the driver or any shit like that. Why the fuck isn't this possible on Linux?
>Why the fuck isn't this possible on Linux?
Lack of paid programmers.
WSL2 is Linux so its clearly possible you turd brain.
huh? i don't get what you are asking. i can definitely use my primary gpu for cuda on linux
That's not what I meant. I want to be able to simply use my GPU on a Windows VM on a Linux host.
oh, WSL is not a full hypervisor. you can't compare it with a full on virtual machine that lets you fully dedicate hardware to the hypervisor. i think in your case, it's just translating the linux program into windows calls, which then runs the windows code on your gpu
Afaik WSL2 is
What you're describing is original WSL, nowadays the default is WSL2 which is a hypervisor
some people have got this working, look up linux gpu passthrough or kvm gpu passthrough. with windows guest OS in qemu it's possible, probably works better on AMD gpus due to better overall drivers.
Brcause microsoft don't want you to use it this way.
I've done this. Just use your inbuilt graphics as your linux graphics card, and pass the nvidia card to the Windows VM
I have to unload the driver before I can do that and that sucks. And I still want to be able to use my graphics card on my host as well?
Its not passing your GPU, if it was you wouldn't have a windows GUI
Its just virtualizing the card, which is possible on linux too
https://wiki.archlinux.org/title/QEMU/Guest_graphics_acceleration#GPU_virtualization
that is doable on linux - to another copy of linux.
You mean like WINE?
WSL2 is just reverse WINE and what you describe is possible on WINE.
why the fuck would you want to use a real windows graphics driver?
doing it for CUDA is beyond retarded and the dx-to-vulkan API translation layers handle games
also isn't nvidia explicitly hostile to things like this?
they probably only allow WSL2 support because it can't be user like a real cluster of hyper-v VMs
AMD cards have hardware support for register shadowing which allows support for things like multiple drivers controlling the gpu at once so it's probably easier to setup for them
no, wsl1 is reverse wine
wsl2 is a lightweight virtual machine whose filesystem is accessible via a 9P network share, accelerated through the same interface to hyper-v qemu uses on windows, and internally communicated with over hyper-v sockets
it is an actual linux kernel, with actual linux drivers, specifically a variant of the one MS uses for azure
wine is just an API translation layer
>doing it for CUDA is beyond retarded and the dx-to-vulkan API translation layers handle games
Don't need games but After Effects.
>also isn't nvidia explicitly hostile to things like this?
dunno
well in the case of adobe shitware there's at least ways to get the CC version of photoshop up and running pretty well through wine
i am not sure on the specifics, if it would work for their other garbage, or if it works on nvidia cards
you could just not use adobe garbageware, sure, the open source/linux alternatives for their shit usually suck but it's not like anything they make is actually any good either
>well in the case of adobe shitware there's at least ways to get the CC version of photoshop up and running pretty well through wine
Lol you can forget about Premiere, let alone After Effects running on Wine. Even 2021 versions of Photoshop barely run and as soon as you want to use Camera Raw you cant use hardware acceleration anymore.
>you could just not use adobe garbageware
Unfortunately not possible. Even Resolve is painful to use on Linux because it lacks x264, x265 support and you'll have to convert everything to raw formats beforehand which is annoying and takes a shitton of space.
oh for fuck's sake
i don't know why multimedia applications don't just blindly load the system install of libav and delegate without introspection the handling of codecs and containers directly to it so they don't legally support patented trash like mpeg shit but still do for anyone who installs a build of ffmpeg distributed from a country that doesn't recognize software patents
Adobe is industry standard. Simple as.
adobe's tolerated at best and is only "industry standard" because of sunk cost and, (much like autodesk) a history filled with anticompetative behavior which has been completely ignored by regulators
hopefully their attempt to acquire figma gets blocked since they're specifically buying it to after part of microsoft ditched adobe products in favor of figma and then developed a really close relationship with the company
>uhmm well it CAN be done in loonix too
>it's isn't done because..... it just isn't okay??
lmao
You can literally do it with wine retard .
Do you just use terminal or do you boot the gui too? I'm looking or work arounds for win 10 home's remote control because win 10 home apparently doesn't come with it.
If you try to do the reverse, it's hard because Windows is being a little bitch.