-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Allow building and loading of TBBBind on macOS #1132
Conversation
DLD(__TBB_internal_allocate_binding_handler, allocate_binding_handler_ptr), | ||
DLD(__TBB_internal_deallocate_binding_handler, deallocate_binding_handler_ptr), | ||
DLD(__TBB_internal_apply_affinity, apply_affinity_ptr), | ||
DLD(__TBB_internal_restore_affinity, restore_affinity_ptr), | ||
#endif |
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.
can it be dynamically understood that tbbbind does not have all symbols and "bind"-related symbols are just not set upon loading of tbbbind?
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.
dynamic_link
functionality guarantees that either all of requested symbols are loaded, or none of them, if something is missing. Thus, we shouldn't expect hwloc's cpubind related symbols here in the first place.
Signed-off-by: Isaev, Ilya <ilya.isaev@intel.com>
Signed-off-by: Isaev, Ilya <ilya.isaev@intel.com>
01ec0f8
to
6d3c952
Compare
Description
Current build infrastructure and code base don't allow to build and use TBBBind on macOS, while HWLOC is able to recognize hybrid cores on macOS M1/M2. With this patch user may build TBBBind on macOS and be able to use
tbb::info
namespace to obtain high-level information about the system and limit task_arena accordingly (without actual CPU binding since such functionality is not supported on macOS via HWLOC).Fixes # - issue number(s) if exists
Type of change
Choose one or multiple, leave empty if none of the other choices apply
Add a respective label(s) to PR if you have permissions
Tests
Documentation
Breaks backward compatibility
Notify the following users
List users with
@
to send notificationsOther information