rancher-sandbox / rancher-desktop-wsl-distro

Minimal WSL distro for Rancher Desktop
Apache License 2.0
16 stars 8 forks source link

Exploring GPU Support Integration #75

Open shikanime opened 1 year ago

shikanime commented 1 year ago

Hi~👋 I'm presently assessing the feasibility of introducing GPU support to Rancher Desktop, along with gauging the extent of effort required for its implementation. While I'm also actively seeking relevant information, individuals, and discussions that might have already initiated on this topic.

Based on my comprehension of the project, the WSL distribution within Rancher Desktop is rooted in Alpine, featuring multiple Go binaries, if compiled without cgo, should be fine. Within the build.sh script, there are several instances where APK usage could potentially be replaced with APT.

To the best of my knowledge, the anticipated CUDA components are in place within /usr/lib/wsl/lib for seamless operation. However, it appears that certain components have been compiled with a focus on Ubuntu-specific libraries, including glibc, as outlined in the NVIDIA Container Toolkit documentation.

I'm curious whether a transition to Ubuntu could serve as the primary WSL distribution or if it's plausible to maintain both distributions or even directly bring support in the current distribution. It's worth noting that there could be certain network components heavily reliant on a Busybox assumptions which I'm not aware.

jandubois commented 1 year ago

Thank you for your feedback!

It is not really feasible to change the Rancher Desktop distro away from Alpine at this time; a lot of the implementation expects things to be managed by OpenRC and not systemd.

I left some comments about CUDA at https://github.com/rancher-sandbox/rancher-desktop/issues/3968#issuecomment-1502624799. It would be great if somebody could explore if it is possible to get CUDA working with Alpine; we would certainly be interested in supporting this once we know that it is possible at all!

pradhyumna85 commented 1 month ago

@jandubois, Have a look at this project: https://github.com/sgerrand/alpine-pkg-glibc Also see this related thread : https://github.com/sgerrand/alpine-pkg-glibc/issues/199

I think this could help us add support for GPU (cuda)

Let me know what you think.

Ref https://github.com/rancher-sandbox/rancher-desktop/issues/3968