-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL] Reduce the time to get a kernel from cache #4186
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
Conversation
Signed-off-by: Alexander Flegontov <[email protected]>
/summary:run |
@alexanderfle , could you, please, elaborate in patch description on the idea employed in this patch to enhance run-time of cache operations? |
Is the following sequence correct here upon request to get a kernel?
|
No, because the implementation of that requires changes |
Signed-off-by: Alexander Flegontov <[email protected]>
Signed-off-by: Alexander Flegontov <[email protected]>
…erging Signed-off-by: Alexander Flegontov <[email protected]>
@s-kanaev , ping |
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.
The changes look good.
Though, I believe, we need tests for fast cache here.
Also, this sequence involves two mutexes:
- Lock fast cache mutex
- Check if data available in fast cache:
2.1 If it is, return the data. FINISH + Unlock fast cache mutex
2.2 If not, proceed to p.3 - Unlock fast cache mutex
- Create data bits
- Lock regular cache mutex(-es)
- Insert data into regular cache
- Unlock regular cache mutex(-es)
- Lock fast cache mutex
- Insert data into fast cache
- Unlock fast cache mutex
- Return data bits created in p.4
Hence, we need a thread safety test also.
Signed-off-by: Alexander Flegontov <[email protected]>
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
@bader, ping |
@alexanderfle, pong? |
@bader, no:) I mean, could please have a look at the PR as only authorized user can handle this. |
What do you mean by "handle this"? |
It means: handle the merge |
FYI: There are at least 8 people who can handle the merge (including @againull, who is assigned to review this pull request). |
ok, I see. |
@againull, could you take a look, please? Please, merge if it looks okay to you. |
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
The main idea of this patch is to fast get information from the cache.
Before this patch:
After this patch:
Signed-off-by: Alexander Flegontov [email protected]