4 ms·
Will I have full access to the GPU?
by mfatica 7y ago
Will I have full access to the GPU?
- adzm 7y agoSince it runs on hyperv I would hope so, but hard to find any official sources confirming that or not.
- romanovcode 7y agoHyper-V machines do not have access to GPU, previous implementation is legacy and cannot be selected anymore. No one knows when the new implementation is going live.
- mfatica 7y agoSo it sounds like maybe-yes? My use case is machine learning. I have an AMD GPU and tensorflow is supported through ROCm, but ROCm only runs under ubuntu. Currently I dual boot Windows/Ubuntu but would love to be able to stay in Windows.
- vetinari 7y agoDirect GPU access requires way more than just virtual machine. You would need PCIe pass through, so the VM could control the GPU. For that, you would need either separate GPU, or a GPU that supports SR-IOV, and a board that supports IOMMU. ROCm specifically is not only userland, but also a kernel driver (amdkfd/amdgpu). To use it, you are going to dual boot into native Linux for a while.
- mfatica 7y agoAh bummer. Well hopefully someday soon the Windows software catches up
- withinrafael 7y agoNot true. Hyper-V supports Discrete Device Assignment [1] and therefore GPUs, USB hosts, etc. Where you'll run into issues is on the NVIDIA side. They deliberately cripple their consumer drivers to prevent use in virtual environments to extract licensing dollars. (Haven't tried AMD but last I remember, their cards don't support being pushed around by the IOMMU. Could be wrong.) [1] https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/deploy/deploying-graphics-devices-using-dda https://docs.microsoft.com/en-us/windows-server/virtualizati...
- tym0 7y agoBased on this FAQ, no. https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq#can-i-access-the-gpu-in-wsl-2-are-there-plans-to-increase-hardware-support https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq#can-i-...
- zamalek 7y agoNote that during the talk they said they heard the cries for GPU access loud and clear (they mentioned AI). It will hopefully come later.