Skip to content

[SYCL][Doc] Add property list extension spec #4203

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
Oct 6, 2021

Conversation

rolandschulz
Copy link
Contributor

No description provided.

@rolandschulz rolandschulz requested a review from a team as a code owner July 28, 2021 07:35
@bader bader added Documentation Missing documentation for the code, compiler or runtime features, etc. spec extension All issues/PRs related to extensions specifications labels Jul 28, 2021
@bader bader changed the title Add property list extension spec [SYCL][Doc] Add property list extension spec Jul 28, 2021
@keryell
Copy link
Contributor

keryell commented Aug 6, 2021

After looking at the concrete example, I have the feeling this could be simplified according to #4280 (comment)

@mkinsner
Copy link

mkinsner commented Aug 9, 2021

After looking at the concrete example, I have the feeling this could be simplified according to #4280 (comment)

@keryell I don't quite follow what you're suggesting could be simplified, after reading through. Can you please expand slightly?

Copy link
Contributor

@keryell keryell left a comment

Choose a reason for hiding this comment

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

@keryell I don't quite follow what you're suggesting could be simplified, after reading through. Can you please expand slightly?

There is a complex detail description of property implementation and a layer of simplifying _v.
I am wondering whether we cannot come with a simpler API not describing the property type but just focusing on _v + some handling constexpr functions.
Then, since we no longer care about what is foo and just focus on foo_v, why no renaming foo_v just foo?

// This property has one integer non-type parameter.
struct baz {
template<int K>
using value_t = property_value<baz, std::integral_constant<int, K> >;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not directly

Suggested change
using value_t = property_value<baz, std::integral_constant<int, K> >;
using value_t = property_value<baz, K>;

?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

C++ doesn't (yet) support universal template template arguments and therefore we need template arguments to be always types. See also #4280 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

Too bad.

jbrodman
jbrodman previously approved these changes Sep 30, 2021
@rolandschulz
Copy link
Contributor Author

@keryell I don't quite follow what you're suggesting could be simplified, after reading through. Can you please expand slightly?

There is a complex detail description of property implementation and a layer of simplifying _v. I am wondering whether we cannot come with a simpler API not describing the property type but just focusing on _v + some handling constexpr functions. Then, since we no longer care about what is foo and just focus on foo_v, why no renaming foo_v just foo?

Do you agree this question was resolved as part of the discussion on #4280? Summary: we need the type for has_property.

Co-authored-by: Mike Kinsner <[email protected]>
Co-authored-by: Ronan Keryell <[email protected]>
mkinsner
mkinsner previously approved these changes Sep 30, 2021
@keryell
Copy link
Contributor

keryell commented Sep 30, 2021

Do you agree this question was resolved as part of the discussion on #4280? Summary: we need the type for has_property.

Yes, I am good.
Now I am waiting with impatience for a presentation on the big picture. :-)

keryell
keryell previously approved these changes Sep 30, 2021
Copy link
Contributor

@keryell keryell left a comment

Choose a reason for hiding this comment

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

Interesting extension for SYCL

@bader bader dismissed stale reviews from keryell and mkinsner via 4d2651c October 6, 2021 08:14
@bader bader requested review from mkinsner, jbrodman and gmlueck October 6, 2021 08:14
@bader bader merged commit a7da8b4 into intel:sycl Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Missing documentation for the code, compiler or runtime features, etc. spec extension All issues/PRs related to extensions specifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants