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

Failed to initialize oneAPI #375

Closed
jinz2014 opened this issue Oct 18, 2023 · 1 comment
Closed

Failed to initialize oneAPI #375

jinz2014 opened this issue Oct 18, 2023 · 1 comment

Comments

@jinz2014
Copy link

jinz2014 commented Oct 18, 2023

Please see the message below. Thanks for the troubleshooting.

julia> using oneAPI 
┌ Error: Failed to initialize oneAPI
│   exception =
│    ZeError: driver is not initialized (code 2013265921, ZE_RESULT_ERROR_UNINITIALIZED)
│    Stacktrace:
│      [1] throw_api_error(res::oneAPI.oneL0._ze_result_t)
│        @ oneAPI.oneL0 ~/.julia/packages/oneAPI/Ne5Nd/lib/level-zero/libze.jl:5
│      [2] macro expansion
│        @ ~/.julia/packages/oneAPI/Ne5Nd/lib/level-zero/libze.jl:18 [inlined]
│      [3] zeInit(flags::Int64)
│        @ oneAPI.oneL0 ~/.julia/packages/oneAPI/Ne5Nd/lib/utils/call.jl:24
│      [4] __init__()
│        @ oneAPI.oneL0 ~/.julia/packages/oneAPI/Ne5Nd/lib/level-zero/oneL0.jl:100
│      [5] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
│        @ Base ./loading.jl:1115
│      [6] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
│        @ Base ./loading.jl:1061
│      [7] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
│        @ Base ./loading.jl:1506
│      [8] _require(pkg::Base.PkgId, env::String)
│        @ Base ./loading.jl:1783
│      [9] _require_prelocked(uuidkey::Base.PkgId, env::String)
│        @ Base ./loading.jl:1660
│     [10] macro expansion
│        @ ./loading.jl:1648 [inlined]
│     [11] macro expansion
│        @ ./lock.jl:267 [inlined]
│     [12] require(into::Module, mod::Symbol)
│        @ Base ./loading.jl:1611
│     [13] eval
│        @ ./boot.jl:370 [inlined]
│     [1] eval_user_input(ast::Any, backend::REPL.REPLBackend, mod::Module)
│        @ REPL ~/julia-1.9.3/share/julia/stdlib/v1.9/REPL/src/REPL.jl:153
│     [15] repl_backend_loop(backend::REPL.REPLBackend, get_module::Function)
│        @ REPL ~/julia-1.9.3/share/julia/stdlib/v1.9/REPL/src/REPL.jl:249
│     [16] start_repl_backend(backend::REPL.REPLBackend, consumer::Any; get_module::Function)
│        @ REPL ~/julia-1.9.3/share/julia/stdlib/v1.9/REPL/src/REPL.jl:234
│     [17] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool, backend::Any)
│        @ REPL ~/julia-1.9.3/share/julia/stdlib/v1.9/REPL/src/REPL.jl:379
│     [18] run_repl(repl::REPL.AbstractREPL, consumer::Any)
│        @ REPL ~/julia-1.9.3/share/julia/stdlib/v1.9/REPL/src/REPL.jl:365
│     [19] (::Base.var"#1017#1019"{Bool, Bool, Bool})(REPL::Module)
│        @ Base ./client.jl:421
│     [20] #invokelatest#2
│        @ ./essentials.jl:819 [inlined]
│     [21] invokelatest
│        @ ./essentials.jl:816 [inlined]
│     [22] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
│        @ Base ./client.jl:405
│     [23] exec_options(opts::Base.JLOptions)
│        @ Base ./client.jl:322
│     [24] _start()
│        @ Base ./client.jl:522
└ @ oneAPI.oneL0 ~/.julia/packages/oneAPI/Ne5Nd/lib/level-zero/oneL0.jl:103
@maleadt
Copy link
Member

maleadt commented Oct 18, 2023

Sadly not something we can help with, without you providing more information. At the very least, which version of Julia, oneAPI, and dependent packages. But this Level Zero initialization error is due to the upstream driver not detecting your hardware, so make sure you have supported hardware, https://github.com/intel/compute-runtime#supported-platforms, and that the necessary device nodes are accessible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants