Skip to content

[oneDPL] Indirectly Device Accessible Iterator Customization Point and Public Trait#620

Merged
danhoeflinger merged 60 commits intomainfrom
dev/dhoeflin/passed_directly
May 5, 2025
Merged

[oneDPL] Indirectly Device Accessible Iterator Customization Point and Public Trait#620
danhoeflinger merged 60 commits intomainfrom
dev/dhoeflin/passed_directly

Conversation

@danhoeflinger
Copy link
Copy Markdown
Contributor

@danhoeflinger danhoeflinger commented Apr 3, 2025

Specification for "indirectly device accessible iterator" customization point and public trait. Based upon proposed [RFC].(uxlfoundation/oneDPL#1999)

Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
@danhoeflinger danhoeflinger changed the title [Draft][oneDPL] Passed Directly customization point and public trait [oneDPL] Passed Directly customization point and public trait Apr 4, 2025
@danhoeflinger danhoeflinger marked this pull request as ready for review April 4, 2025 13:20
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Comment thread source/elements/oneDPL/source/parallel_api/execution_policies.rst Outdated
Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
@akukanov akukanov added DPL enhancement New feature or request labels Apr 4, 2025
@danhoeflinger
Copy link
Copy Markdown
Contributor Author

@akukanov All good suggestions... applied. Thanks.

Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
danhoeflinger and others added 2 commits May 1, 2025 13:19
Signed-off-by: Dan Hoeflinger <[email protected]>
Copy link
Copy Markdown

@mmichel11 mmichel11 left a comment

Choose a reason for hiding this comment

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

I have some small suggestions after rereading the latest version. I am ready to approve once these are considered.

Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Signed-off-by: Dan Hoeflinger <[email protected]>
Copy link
Copy Markdown

@mmichel11 mmichel11 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
Copy link
Copy Markdown
Contributor

@akukanov akukanov left a comment

Choose a reason for hiding this comment

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

Below are some formatting comments, after inspecting the rendered HTML page.

Also, to me it seems excessive to italicize every occurrence of the new terms. In principle, it's enough to do once when the term is introduced; see https://oneapi-spec.uxlfoundation.org/specifications/oneapi/v1.4-rev-1/elements/onedpl/source/parallel_api/buffer_wrappers as an example for buffer position objects. I think it is OK to highlight it sometimes again, when the term is sort of reintroduced (perhaps with a link to the original definition).

Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
Comment thread source/elements/oneDPL/source/parallel_api/iterators.rst Outdated
danhoeflinger and others added 2 commits May 5, 2025 08:19
Signed-off-by: Dan Hoeflinger <[email protected]>
@danhoeflinger danhoeflinger merged commit d225957 into main May 5, 2025
3 checks passed
@danhoeflinger danhoeflinger deleted the dev/dhoeflin/passed_directly branch May 5, 2025 20:56
template <typename T>
inline constexpr bool is_indirectly_device_accessible_v = is_indirectly_device_accessible<T>::value;

``template <typename T> oneapi::dpl::is_indirectly_device_accessible`` is a type which has the base characteristic
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would suggest to use "class template" or just "template" instead of type, because is_indirectly_device_accessible is not a "type"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DPL enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants