Skip to content

wkdev-create: Detect incompatible nvidia-ctk and abort #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions scripts/host-only/wkdev-create
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@ try_process_nvidia_gpu() {

local is_nvidia_gpu_available=$(is_nvidia_gpu_installed && [ -f "$(get_nvidia_cdi_config_file)" ] && echo 1 || echo 0)
local podman_argument=("--device" "nvidia.com/gpu=all")
if [[ "${is_nvidia_gpu_available}" -eq 1 ]]; then
if nvidia-ctk --version | head -n1 | grep -qE 'version 1\.1?[0-4]\.[[:digit:]]+$'; then
_abort_ "Broken version of nvidia-ctk detected. Please install nvidia-container-toolkit>=1.15. See: https://github.com/Igalia/webkit-container-sdk/issues/72"
fi
fi
try_process ${1} "Access to NVIDIA GPU on host" ${is_nvidia_gpu_available} ${podman_argument[@]}
}

Expand Down