Enable multi-processing in CPU TBE micro-benchmarks #3753
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Enable SPEC-like multi-processing benchmarking in FBGEMM CPU TBE micro-benchmarks.
Changes to the following benchmarks:
nbit-cpu
Added the following options:
--copies <N>
Spawn N worker processes running CPU TBE benchmark in parallel, each of which processes the same set of TBE tables.--sweep
If this flag is set and--copies
is set to greater than 1, this benchmark will run sweep experiments from 1 to N parallel copies.nbit-device-with-spec
Added the following options:
--cpu-copies <N>
Spawn N worker processes running CPU TBE benchmark in parallel, each using the same set of tables. This parameter is meaningful only when--use-cpu
is set.Differential Revision: D70216194