Skip to content

Conversation

@Skylion007
Copy link
Collaborator

@Skylion007 Skylion007 commented Nov 4, 2022

Related to #88512 , but for ATen. This should reduce a number of copies and inefficient atomic smart pointer increments.

cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel @VitalyFedyunin @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 4, 2022

🔗 Helpful Links

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

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

❌ 1 Failures

As of commit 4631b3f:

The following jobs have failed:

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

@github-actions github-actions bot added module: cpu CPU specific problem (e.g., perf, algorithm) oncall: quantization Quantization support in PyTorch labels Nov 4, 2022
@Skylion007 Skylion007 force-pushed the skylion007-aten-fix-move branch from 009d51f to b6ec53d Compare November 4, 2022 19:24
@Skylion007 Skylion007 force-pushed the skylion007-aten-fix-move branch from b6ec53d to 136ee1e Compare November 4, 2022 19:54
@Skylion007 Skylion007 marked this pull request as draft November 4, 2022 22:36
@Skylion007 Skylion007 marked this pull request as ready for review November 7, 2022 23:00
@Skylion007 Skylion007 marked this pull request as draft November 7, 2022 23:20
@Skylion007 Skylion007 force-pushed the skylion007-aten-fix-move branch from 496321a to 136ee1e Compare November 10, 2022 18:14
@Skylion007 Skylion007 marked this pull request as ready for review November 10, 2022 18:24
@Skylion007 Skylion007 force-pushed the skylion007-aten-fix-move branch from d3b0d7b to f139b52 Compare November 10, 2022 18:33
@Skylion007
Copy link
Collaborator Author

@jgong5 Merged master to fix the flake, this PR is ready to be merged assuming all tests pass.

@ezyang
Copy link
Contributor

ezyang commented Nov 13, 2022

@pytorchbot merge

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

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

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

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 2 additional jobs have failed, first few of them are: trunk ,trunk / macos-12-py3-arm64 / test (default, 1, 2, macos-m1-12)

Details for Dev Infra team Raised by workflow job

@Skylion007
Copy link
Collaborator Author

@ezyang Failure here seems to be another infra failure unrelated to this PR.

@Skylion007
Copy link
Collaborator Author

Tracking here: #88968

@ezyang
Copy link
Contributor

ezyang commented Nov 13, 2022

@pytorchbot merge -f "infra failure only"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes).

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

@Skylion007 Skylion007 deleted the skylion007-aten-fix-move branch November 13, 2022 22:28
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
Related to pytorch#88512 , but for ATen. This should reduce a number of copies and inefficient atomic smart pointer increments.

Pull Request resolved: pytorch#88514
Approved by: https://github.com/jgong5, https://github.com/ezyang
pytorchmergebot pushed a commit that referenced this pull request Dec 10, 2022
Applies some more missing std::move found by static analysis. This should improve performance and reduce unnecessary copies. This PR only targets ATen for now.

And before you ask about the edits, std::move is optimal in a ternary operator as copy ellision cannot happen one. The best thing is probably rewriting it as an if else, but ultimately this should be performant enough.
Followup to #88512 and #88514

Pull Request resolved: #89000
Approved by: https://github.com/ezyang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged module: cpu CPU specific problem (e.g., perf, algorithm) oncall: quantization Quantization support in PyTorch open source release notes: quantization release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants