-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding std::vector<T, usm_allocator>::iterator to is_passed_directly …
…types (#1438) Changes USM allocator allocated std::vectors from being processed like host-side iterators to being "passed directly" (into sycl kernels) when it is possible to detect them. The C++ standard library implementation may or may not include allocator information in the iterator type. If it does, we can detect such iterators, and treat them as "passed directly". Where it is not possible, they are still treated as host-side iterators and wrapped in a sycl::buffer. Signed-off-by: Dan Hoeflinger <[email protected]>
- Loading branch information
1 parent
5bac408
commit 6a45be7
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters