Skip to content
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

[SYCLomatic] Change the pointer_t to element_t to add const qualifier if needed. #2384

Open
wants to merge 4 commits into
base: SYCLomatic
Choose a base branch
from

Conversation

ShengchenJ
Copy link
Contributor

No description provided.

Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
@ShengchenJ ShengchenJ changed the title [SYCLomatic] Fix the const issue in dpct header. [SYCLomatic] Change the pointer_t to element_t to add const if needed. Oct 11, 2024
@ShengchenJ ShengchenJ changed the title [SYCLomatic] Change the pointer_t to element_t to add const if needed. [SYCLomatic] Change the pointer_t to element_t to add const qualifier if needed. Oct 11, 2024
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
Signed-off-by: Chen, Sheng S <sheng.s.chen@intel.com>
@ShengchenJ ShengchenJ closed this Oct 18, 2024
@ShengchenJ ShengchenJ reopened this Oct 18, 2024
@@ -1457,9 +1453,10 @@ template <class T, memory_region Memory> class accessor<T, Memory, 2> {
accessor(typename std::enable_if<M != local, const accessor_t>::type &acc)
: accessor(acc, acc.get_range()) {}
accessor(const accessor_t &acc, const sycl::range<2> &in_range)
: accessor(
acc.template get_multi_ptr<sycl::access::decorated::no>().get(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add deprecated message.

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.

3 participants