Skip to content

[SYCL] Implement annotated_arg headers #6894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Jan 12, 2023
Merged

Conversation

wangdi4
Copy link
Contributor

@wangdi4 wangdi4 commented Sep 28, 2022

Add annotated_arg headers based on sycl_ext_oneapi_annotated_arg.asciidoc in PR #5755

@wangdi4 wangdi4 requested a review from a team as a code owner September 28, 2022 16:55
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

In general I think this looks good, but we may want to hold back on merging it until the extension has been finalized and merged.

@dm-vodopyanov
Copy link
Contributor

@wangdi4 friendly ping.

@wangdi4 wangdi4 requested review from a team as code owners December 1, 2022 20:24
Comment on lines 71 to 76
#ifdef __SYCL_DEVICE_ONLY__
using global_pointer_t = typename sycl::detail::DecoratedType<
T, access::address_space::global_space>::type *;
#else
using global_pointer_t = T *;
#endif
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder, can we use decorated_global_ptr<T>::pointer here? See 4.7.7.2. Explicit pointer aliases and 4.7.7.1. Multi-pointer class

Copy link
Contributor Author

@wangdi4 wangdi4 Dec 13, 2022

Choose a reason for hiding this comment

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

Changed to using global_pointer_t =typename decorated_global_ptr<T>::pointer;
Have confirmed the compile-time properties are correctly propagated to the kernel argument attribute in output IR.

@AlexeySachkov AlexeySachkov removed the request for review from a team December 12, 2022 15:39
@wangdi4 wangdi4 requested review from AlexeySachkov and steffenlarsen and removed request for AlexeySachkov December 13, 2022 16:15
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Just a few more comments but otherwise I think it's looking good.

Copy link
Contributor

@steffenlarsen steffenlarsen 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 no more concerns. Note that the extension is in review still.

@againull
Copy link
Contributor

againull commented Jan 4, 2023

It looks like extension is merged: #5755

wangdi4 Could you please resolve merge conflicts?

@againull
Copy link
Contributor

againull commented Jan 6, 2023

@wangdi4 Could you please fix formatting issue.

@wangdi4 wangdi4 temporarily deployed to aws January 11, 2023 17:43 — with GitHub Actions Inactive
@wangdi4 wangdi4 temporarily deployed to aws January 12, 2023 07:21 — with GitHub Actions Inactive
@againull againull merged commit 1649fe4 into intel:sycl Jan 12, 2023
@bader
Copy link
Contributor

bader commented Jan 13, 2023

@wangdi4, this PR introduced several issues to post-commit testing (see below). Please, fix ASAP or revert the patch if takes significant time to fix.

Compilation errors:

/home/runner/work/llvm/llvm/build/include/sycl/ext/oneapi/annotated_arg/annotated_arg.hpp:97:40: error: unused parameter 'PropList' [-Werror,-Wunused-parameter]
                const property_list_t &PropList = properties{}) noexcept
                                       ^
/home/runner/work/llvm/llvm/build/include/sycl/ext/oneapi/annotated_arg/annotated_arg.hpp:141:47: error: unused parameter 'proplist' [-Werror,-Wunused-parameter]
                         const PropertyListV &proplist) noexcept
                                              ^
/home/runner/work/llvm/llvm/build/include/sycl/ext/oneapi/annotated_arg/annotated_arg.hpp:198:40: error: unused parameter 'PropList' [-Werror,-Wunused-parameter]
                const property_list_t &PropList = properties{}) noexcept
                                       ^
/home/runner/work/llvm/llvm/build/include/sycl/ext/oneapi/annotated_arg/annotated_arg.hpp:241:47: error: unused parameter 'proplist' [-Werror,-Wunused-parameter]
                         const PropertyListV &proplist) noexcept
                                              ^
4 errors generated.

Link to the logs - https://github.com/intel/llvm/actions/runs/3906152648/jobs/6673997977

SYCL-CTS regression.
I'm not sure if this is related but this is the first commit where this issue appeared. This might be caused by some recent SYCL-CTS changes.
Link to logs - https://github.com/intel/llvm/actions/runs/3904102563/jobs/6670410622.

group_api test fails on validation. @steffenlarsen, FYI.

@romanovvlad
Copy link
Contributor

Patch which silences unused variable warning #8002

@steffenlarsen
Copy link
Contributor

SYCL-CTS regression. I'm not sure if this is related but this is the first commit where this issue appeared. This might be caused by some recent SYCL-CTS changes. Link to logs - https://github.com/intel/llvm/actions/runs/3904102563/jobs/6670410622.

group_api test fails on validation.

I suspect KhronosGroup/SYCL-CTS#457 is the reason. Do we know if this is only a problem for the CUDA backend?

@bader
Copy link
Contributor

bader commented Jan 13, 2023

SYCL-CTS regression. I'm not sure if this is related but this is the first commit where this issue appeared. This might be caused by some recent SYCL-CTS changes. Link to logs - https://github.com/intel/llvm/actions/runs/3904102563/jobs/6670410622.
group_api test fails on validation.

I suspect KhronosGroup/SYCL-CTS#457 is the reason. Do we know if this is only a problem for the CUDA backend?

Unfortunately, we don't run CTS on other platforms. Khronos SYCL-CTS CI builds for SPIR-V devices, but the problem hits the execution.

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.

7 participants