You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
With CDI support added in BuildKit moby/buildkit#4056, we need to request GPUs when creating a container builder.
This is necessary on WSL for Nvidia GPUs because there is no linux drivers available that we could install in BuildKit container during OnDemand setup. Mounting /usr/lib/wsl works https://github.com/docker/buildx/compare/master...crazy-max:buildx:driver-ctn-mount-wsl-lib?expand=1 but this is not desired and could be error prone if a remote context/builder is used. So instead we can make a device request when creating the container builder.
Can be tested by creating a BuildKit container with ubuntu base:
With CDI support added in BuildKit moby/buildkit#4056, we need to request GPUs when creating a container builder.
This is necessary on WSL for Nvidia GPUs because there is no linux drivers available that we could install in BuildKit container during
OnDemandsetup. Mounting/usr/lib/wslworks https://github.com/docker/buildx/compare/master...crazy-max:buildx:driver-ctn-mount-wsl-lib?expand=1 but this is not desired and could be error prone if a remote context/builder is used. So instead we can make a device request when creating the container builder.Can be tested by creating a BuildKit container with ubuntu base:
You can use
crazymax/buildkit:ubuntufor testing on WSL with Nvidia GPU: