Skip to content

Commit cba5b1f

Browse files
committed
fix: update libnvidia-container to 1.19.0, add version sync guard
libnvidia-container 1.18.2 doesn't know about libnvidia-tileiras.so (new in driver 595), causing CUDA to fail in Docker containers with "driverInitFileInfo result=11". Version 1.19.0 adds this library. Also adds a sync guard to update-versions.yml to ensure libnvidia-container always matches the toolkit version, preventing future mismatches from independent release schedules.
1 parent c2c5cfa commit cba5b1f

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/update-versions.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,18 @@ jobs:
4949
CONTAINER_TOOLKIT="$(curl -u ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} -s https://api.github.com/repos/unraid/nvidia-container-toolkit/releases/latest | jq -r '.tag_name')"
5050
LIBNVIDIA="$(curl -u ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} -s https://api.github.com/repos/unraid/libnvidia-container/releases/latest | jq -r '.tag_name')"
5151
52-
# Exit if no versions are returned
52+
# Ensure libnvidia-container matches toolkit version to prevent mismatches.
53+
# Both repos release in sync; if versions differ, use the toolkit version
54+
# and verify the matching libnvidia-container release exists.
55+
if [ -n "${CONTAINER_TOOLKIT}" ] && [ -n "${LIBNVIDIA}" ] && [ "${CONTAINER_TOOLKIT}" != "${LIBNVIDIA}" ]; then
56+
HTTP_CODE=$(curl -u ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} -s -o /dev/null -w "%{http_code}" \
57+
"https://api.github.com/repos/unraid/libnvidia-container/releases/tags/${CONTAINER_TOOLKIT}")
58+
if [ "${HTTP_CODE}" == "200" ]; then
59+
LIBNVIDIA="${CONTAINER_TOOLKIT}"
60+
fi
61+
fi
62+
63+
# Exit if no versions are returned
5364
if [ -z "${RAW_DATA}" ]; then
5465
exit 1
5566
fi

versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"current": "1.19.0"
2121
},
2222
"libnvidia": {
23-
"current": "1.18.2"
23+
"current": "1.19.0"
2424
}
2525
}
2626
}

0 commit comments

Comments
 (0)