Skip to content
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

Check/mention permissions in initialization error message #168

Open
rashidrafeek opened this issue Apr 6, 2022 · 3 comments
Open

Check/mention permissions in initialization error message #168

rashidrafeek opened this issue Apr 6, 2022 · 3 comments
Labels
enhancement New feature or request libraries Things about libraries and how we use them.

Comments

@rashidrafeek
Copy link

I am using a hardware which seems to be supported (Processor with code name Coffee Lake):

julia> versioninfo()
Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4
  JULIA_NUM_PRECOMPILE_TASKS = 8

But I am getting the following error while trying to use oneAPI:

julia> using oneAPI
┌ Error: No compatible oneAPI driver implementation found.
│ Your hardware probably is not supported by any oneAPI driver.
│ 
│ oneAPI.jl currently only supports the Intel Compute runtime,
│ consult their README for a list of compatible hardware:
│ https://github.com/intel/compute-runtime#supported-platforms
└ @ oneAPI.oneL0 ~/.julia/packages/oneAPI/BmdFb/lib/level-zero/oneL0.jl:95
@maleadt
Copy link
Member

maleadt commented Apr 6, 2022

The problem is that the error thrown by oneAPI here can actually be caused by a variety of reasons. One can be that you don't have the necessary permissions to access the device nodes in /dev/dri*. Could you verify that? If that's the case, can you strace Julia doing using oneAPI and post that log?

@rashidrafeek
Copy link
Author

Thanks for the info. I tried the same and it was a permission issue as you suggest. The issue was solved by adding myself to the video group following the instruction here.

Would it be good to modify the error message to account for this case? If you feel its not worth it, feel free to close this issue.

@maleadt
Copy link
Member

maleadt commented Apr 6, 2022

Yes, we should probably include that in the error message; I'll leave this issue open until we do.

@maleadt maleadt changed the title Incompatible error even though hardware is supported Check/mention permissions in initialization error message Apr 6, 2022
@maleadt maleadt added enhancement New feature or request libraries Things about libraries and how we use them. labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request libraries Things about libraries and how we use them.
Projects
None yet
Development

No branches or pull requests

2 participants