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

Use a generic OpenCL ICD loader. #417

Merged
merged 3 commits into from
Apr 18, 2024
Merged
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
10 changes: 7 additions & 3 deletions src/oneAPI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,14 @@ function __init__()
For the time being, it is recommended to use WSL or Linux instead."""
end

if Sys.islinux()
# ensure that the OpenCL runtime dispatcher finds the ICD files from our artifacts
ENV["OCL_ICD_VENDORS"] = oneL0.NEO_jll.libigdrcl
if oneL0.NEO_jll.is_available()
# ensure that the OpenCL loader finds the ICD files from our artifacts
ENV["OCL_ICD_FILENAMES"] = oneL0.NEO_jll.libigdrcl
end

# XXX: work around an issue with SYCL/Level Zero interoperability
# (see JuliaGPU/oneAPI.jl#417)
ENV["SYCL_PI_LEVEL_ZERO_BATCH_SIZE"] = "1"
end

function set_debug!(debug::Bool)
Expand Down