Commit eff167b
authored
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 enabledFile tree
3 files changed
+14
-3
lines changed- .github/workflows
- dpctl-capi/source
- dpctl/tests
3 files changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
211 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
212 | 215 | | |
213 | 216 | | |
214 | 217 | | |
| |||
| 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
0 commit comments