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
Instead of using sycl::context(const sycl::device &D) constructor
to created cached context, use sycl::queue(const sycl::device &D) and
extract context from the queue.
For capable compiler, i.e. the one that supports
https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/PlatformContext/PlatformContext.adoc
the queue constructor will use platform default context. For other compilers
the sycl::context(D) will get called, so the behavior won't change.
If compiler supports default platform context extension, use that when building the cached.
0 commit comments