Skip to content

Conversation

@aelovikov-intel
Copy link
Contributor

  • Fix verifyUSMAllocatorProperties to allow supported properties
  • No need to specialize is_property<...> for USM properties - std::base_of_v<>-based implementation covers that.

* Fix `verifyUSMAllocatorProperties` to allow supported properties
* No need to specialize `is_property<...>` for USM properties -
  `std::base_of_v<>`-based implementation covers that.
sycl::usm_allocator<int, sycl::usm::alloc::shared> allocator{
q,
{sycl::ext::oneapi::property::usm::device_read_only{},
sycl::ext::intel::experimental::property::usm::buffer_location{1}}};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some E2E tests for these properties (see for example Adapters/level_zero/usm_device_read_only.cpp and USM/buffer_location.cpp). Could these get some test cases with the allocator as well? Primarily I want to make sure the properties are being passed correctly to the allocations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with the device_read_only part, but the buffer_location test doesn't verify anything (and is poorly written) and that is an FPGA extension, and we've deprecated whole FPGA support anyway.

@aelovikov-intel
Copy link
Contributor Author

Ping @cperkinsintel . Note that @steffenlarsen is OOO till Monday so he won't be able to review this, I think.

@aelovikov-intel aelovikov-intel merged commit 182779d into intel:sycl Aug 28, 2025
43 of 44 checks passed
@aelovikov-intel aelovikov-intel deleted the usm-allocator branch August 28, 2025 22:03
AlexeySachkov pushed a commit to AlexeySachkov/llvm that referenced this pull request Sep 9, 2025
* Fix `verifyUSMAllocatorProperties` to allow supported properties
* No need to specialize `is_property<...>` for USM properties -
`std::base_of_v<>`-based implementation covers that.
AlexeySachkov added a commit that referenced this pull request Sep 10, 2025
This is a cherry-pick of #19890

* Fix `verifyUSMAllocatorProperties` to allow supported properties
* No need to specialize `is_property<...>` for USM properties -
`std::base_of_v<>`-based implementation covers that.

Patch-by: Andrei Elovikov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants