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
Enable use of default platform context extension (#627)
* Enable use of default platform context extension
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.
* Use rfind instead of index to find latest occurrance of usm_type in pickle bytes
* Make sure that testing is done with host device enabled
0 commit comments