Skip to content

feat(computer): put Vulkan on the image, with a Venus driver that works on an Apple silicon host - #1813

Merged
edenreich merged 1 commit into
mainfrom
feat/computer-vulkan
Nov 11, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/computer-vulkan

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

The computer image gets Vulkan, so an app on a computer uses the host's GPU when the pod is given one and nobody has to install a driver through user data first.

libvulkan1, mesa-vulkan-drivers and vulkan-tools go on the image, about 145 MB on disk. On arm64 Mesa's Venus driver is replaced by one built with a downstream change for the 16 KiB memory pages of an Apple silicon host. Ubuntu's build fails there with ERROR_OUT_OF_HOST_MEMORY, and an Apple silicon Mac is the one place an arm64 computer gets a GPU today. amd64 keeps Ubuntu's driver.

Found while running the drone footage example of the desktop app (inference-gateway/desktop#537), which had to build its own image for this. inference-gateway/desktop#536 is the other half - giving the pod the GPU device.

Changes

Verified

  • Built for arm64 with task container:build:computer. The venus stage takes under a minute natively
  • On a k3s cluster in a Podman libkrun VM on an M4 Pro, as user infer with nothing installed, vulkaninfo --summary lists Virtio-GPU Venus (Apple M4 Pro) as an integrated GPU ahead of llvmpipe
  • On Docker, where the pod has no GPU, it lists llvmpipe alone

Not verified

  • The multi-arch release build. The arm64 stage runs under emulation on the release runner and will take longer than it did natively
  • The amd64 image was not built
  • The patch is marked a hack by its author and is not upstream. It has to be checked again when Ubuntu moves to a new Mesa
  • A GPU does not make every app faster. FilmCraft exported 300 frames at 4.5 frames a second and 17.5 GB of memory on the GPU, against 6.8 frames a second and 5.7 GB on software rendering

@github-project-automation github-project-automation Bot moved this to Todo in 2026 Nov 11, 2026
@edenreich
edenreich marked this pull request as ready for review November 11, 2026 19:33
@edenreich
edenreich requested a review from a team as a code owner November 11, 2026 19:33
@edenreich
edenreich merged commit 8155517 into main Nov 11, 2026
13 checks passed
@edenreich
edenreich deleted the feat/computer-vulkan branch November 11, 2026 19:43
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.256.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 11, 2026
@edenreich edenreich moved this from Todo to Done in 2026 Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant