Skip to content

[SYCL] Implement sycl_khr_{static, dynamic}_addrspace_cast extensions #18521

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 5 commits into from
Jun 11, 2025

Conversation

0x12CC
Copy link
Contributor

@0x12CC 0x12CC commented May 16, 2025

Implement the extensions defined in KhronosGroup/SYCL-Docs#650.

@0x12CC 0x12CC requested a review from a team as a code owner May 16, 2025 20:41
@0x12CC 0x12CC requested a review from sergey-semenov May 16, 2025 20:41
@0x12CC 0x12CC temporarily deployed to WindowsCILock May 16, 2025 20:42 — with GitHub Actions Inactive
@0x12CC 0x12CC temporarily deployed to WindowsCILock May 16, 2025 21:08 — with GitHub Actions Inactive
@0x12CC 0x12CC temporarily deployed to WindowsCILock May 16, 2025 21:08 — with GitHub Actions Inactive
@0x12CC 0x12CC temporarily deployed to WindowsCILock May 16, 2025 21:17 — with GitHub Actions Inactive
@sarnex sarnex closed this May 16, 2025
@sarnex sarnex reopened this May 16, 2025
@sarnex
Copy link
Contributor

sarnex commented May 16, 2025

Close/reopen so CI runs with the latest changes, needed to fix build

@sarnex sarnex temporarily deployed to WindowsCILock May 16, 2025 22:38 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock May 16, 2025 23:22 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock May 16, 2025 23:22 — with GitHub Actions Inactive
@0x12CC 0x12CC temporarily deployed to WindowsCILock May 20, 2025 18:41 — with GitHub Actions Inactive
@0x12CC
Copy link
Contributor Author

0x12CC commented May 20, 2025

Thanks for the review, @dyniols. I've moved the macro definitions as suggested. Please let me know if you'd like me to make any other changes.

@0x12CC 0x12CC requested a review from dyniols May 20, 2025 18:41
@0x12CC 0x12CC temporarily deployed to WindowsCILock May 20, 2025 19:13 — with GitHub Actions Inactive
@0x12CC 0x12CC temporarily deployed to WindowsCILock May 20, 2025 19:25 — with GitHub Actions Inactive
@0x12CC 0x12CC temporarily deployed to WindowsCILock May 20, 2025 19:51 — with GitHub Actions Inactive
@0x12CC 0x12CC temporarily deployed to WindowsCILock May 20, 2025 19:51 — with GitHub Actions Inactive
Copy link
Contributor

@dyniols dyniols left a comment

Choose a reason for hiding this comment

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

LGTM!

@0x12CC
Copy link
Contributor Author

0x12CC commented May 29, 2025

@intel/llvm-reviewers-runtime, @sergey-semenov, friendly ping.

template <access::address_space Space, typename ElementType>
multi_ptr<ElementType, Space, access::decorated::no>
dynamic_addrspace_cast(ElementType *ptr) {
return ext::oneapi::experimental::dynamic_address_cast<Space>(ptr);
Copy link
Contributor

@steffenlarsen steffenlarsen Jun 2, 2025

Choose a reason for hiding this comment

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

As an initial solution, I think we can roll with this, but optimally I would like us to flip this dependency eventually. We want this to replace the experimental interfaces, so if we instead have those depend on this extension (which is stable) we can deprecate and remove the experimental ones without too much of a hassle.

Granted, it relies on this not being under the unfinished extension guard.

@dm-vodopyanov dm-vodopyanov changed the title Implement sycl_khr_{static, dynamic}_addrspace_cast extensions [SYCL] Implement sycl_khr_{static, dynamic}_addrspace_cast extensions Jun 10, 2025
@0x12CC 0x12CC temporarily deployed to WindowsCILock June 10, 2025 21:07 — with GitHub Actions Inactive
@0x12CC 0x12CC temporarily deployed to WindowsCILock June 10, 2025 22:07 — with GitHub Actions Inactive
@0x12CC 0x12CC temporarily deployed to WindowsCILock June 10, 2025 22:07 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen merged commit 57bdbe3 into intel:sycl Jun 11, 2025
23 checks passed
@0x12CC 0x12CC deleted the sycl_khr_addrspace_cast branch June 11, 2025 14:20
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.

4 participants