We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9e4ae7 commit b1cef36Copy full SHA for b1cef36
1 file changed
src/oneAPI.jl
@@ -88,6 +88,15 @@ function __init__()
88
else
89
# ensure that the OpenCL loader finds the ICD files from our artifacts
90
ENV["OCL_ICD_FILENAMES"] = oneL0.NEO_jll.libigdrcl
91
+
92
+ # ensure that libsycl's bundled ze_lib finds NEO's libze_intel_gpu via
93
+ # path-based driver discovery (it does not reuse the JLL-loaded module).
94
+ # Required when no system NEO is installed.
95
+ neo_libdir = dirname(oneL0.NEO_jll.libze_intel_gpu)
96
+ ld = get(ENV, "LD_LIBRARY_PATH", "")
97
+ if !occursin(neo_libdir, ld)
98
+ ENV["LD_LIBRARY_PATH"] = isempty(ld) ? neo_libdir : "$neo_libdir:$ld"
99
+ end
100
end
101
102
# XXX: work around an issue with SYCL/Level Zero interoperability
0 commit comments