Commit 5e51373
committed
[CL] Handle INTERMEDIATE binary type
If an OpenCL driver returns `CL_PROGRAM_BINARY_TYPE_INTERMEDIATE`
(defined in the `cl_khr_spir` extension to enable SPIR 1.2 not SPIR-V)
when querying `CL_PROGRAM_BINARY_TYPE` we should handle this gracefully.
This patch maps the `CL_PROGRAM_BINARY_TYPE_INTERMEDIATE` to
`UR_PROGRAM_BINARY_TYPE_NONE`. From the users perspective these are
semantically equivalent as they both require compilation before the
program can be used to create a kernel.1 parent 8a81c82 commit 5e51373
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
262 | 271 | | |
263 | 272 | | |
264 | 273 | | |
| |||
267 | 276 | | |
268 | 277 | | |
269 | 278 | | |
270 | | - | |
271 | | - | |
272 | 279 | | |
273 | 280 | | |
274 | 281 | | |
| |||
0 commit comments