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

Conversion from raw to multi_ptr should be done with address_space_cast #1366

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

oleksandr-pavlyk
Copy link
Collaborator

We used sycl::multi_ptr constructor instead of
sycl::address_space_cast previsously, and change in KhronosGroup/SYCL-Docs#432 introduced sycl::access:decorated::legacy as the default which is deprecated in SYCL 2020 standard which highlighted the problem.

In using sycl::address_space_cast we specify
sycl::access::decorated::yes.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you opening the PR as a draft?

We used `sycl::multi_ptr` constructor instead of
`sycl::address_space_cast` previsously, and change in
KhronosGroup/SYCL-Docs#432
introduced `sycl::access:decorated::legacy` as the default
which is deprecated in SYCL 2020 standard which highlighted
the problem.

In using `sycl::address_space_cast` we specify
`sycl::access::decorated::yes`.
@github-actions
Copy link

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 85.636%. remained the same when pulling f7eee1e on create-multi_ptr-per-sycl-2020-standard into d85e130 on master.

@github-actions
Copy link

Array API standard conformance tests for dpctl=0.14.6dev4=py310ha25a700_13 ran successfully.
Passed: 916
Failed: 84
Skipped: 119

@oleksandr-pavlyk
Copy link
Collaborator Author

Even before this change, we should have been using now deprecated sycl::make_ptr instead of multi_ptr constructor.

Merging.

@oleksandr-pavlyk oleksandr-pavlyk merged commit 8eab04b into master Aug 25, 2023
34 of 38 checks passed
@oleksandr-pavlyk oleksandr-pavlyk deleted the create-multi_ptr-per-sycl-2020-standard branch August 25, 2023 11:16
@github-actions
Copy link

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

@github-actions
Copy link

Array API standard conformance tests for dpctl=0.14.6dev4=py310ha25a700_13 ran successfully.
Passed: 916
Failed: 84
Skipped: 119

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.

2 participants