You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In intel#16871 the
`sycl_ext_codeplay_enqueue_native_command` extensions was extended to
add new `interop_handler` APIs for working with SYCL-Graph.
However, the extension macro was not bumped. This is problematic for
users that want to use the extension with graph support, but also
use older oneAPI releases.
```cpp
CGH.ext_codeplay_enqueue_native_command([=](sycl::interop_handle IH) {
if (IH.ext_codeplay_has_graph() /* is this defined?*/) {
// Graph path
} else {
// Eager path
}
CGH.host_task(...)
```
By bumping the feature test macro, users can write code that supports
old DPC++ versions.
```cpp
CGH.ext_codeplay_enqueue_native_command([=](sycl::interop_handle IH) {
if (IH.ext_codeplay_has_graph() /* is this defined?*/) {
// Graph path
} else
{
// Eager path
}
CGH.host_task(...)
```
0 commit comments