Skip to content
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
9 changes: 9 additions & 0 deletions lib/level-zero/oneL0.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,15 @@ function initialize(; quiet::Bool=false)
functional[] = false
return
end
# The driver could not open the GPU's render node: point at the usual fix rather
# than printing a backtrace.
if err isa ZeError && err.code == RESULT_ERROR_INSUFFICIENT_PERMISSIONS
quiet || @error """Failed to initialize oneAPI: no permission to access the GPU.
Make sure your user can read and write the GPU's render node in /dev/dri,
usually by joining the group that owns it (`render` on most systems)."""
functional[] = false
return
end
# For other errors, still report them as errors
quiet || @error "Failed to initialize oneAPI" exception=(err,catch_backtrace())
functional[] = false
Expand Down
Loading