-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable limiting chunk sizes to parallel_for
Summary: Very often the input workloads for a parallel_for are variable. In cases where each loop iteration is lightweight, parallel_for had high overhead when there wasn't much work to do. We add a new option `minItemsPerChunk` which controls the sizes of chunks that are divvied for threads to work on when load balancing is kAuto or kStatic. This option will be ignored if a concrete chunk size is provided to makeChunkedRange. Reviewed By: EscapeZero Differential Revision: D49334866 fbshipit-source-id: 62040329e0a6dcf872bc8a27514b821403097ffe
- Loading branch information
1 parent
5c96355
commit c297716
Showing
6 changed files
with
164 additions
and
39 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
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