Skip to content

[SYCL] Print supported SG sizes in sycl-ls --verbose #9481

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 4 commits into from
May 31, 2023

Conversation

aelovikov-intel
Copy link
Contributor

And use that as dynamic features in our SYCL End-to-End tests framework.

And use that as dynamic features in our SYCL End-to-End tests framework.
@aelovikov-intel aelovikov-intel requested a review from a team as a code owner May 16, 2023 16:15
@aelovikov-intel
Copy link
Contributor Author

I'm not sure if that really belongs to sycl-ls (and if so, what else does) so uploading it mostly to start the discussion.

@steffenlarsen
Copy link
Contributor

I'm not sure if that really belongs to sycl-ls (and if so, what else does) so uploading it mostly to start the discussion.

I definitely think it does! Supported sub-group sizes share some behavior with aspects and is a device-specific thing. Having an easy way to get it for a given device without having to write a custom program every time could be super-useful!

@gmlueck
Copy link
Contributor

gmlueck commented May 16, 2023

This seems like a useful extension. Do we have any documentation for the "REQUIRE" syntax that we use in our e2e tests? It seems like that would be useful for people writing tests, otherwise they won't know about this new feature.

@aelovikov-intel
Copy link
Contributor Author

Do we have any documentation

I'm in the middle of changing the LIT infrastructure in a significant way and will work on updating the docs once everything is finalized and implemented (probably about a week or two from today).

@Pennycook
Copy link
Contributor

I definitely think it does! Supported sub-group sizes share some behavior with aspects and is a device-specific thing. Having an easy way to get it for a given device without having to write a custom program every time could be super-useful!

I agree. Users are already requesting this, and so we could even consider this the first step towards implementing #9104.

@aelovikov-intel aelovikov-intel temporarily deployed to aws May 16, 2023 17:05 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel temporarily deployed to aws May 16, 2023 17:37 — with GitHub Actions Inactive
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Very nice work! I have a couple of comments, but they could as well be future work.

@@ -1,3 +1,4 @@
// REQUIRES: sg-8
Copy link
Contributor

Choose a reason for hiding this comment

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

This is great! I do wonder if we could maybe also add a way for the test-config to tell us what a (common?) supported sub-group size is, so we could for example pass that to the test (e.g. as a -D definition) so we don't have to guess at a sub-group size when writing tests like this.

Not directly related to this, but it's something to think about.

@aelovikov-intel
Copy link
Contributor Author

@intel/dpcpp-esimd-reviewers , can you take a look at the missing esimd_emulator's support for this?

@turinevgeny
Copy link
Contributor

@intel/dpcpp-esimd-reviewers , can you take a look at the missing esimd_emulator's support for this?

Addressed in #9612.

@aelovikov-intel aelovikov-intel temporarily deployed to aws May 30, 2023 18:26 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel temporarily deployed to aws May 30, 2023 21:10 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel temporarily deployed to aws May 30, 2023 23:47 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel merged commit 1251517 into intel:sycl May 31, 2023
@aelovikov-intel aelovikov-intel deleted the sycl-ls-sg-sizes branch May 31, 2023 03:28
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.

5 participants