mirror of
https://github.com/games-on-whales/gow.git
synced 2026-10-15 21:02:02 +00:00
[PR #331] [MERGED] base: fix misleading log message in 30-nvidia.sh for container toolkit path #310
Labels
No labels
bug
enhancement
enhancement
github_actions
good first issue
help wanted
help wanted
invalid
needs testers
pull-request
question
x11-images
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/gow#310
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/gow/pull/331
Author: @JBailes
Created: 5/3/2026
Status: ✅ Merged
Merged: 5/12/2026
Merged by: @JBailes
Base:
master← Head:fix/nvidia-toolkit-log-message📝 Commits (3)
883fd95base: prefer host-injected nvrtc over baked-in CUDA 11.0, fix toolkit log message096559eci: fix fork detection in docker-build-and-publish workflowf217f24ci: include variant suffix in fork-PR base image artifact lookup📊 Changes
3 files changed (+52 additions, -16 deletions)
View changed files
📝
.github/workflows/docker-build-and-publish.yml(+22 -14)📝
images/base/build-fedora/overlay/etc/cont-init.d/30-nvidia.sh(+15 -1)📝
images/base/build/overlay/etc/cont-init.d/30-nvidia.sh(+15 -1)📄 Description
Summary
"assuming it's using the nvidia driver volume"— the opposite of what's happeninglibnvrtc.so(registered in ldconfig outside/usr/local/nvidia/lib) over the baked-in CUDA 11.0 versiongithub.repositoryis always the base repo name even for fork PRs, so fork detection was always false and all PRs tried to push toghcr.io/games-on-whales, failing withdeniedfor external contributorsChanges
images/base/build*/overlay/etc/cont-init.d/30-nvidia.shFix log message on the toolkit path (
libnvidia-allocator.so.1present, no/usr/nvidiavolume).After
ldconfigruns, check if alibnvrtc.sois registered in the system cache from outside/usr/local/nvidia/lib— i.e. injected by the toolkit from the host's CUDA installation. If found, symlink it over the baked-in CUDA 11.0 version sogst-cudapicks up the newer one automatically.Background:
gst-cudaloadslibnvrtc.sovialdconfigand treatsnvrtcGetCUBIN*as optional — without them CUBIN is disabled but PTX still works and nvcodec encoding is unaffected. The image shipslibnvrtc.so.11.0(CUDA 11.0) as a fallback;nvrtcGetCUBINSize/nvrtcGetCUBINwere added in CUDA 11.1. On hosts with a full CUDA toolkit, the toolkit injects the host'slibnvrtcat a standard system path — this change makes that version win over the baked-in 11.0..github/workflows/docker-build-and-publish.ymlFix fork PR detection.
github.repositoryis always the base repo (games-on-whales/gow) even when the PR comes from a fork, so the previousif github.repository == games-on-whales/gowcheck was always true —is_forkwas never set, and the build always tried to push toghcr.io/games-on-whales. For fork contributors whoseGITHUB_TOKENis read-only, this produceddenied: installation not allowed to Write organization package.Fix: compare
github.event.pull_request.head.repo.full_nameagainstgithub.repositoryonpull_requestevents. Push-to-master behaviour is unchanged.Note: this fix takes effect once merged to master — it cannot retroactively fix CI on the current PR run since fork PRs execute the workflow from the base repo.
Test plan
ghcr.io/games-on-whalesPreferring host nvrtc, gst-cuda getshave_cubin = TRUE/usr/nvidia): no change in behaviour🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.