Commit a784431
committed
oneAPI: make in-process NEO discovery real, fix LD_LIBRARY_PATH comment
Setting ENV["LD_LIBRARY_PATH"] inside __init__ cannot affect the running
process's dlopen search paths: glibc captures LD_LIBRARY_PATH once at process
startup, so the stated purpose (letting libsycl's bundled ze_lib find NEO's
libze_intel_gpu in-process) was never served for the current process — only for
child processes that inherit the environment.
dlopen the NEO driver by full path in __init__ so it is resident before libsycl
loads; a later dlopen("libze_intel_gpu.so.1") by libsycl's bundled loader then
resolves to it by soname without a path search. Keep extending LD_LIBRARY_PATH
but correct the comment to say it only covers spawned worker processes. Verified
oneMKL (which loads libsycl and needs NEO discovery) still works.
Addresses PR_REVIEW.md finding #10.1 parent 4374f68 commit a784431
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | | - | |
148 | | - | |
149 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
150 | 163 | | |
151 | 164 | | |
152 | 165 | | |
| |||
0 commit comments