-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Update get_pointer to return T* for target::device specialized accessor. #8874
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
…from definition of the value_type in mode_read, which defines the type as a const of the accessor type. In a number of situations including the one involved in this PR and creating multi_ptr from the accessor of the initial type, this lead to an error for not being able to cast from const to non const pointer type.
sycl/include/sycl/multi_ptr.hpp
Outdated
: multi_ptr(detail::cast_AS<decorated_type *>( | ||
Accessor.template get_multi_ptr<DecorateAddress>().get())) {} |
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.
: multi_ptr(detail::cast_AS<decorated_type *>( | |
Accessor.template get_multi_ptr<DecorateAddress>().get())) {} | |
: multi_ptr(Accessor.template get_multi_ptr<DecorateAddress>()) {} |
that's likely to insert an unnecessary cast otherwise
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.
Thanks @Naghasan. I addressed un-necessary casting using get_decorated
. Removing get as suggested failed to work for a number of combinations of address_space
and decorated
values.
@mmoadeli, please, resolve merge conflicts. |
@intel/llvm-gatekeepers friendly request to merge this PR please |
…cialized accessor. (intel#8874)" This reverts commit 712cb4e.
This patch fixes compilation error in fpga_lsu.cpp and fpga_latency_control_lsu.cpp. Tested locally with open-source and closed-source compilers. Currently there is no external testing with the accelerator device in open source.
async_work_group_copy
ingroup.hpp
andnd_item.hpp
asglobal_ptr<const>
multi_ptr<T>
tomulti_ptr<const T>
is_native_op
to cover bothconst
andnon-const
types.