We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4240d5b commit 9abc8e1Copy full SHA for 9abc8e1
1 file changed
root/etc/s6-overlay/s6-rc.d/init-video/run
@@ -54,6 +54,11 @@ if which nvidia-smi >/dev/null 2>&1; then
54
echo "**** Setting up Vulkan ICD for NVIDIA ****"
55
# get vulkan api version
56
VULKAN_API_VERSION=$(ldconfig -p | grep "libvulkan.so" | awk '{print $NF}' | xargs readlink | grep -oE "[0-9]+\.[0-9]+\.[0-9]+")
57
+ # Fallback if pipeline fails
58
+ if [ -z "${VULKAN_API_VERSION}" ]; then
59
+ # version 1.1 or greater allows vulkan-loader to load the driver's dynamic library
60
+ VULKAN_API_VERSION="1.1.0"
61
+ fi
62
mkdir -pm755 /etc/vulkan/icd.d/
63
cat > /etc/vulkan/icd.d/nvidia_icd.json << EOF
64
{
0 commit comments