Skip to content

Commit 122df1f

Browse files
przemektmalonkbenzie
authored andcommitted
Add image memory and handle support queries (#17865)
This patch introduces two new SYCL queries for Bindless Images. `get_image_memory_support` returns a vector of supported image backing memory types for a device given an `image_descriptor. `is_image_handle_supported` returns a boolean indicating whether the device supports creation of either a `sampled_image_handle` or `unsampled_image_handle`, given an `image_descriptor` and image backing memory type. Some tests are updated to use these queries to filter out unsupported image properties, e.g. allocating `unorm` channel types on the LevelZero backend. Additionally some fixes are made to the UR HIP device queries that pertain to supported image properties. The HIP queries for `UR_DEVICE_INFO_IMAGE<N>D_MAX_<WIDTH/HEIGHT/DEPTH>` have been amended to remove redundant calls to `hipDeviceGetAttribute` (as this was being called twice unnecessarily, with the same query parameter). The HIP queries for `UR_DEVICE_INFO_MAX_IMAGE_LINEAR_<WIDTH/HEIGHT/PITCH>_EXP` have been amended to return plausible values for the HIP backend (instead of returning `1` for each of these).
1 parent 4918376 commit 122df1f

33 files changed

+2609
-76
lines changed

include/ur_api.h

Lines changed: 173 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

include/ur_api_funcs.def

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

include/ur_ddi.h

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

include/ur_print.h

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)