-
Notifications
You must be signed in to change notification settings - Fork 769
[XPTI][INFRA] Fixes minor standalone build and code issues #18452
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
- Tested std::call_once against current implementation in Framework::instance() and saw no increase in performance overhead - Added cleanup for default stream "xpti.framework" Signed-off-by: Vasanth Tovinkere <[email protected]>
- Switched to EmHash for notifications and this improves performance by 10% Signed-off-by: Vasanth Tovinkere <[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, but I would like to hear @KseniyaTikhomirova's thoughts as well.
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
xptifw/CMakeLists.txt
Outdated
@@ -1,6 +1,6 @@ | |||
cmake_minimum_required(VERSION 3.20.0) | |||
cmake_minimum_required(VERSION 3.5) |
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.
why is it 3.5? is it intentional change?
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.
I was testing with CMake 4.0 and that was the minimum requirement - reverted back to 3.20.0
Signed-off-by: Vasanth Tovinkere <[email protected]>
Failure is unrelated with an open issue already. |
This PR is first of many XPTI changes to address the performance issues that have been reported.
(1) xpti::Framework::instance() - testing the use of std::call_once against current implementation
(2) Added cleanup for default stream "xpti.framework"
(3) Switched to EmHash instead of std::unordered_map that improve notification performance by 10%
Most of the performance overheads are from xptiRegisterObject() and xptiAddMetadata(). This requires changes in the SYCL runtime an will be addressed in a subsequent PR