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

[NFCI][SYCL] Remove most uses of ContainsProperty #16103

Merged

Conversation

aelovikov-intel
Copy link
Contributor

First, properties itself has an interface that does exactly that. Second, this trait uses std::tuple which is relatively expensive to instantiate and that happens on top of the normal properties instantation that doesn't use std::tuple anymore.

Remaining uses are related to ConflictingProperties which is ugly enough to be addressed in a separate PR.

First, `properties` itself has an interface that does exactly that.
Second, this trait uses `std::tuple` which is relatively expensive to
instantiate and that happens *on top* of the normal `properties`
instantation that doesn't use `std::tuple` anymore.

Remaining uses are related to `ConflictingProperties` which is ugly
enough to be addressed in a separate PR.
Copy link
Contributor

@maarquitos14 maarquitos14 left a comment

Choose a reason for hiding this comment

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

Just a question, otherwise looks good to me.

ContainsProperty<read_write_mode_key, list>::value ||
ContainsProperty<maxburst_key, list>::value ||
ContainsProperty<wait_request_key, list>::value;
has_one_of<buffer_location_key, awidth_key, dwidth_key, latency_key,
Copy link
Contributor

Choose a reason for hiding this comment

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

buffer_location_key was not present before. Do we need it now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, copy-paste mistake. Thanks for noticing!

@aelovikov-intel aelovikov-intel merged commit c5845a7 into intel:sycl Nov 18, 2024
13 checks passed
@aelovikov-intel aelovikov-intel deleted the properties-ContainsProperty branch November 18, 2024 16:56
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