Please consider adding WSL2 GPU accelerator support
Posted: Sat Oct 16, 2021 5:02 pm
Microsoft has started to support GPU acceleration inside the Windows Subsystem for Linux with version 2 (WSL2). WSL is a sort of Linux container running on Windows, and it's really convenient for development and testing. With WSL2, Microsoft presents a virtual GPU device and sort of proxies the actual Windows GPU driver, and this is supported with a variety of GPUs. They claim to support CUDA fairly well and automatically - in a WSL instance with Windows NVIDIA drivers, you can run CUDA samples automatically. They do not yet support OpenCL (or OpenGL, or Vulkan, I believe), but at least CUDA support is there.
I don't know if it's sufficient for FAH, but would love to hear if it is and if this system of GPU access could be added to the whitelist. Currently FAH does not detect the virtual GPU device due to the blacklist, as it has a new PCI vendor and device code:
The announcement: https://developer.nvidia.com/blog/annou ... r-linux-2/
NVIDIA's CUDA on WSL guide: https://docs.nvidia.com/cuda/wsl-user-guide/index.html
I don't know if it's sufficient for FAH, but would love to hear if it is and if this system of GPU access could be added to the whitelist. Currently FAH does not detect the virtual GPU device due to the blacklist, as it has a new PCI vendor and device code:
Code: Select all
$ lspci -nn
...
d175:00:00.0 3D controller [0302]: Microsoft Corporation Device [1414:008e]
NVIDIA's CUDA on WSL guide: https://docs.nvidia.com/cuda/wsl-user-guide/index.html