Skip to content
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

Enable multi-processing in CPU TBE micro-benchmarks #3753

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

excelle08
Copy link
Contributor

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

Copy link

netlify bot commented Feb 28, 2025

Deploy Preview for pytorch-fbgemm-docs ready!

Name Link
🔨 Latest commit f1c9a3c
🔍 Latest deploy log https://app.netlify.com/sites/pytorch-fbgemm-docs/deploys/67c20c889b5b67000872b92f
😎 Deploy Preview https://deploy-preview-3753--pytorch-fbgemm-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70216194

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D70216194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants