-
Notifications
You must be signed in to change notification settings - Fork 769
[NFCI][SYCL] Generalize device_impl
's properties caching
#18476
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
base: sycl
Are you sure you want to change the base?
[NFCI][SYCL] Generalize device_impl
's properties caching
#18476
Conversation
#18477 is a second part of this, but I think it would be clearer to keep it in two PRs. |
98c697f
to
009cc86
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
if constexpr (false) { | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit; Do we actually need this? If all cases using MAP
return, then we shouldn't need the else
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, because MAP
starts with else if
. #else == #if - 1
I think this is better than a simpler #18450 as it allows much easier experiments/tuning on what should be cached and how.