Skip to content

[SYCL][E2E] Print features detected by lit #16866

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 3 commits into from
Feb 7, 2025

Conversation

aelovikov-intel
Copy link
Contributor

No description provided.

@aelovikov-intel aelovikov-intel marked this pull request as ready for review January 31, 2025 22:43
@aelovikov-intel aelovikov-intel requested a review from a team as a code owner January 31, 2025 22:43
@aelovikov-intel
Copy link
Contributor Author

This is a bit controversial as the output is noisy. Feel free to vote via thumb up/down.

Copy link
Contributor

@againull againull left a comment

Choose a reason for hiding this comment

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

from the CI log doesn't look noisy

@@ -890,6 +890,13 @@ def open_check_file(file_name):
("%clang", " " + config.dpcpp_compiler + " " + config.c_flags)
)

lit_config.note(
Copy link
Contributor

Choose a reason for hiding this comment

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

How about we print all features only if --verbose / -v is specified?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it would be useful that much. This PR only makes sense if we enable it by default in all our CI jobs, meaning the noise will be there.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it would be useful that much. This PR only makes sense if we enable it by default in all our CI jobs, meaning the noise will be there.

IIUC, we already pass -v to llvm-lit in our CI jobs: https://github.com/intel/llvm/blob/sycl/devops/actions/run-tests/e2e/action.yml#L62.
I don't mind printing features in CI jobs as they would be useful for debugging (it's not that noisy :)). My preference would be to not print features unnecessarily when we invoke llvm-lit locally. We already print device aspects unconditionally and llvm-lit's output (even without --verbose) can be big when we have multiple devices in the environment.

@steffenlarsen
Copy link
Contributor

I think this is a good change. I do understand the concern about noisy output, but the information (in particular the common aspects) is generally hard to otherwise gather and has an important impact on how the testing is done, so the noise at the beginning of the already fairly verbose LIT output seems worth it to me.

@sarnex
Copy link
Contributor

sarnex commented Feb 3, 2025

Seems fine to me too, the location of the extra output is localized.

@aelovikov-intel aelovikov-intel merged commit 7ed4491 into intel:sycl Feb 7, 2025
16 checks passed
@aelovikov-intel aelovikov-intel deleted the print-features branch February 7, 2025 22:09
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