-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL] Cache kernel assert usage #18538
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?
Conversation
if (!KernelNameBasedCachePtr) | ||
return m_KernelUsesAssert.find(KernelName) != m_KernelUsesAssert.end(); |
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.
What conditions could lead to us having a kernel name but no cache associated with it?
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.
An application that hasn't been recompiled since the cache was added to the headers.
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.
Oh, wow, okay.
Would it make sense to mark this as #ifndef __INTEL_PREVIEW_BREAKING_CHANGES
? My thinking is:
- An application must recompile to use the preview library, and will need to recompile after the ABI break;
- In the case where somebody has recompiled, we can skip a branch; and
- Decorating this with the
#ifdef
will make sure it gets taken out at the next ABI break.
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.
Sure, I think it makes sense. Since this is also applicable to the UR kernel cache logic introduced by the original cache PR, I'd rather apply this to both in a separate PR.
Cache whether a kernel uses assertions or not to avoid a set lookup.