-
Notifications
You must be signed in to change notification settings - Fork 222
More granular CPU features detection #3170
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: main
Are you sure you want to change the base?
Conversation
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.
General question: Is it possible to add these specs in this info: https://github.com/uxlfoundation/oneDAL/blob/main/cpp%2Fdaal%2Fsrc%2Fservices%2Flibrary_version_info.cpp#L53
?
It could extend future profiler abilities
@Alexandr-Solovev if (__daal_serv_cpu_feature_detect() & daal::CpuFeature::tb3)
{
/// Do something if Turbo Boost Max 3.0 Technology is present on the machine
}
else
{
/// Do something else if Turbo Boost Max 3.0 Technology is _not_ present on the machine
} The modifications in cpu_info are needed just to be able to somehow validate that the checks are working actually. |
My previous comment was premature. But the information about CPU features can be obtained or printed using oneDAL API as it is shown in this test: |
/intelci: run |
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.
Thanks for the updates. Just a nit on naming, but the rest looks good to me.
Pull changes from main
/intelci: run |
Sorry for off topic - but things are now get to correct config and @rakshithgb-fujitsu @keeranroth you now proper approvers. Would work on creating PR for codeowners updates so you would be automatically assigned as relievers for some of the aspects |
Pull changes from main branch
/intelci: run |
/intelci: run |
Description
API for run-time CPU features detection was added to DAAL and oneDAL.
Following features were included into initial list:
Checklist to comply with before moving PR from draft:
PR completeness and readability
Testing
Performance
not applicable