Skip to content

Add conv ops to operator microbenchmark#166331

Closed
jainapurva wants to merge 2 commits intomainfrom
add_conv3d_ops
Closed

Add conv ops to operator microbenchmark#166331
jainapurva wants to merge 2 commits intomainfrom
add_conv3d_ops

Conversation

@jainapurva
Copy link
Contributor

@jainapurva jainapurva commented Oct 27, 2025

Adding conv (conv1d, conv2d, conv3d) to the list of operator microbenchmarks run in the CI script (.ci/pytorch/test.sh), ensuring convolution operators are now benchmarked alongside existing ones.

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 27, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/166331

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 2 New Failures, 2 Unrelated Failures

As of commit c7dd98e with merge base a076b4d (image):

NEW FAILURES - The following jobs have failed:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@jainapurva jainapurva added the ciflow/op-benchmark Trigger microbenchmark for operations. label Oct 27, 2025
@jainapurva jainapurva marked this pull request as ready for review October 29, 2025 23:43
@jainapurva jainapurva requested a review from a team as a code owner October 29, 2025 23:43
@jainapurva jainapurva added the release notes: benchmark release notes category label Oct 29, 2025
return [config for config in config_list if cuda_config not in config]


def remove_cpu(config_list):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious: Why do you need to remove CPU device on those conv ops? Because they are all on backward path?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, as backward tests are not needed for cpu benchmarking, I'm removing cpu tests from the final list

@huydhn
Copy link
Contributor

huydhn commented Oct 30, 2025

Darn, it looks like we need to refresh CPU op benchmark baseline again https://github.com/pytorch/pytorch/actions/workflows/operator_benchmark.yml?query=branch%3Amain

Comment on lines +135 to +146
conv_3d_configs_long = op_bench.cross_product_configs(
IC=[16, 32],
OC=[32, 64],
kernel=[3, 5],
stride=[1, 2],
N=[1],
D=[128],
H=[128],
W=[128],
device=["cpu", "cuda"],
tags=["long"],
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

out of curiosity, does this cover the shapes relevant to the recent regression?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the shapes of regression are covered, but the enablement of AMP is not covered

@jainapurva
Copy link
Contributor Author

@pytorchmergebot merge -i

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 3, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged while ignoring the following 2 checks: operator_benchmark / aarch64-opbenchmark-test / test (cpu_operator_benchmark_short, 1, 1, linux.arm64.m8g.4xlarge), operator_benchmark / x86-opbenchmark-test / test (cpu_operator_benchmark_short, 1, 1, linux.12xlarge)

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorch-bot bot pushed a commit that referenced this pull request Nov 4, 2025
Adding `conv` (conv1d, conv2d, conv3d) to the list of operator microbenchmarks run in the CI script (`.ci/pytorch/test.sh`), ensuring convolution operators are now benchmarked alongside existing ones.
Pull Request resolved: #166331
Approved by: https://github.com/huydhn, https://github.com/jbschlosser
@github-actions github-actions bot deleted the add_conv3d_ops branch December 4, 2025 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/op-benchmark Trigger microbenchmark for operations. ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: benchmark release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants