Skip to content

Mention device-node permissions when no oneAPI device is found - #765

Open
ShauryaAttreya37 wants to merge 1 commit into
JuliaGPU:mainfrom
ShauryaAttreya37:device-access-hint
Open

ShauryaAttreya37 wants to merge 1 commit into
JuliaGPU:mainfrom
ShauryaAttreya37:device-access-hint

Conversation

@ShauryaAttreya37

@ShauryaAttreya37 ShauryaAttreya37 commented Nov 11, 2026 •

Copy link
Copy Markdown

Closes #168.

When the user can't open the GPU's render node in /dev/dri (usually because they aren't in the render group), zeInit fails with ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS. That was reported as a generic "Failed to initialize oneAPI" with a backtrace. It now says what to do instead:

┌ 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).

Tested on an Arc A770 with its render node made inaccessible in a sandbox. CI can't trigger this error, so there is no automated test.

@michel2323 michel2323 added the alcf-ci Run ALCF Aurora CI (GitLab) on this fork PR label Nov 11, 2026
@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 63.33333% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.71%. Comparing base (ebbaa28) to head (b264f63).

Files with missing lines Patch % Lines
lib/level-zero/oneL0.jl 63.33% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #765      +/-   ##
==========================================
- Coverage   86.94%   86.71%   -0.24%     
==========================================
  Files          55       55              
  Lines        5195     5163      -32     
==========================================
- Hits         4517     4477      -40     
- Misses        678      686       +8     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@maleadt
maleadt force-pushed the device-access-hint branch from b264f63 to ce2e4f3 Compare December 2, 2026 16:47
@maleadt

maleadt commented Dec 2, 2026

Copy link
Copy Markdown
Member

Thanks for picking this up! I replaced the change with a smaller one: the driver already reports ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS in this case, so it is enough to explain that error rather than inspect /dev/dri ourselves.

When the user cannot open the GPU's render node in /dev/dri, zeInit fails
with ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS, which was reported as a
generic initialization failure with a backtrace. Say instead that the
user needs access to the render node, usually by joining its group.

Closes JuliaGPU#168.
@maleadt
maleadt force-pushed the device-access-hint branch from ce2e4f3 to e88ccde Compare December 3, 2026 05:40

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

alcf-ci Run ALCF Aurora CI (GitLab) on this fork PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check/mention permissions in initialization error message

3 participants