Commit 167a4fa
authored
[SYCL] Add fallback support for KernelCompiler loading of ocloc (#18245)
Presently, the KernelCompiler just tries to load whatever ocloc shared
library is in the environment. And if it doesn't find a compatible one,
then it reports that OpenCL C compilation is not supported. But on
Windows this should be more robust, so we are adding fallback support.
If the ocloc shared library in the environment isn't compatible, try the
one in the OneAPI installation.
Signed-off-by: Chris Perkins <[email protected]>1 parent 08c1785 commit 167a4fa
File tree
1 file changed
+27
-15
lines changed- sycl/source/detail/kernel_compiler
1 file changed
+27
-15
lines changedLines changed: 27 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | | - | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
87 | 91 | | |
88 | | - | |
| 92 | + | |
89 | 93 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
94 | 104 | | |
| 105 | + | |
| 106 | + | |
95 | 107 | | |
96 | 108 | | |
97 | 109 | | |
| |||
0 commit comments