Commit 2d2426e
authored
Adjusted test for reconstruction of USM host allocation from SUAI (#846)
The dpctl.MemoryUSM* Python object representing USM allocation are
reconstructed from an object exposing __sycl_usm_array_interface__
use USM-pointer queries. When SUAI provides sycl::context object,
the device is inferred using `get_pointer_device`. For host
allocations this may not need to return the device in the queue used
to make the allocation. It will return the first device in the context
to which the allocation is bound instead (per SYCL 2020 spec).1 parent e132320 commit 2d2426e
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| 476 | + | |
476 | 477 | | |
477 | | - | |
| 478 | + | |
478 | 479 | | |
479 | | - | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
480 | 487 | | |
481 | 488 | | |
482 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
483 | 494 | | |
484 | 495 | | |
485 | 496 | | |
| |||
0 commit comments