Commit aeafda3
authored
[SYCL][NewOffloadModel] Enforce default SYCL device library to use old offloading model (#20569)
This pull request enforces the default SYCL device library to always be
built with the old offloading model, regardless of which offloading
model (new or old) is set as the default. This is implemented by adding
`--no-offload-new-driver` to the `device_compile_opts` in
`libdevice/cmake/modules/SYCLLibdevice.cmake`.
The motivation for this change is to address test failures in
`Config/kernel_from_file.cpp` and `SeparateCompile/test.cpp` that occur
when the new offloading model is enabled as the default. These failures
happen because `clang-offload-bundler` does not support extracting
libraries built with the new offloading model.1 parent 703d57e commit aeafda3
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
| 377 | + | |
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | | - | |
| 709 | + | |
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
| |||
0 commit comments