There is ``sycl::aspect_selector``, which allows to select devices based on a collection of requested aspects, as well as on the list of rejected aspects. See https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html#table.device.selectors Perhaps this calls for a similar `dpctl.select_device_with_aspects`.
Activity
oleksandr-pavlyk commentedon Aug 25, 2021
Aspect selector in C++ requires specifying required present and required absent aspects to be given at the compile time.
In Python this will be done dynamically. Aspects need to be encoded with strings.
The list of device aspects in SYCL is given in section 4.6.4.3.
Perhaps these could be given as strings. The function can be based on example/python/device_selection.py.
oleksandr-pavlyk commentedon Aug 25, 2021
Also see #309
oleksandr-pavlyk commentedon Sep 7, 2021
This was implemented.
oleksandr-pavlyk commentedon Sep 8, 2021
Implemented with #558