-
Notifications
You must be signed in to change notification settings - Fork 787
[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
Conversation
There was a problem hiding this 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.
@wangdi4 friendly ping. |
cba0c8c
to
acc0bee
Compare
#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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
There was a problem hiding this 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.
@wangdi4 Could you please fix formatting issue. |
@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:
Link to the logs - https://github.com/intel/llvm/actions/runs/3906152648/jobs/6673997977 SYCL-CTS regression. group_api test fails on validation. @steffenlarsen, FYI. |
Patch which silences unused variable warning #8002 |
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. |
Add
annotated_arg
headers based on sycl_ext_oneapi_annotated_arg.asciidoc in PR #5755