-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support machines with more than 1024 cores (#26303)
### Details: - *Because sizeof(cpu_set_t) is a fixed size of 128 bytes, that is the maximum CPU number is 1023. So `sched_getaffinity(0, sizeof(cpu_set_t), mask)` returns error on machines with more than 1024 cores. The solution is that passing in dynamic size to sched_getaffinity() until it returns successfully.* ### Tickets: - *#26140 --------- Co-authored-by: Wanglei Shen <wanglei.shen@intel.com>
- Loading branch information
1 parent
a17efa6
commit 2659786
Showing
3 changed files
with
11 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters