Skip to content

Support for GPU's on Rancher-Desktop (MAC) #5561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
donovat opened this issue Sep 21, 2023 · 6 comments
Open

Support for GPU's on Rancher-Desktop (MAC) #5561

donovat opened this issue Sep 21, 2023 · 6 comments
Labels
area/gpu GPU support inside containers kind/enhancement New feature or request platform/macos

Comments

@donovat
Copy link

donovat commented Sep 21, 2023

Problem Description

Request investigation and documentation into supporting GPU's by Rancher-desktop.
It would be great if the Rancher-desktop documentation included help and advice in supporting GPU's on both MAC's (M!) and I expect Windows. - i.e. Do we need to follow the NVIDIA toolkit suggestions for installing with docker? or the suggestion for installing with kubernetes?

GPU support will become an increasing requirement for many applications, especially those using Machine Learning, and python tool kits like Cuda etc.

Proposed Solution

Documentation examples, FAQ's etc .. in supporting GPU's by Rancher Desktop.

Additional Information

No response

@donovat donovat added the kind/enhancement New feature or request label Sep 21, 2023
@donovat
Copy link
Author

donovat commented Sep 21, 2023

ps. Can see that this issue would be linked to CUDA support (WSL) #3968

@jandubois
Copy link
Member

advice in supporting GPU's on both MAC's (M!)

I'm curious how you could utilize the Apple GPUs from a Linux VM. Are there any tools/libraries that would use them?

@donovat
Copy link
Author

donovat commented Sep 22, 2023

Hi @jandubois - in truth I am not sure if you can or cannot. However, some one way have already looked into this problem, and could thus include info into this issue. Either way a doc/FAQ update would help people know the current state of play.

@okamototk
Copy link

@jandubois
Podman already support Mac GPU in container. They use krunkit for VMM to boot virtual machine.
krunkit convert Metal API to Vaulkan API and we can use GPU though Vulkan API on Linux.

This diagram explan well about architecture.
image

But mostry you may use krunkit instead of lima for Mac.

@jandubois
Copy link
Member

But mostly you may use krunkit instead of lima for Mac.

@okamototk Thank you for your suggestion. I don't see us replacing Lima for macOS (or Linux) right now.

I think it would be more likely that Lima could implement a krunkit driver instead, giving you a choice between qemu, vz, and krunkit on macOS. So I would recommend filing an enhancement request on Lima instead.

@nirs
Copy link

nirs commented May 28, 2025

@okamototk you can try minikub krunkit driver from this pr:
kubernetes/minikube#20826

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gpu GPU support inside containers kind/enhancement New feature or request platform/macos
Projects
None yet
Development

No branches or pull requests

5 participants