Commit b2bfe54
committed
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.1 parent 2907977 commit b2bfe54
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
128 | 136 | | |
129 | 137 | | |
130 | 138 | | |
| |||
0 commit comments