Skip to content

[SYCL] Support sycl_khr_default_context - #15645

Merged
martygrant merged 9 commits into
intel:syclfrom
KornevNikita:khr-default-context
Feb 24, 2025
Merged

martygrant merged 9 commits into
intel:syclfrom
KornevNikita:khr-default-context

Conversation

@KornevNikita

Copy link
Copy Markdown
Contributor

Spec: KhronosGroup/SYCL-Docs#624
sycl-cts: KhronosGroup/SYCL-CTS#960

This patch is intended to be merged only when there are sycl-cts tests and the ratified khr extension.

Spec: KhronosGroup/SYCL-Docs#624
sycl-cts: KhronosGroup/SYCL-CTS#960

This patch is intended to be merged only when there are sycl-cts tests
and the ratified khr extension.
@gmlueck

gmlueck commented Oct 10, 2024

Copy link
Copy Markdown
Contributor

sycl-cts: KhronosGroup/SYCL-CTS#960

This patch is intended to be merged only when there are sycl-cts tests and the ratified khr extension.

It looks like those tests are for the oneAPI extension ext_oneapi_get_default_context not for the KHR extension khr_get_default_context. We should have tests for the KHR extension.

@KornevNikita

Copy link
Copy Markdown
Contributor Author

It looks like those tests are for the oneAPI extension ext_oneapi_get_default_context not for the KHR extension khr_get_default_context. We should have tests for the KHR extension.

@gmlueck as far as I understand you said that there is no sense to have sycl_ext_oneapi_default_context tests and we should add sycl_khr_oneapi_default_context instead. I thought Michael will update his PR to reflect it. Am I wrong? @0x12CC

@gmlueck

gmlueck commented Oct 10, 2024

Copy link
Copy Markdown
Contributor

@gmlueck as far as I understand you said that there is no sense to have sycl_ext_oneapi_default_context tests and we should add sycl_khr_oneapi_default_context instead. I thought Michael will update his PR to reflect it. Am I wrong? @0x12CC

Oh, I see. If @0x12CC is going to update KhronosGroup/SYCL-CTS#960, then everything is good.

@0x12CC

0x12CC commented Oct 12, 2024

Copy link
Copy Markdown
Contributor

Sorry, I missed this discussion earlier. I've updated KhronosGroup/SYCL-CTS#960 to test the KHR extension instead.

@gmlueck

gmlueck commented Oct 17, 2024

Copy link
Copy Markdown
Contributor

@KornevNikita now that KhronosGroup/SYCL-CTS#960 is updated, is there some way for you to check that the changes in this PR pass those tests? The Khronos SYCL WG is waiting for us to say that we have an implementation that passes those tests. Once we can say that, I think we can move forward with finalizing the KHR specification.

@KornevNikita

Copy link
Copy Markdown
Contributor Author

@gmlueck is it enough to say "yes, we can pass them" or we need some result available online?

@gmlueck

gmlueck commented Oct 17, 2024

Copy link
Copy Markdown
Contributor

@gmlueck is it enough to say "yes, we can pass them" or we need some result available online?

I think the WG will trust us, so I think it is sufficient to say "yes, we pass them". Of course, we really should run the tests to make sure that they do pass.

@KornevNikita

Copy link
Copy Markdown
Contributor Author

@gmlueck okay, then I'll check that and provide an update.

@KornevNikita

Copy link
Copy Markdown
Contributor Author

@gmlueck yes, we can pass new tests with this patch.

@KornevNikita
KornevNikita marked this pull request as ready for review December 17, 2024 10:12
@KornevNikita
KornevNikita requested a review from a team as a code owner December 17, 2024 10:12
@KornevNikita

Copy link
Copy Markdown
Contributor Author

@gmlueck the spec change was merged, now this also can be merged, right?

@gmlueck

gmlueck commented Dec 17, 2024

Copy link
Copy Markdown
Contributor

@gmlueck the spec change was merged, now this also can be merged, right?

The spec wasn't ratified yet. That will happen (probably) in the middle of January. It's very unlikely that the spec will change between now and the middle of January, so it's probably safe to merge this PR. However, there is still a chance that it might change. Is it difficult to keep the PR open until the spec is officially ratified?

@KornevNikita
KornevNikita marked this pull request as draft December 17, 2024 14:32
@KornevNikita

Copy link
Copy Markdown
Contributor Author

@gmlueck the spec change was merged, now this also can be merged, right?

The spec wasn't ratified yet. That will happen (probably) in the middle of January. It's very unlikely that the spec will change between now and the middle of January, so it's probably safe to merge this PR. However, there is still a chance that it might change. Is it difficult to keep the PR open until the spec is officially ratified?

Of course, I just wanted to check how the process works.

@KornevNikita
KornevNikita marked this pull request as ready for review February 11, 2025 16:15
@KornevNikita

Copy link
Copy Markdown
Contributor Author

@KseniyaTikhomirova could you please take a look?

Comment thread sycl/source/platform.cpp Outdated

@KseniyaTikhomirova KseniyaTikhomirova left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

what will happen with ext_oneapi_get_default_context then? Will it be deprecated?

@AlexeySachkov

Copy link
Copy Markdown
Contributor

what will happen with ext_oneapi_get_default_context then? Will it be deprecated?

Good question. I think that deprecating it is the right way to go, but we need to double-check that it doesn't provide anything extra besides what we have in the khr counterpart and still want to maintain.

@KornevNikita

Copy link
Copy Markdown
Contributor Author

@KseniyaTikhomirova @AlexeySachkov could you please merge?

@KseniyaTikhomirova

Copy link
Copy Markdown
Contributor

@KornevNikita I do not have privileges to merge.
@intel/llvm-gatekeepers could you please merge this PR?

@martygrant
martygrant merged commit ed8b38e into intel:sycl Feb 24, 2025
@gmlueck

gmlueck commented Feb 24, 2025

Copy link
Copy Markdown
Contributor

what will happen with ext_oneapi_get_default_context then? Will it be deprecated?

Good question. I think that deprecating it is the right way to go, but we need to double-check that it doesn't provide anything extra besides what we have in the khr counterpart and still want to maintain.

I also agree that we should deprecate the oneapi version. The oneapi version doesn't have any "extra" functionality beyond the KHR version.

@KornevNikita

Copy link
Copy Markdown
Contributor Author

I've created a draft PR to deprecate it: #17135

This branch was previously deployed

1 inactive deployment
WindowsCILock — b39e1df4 Deployed Feb 21, 2025 by KornevNikita
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.

6 participants