Skip to content

Conversation

@peterbell10
Copy link
Collaborator

@peterbell10 peterbell10 commented Aug 9, 2023

Stack from ghstack (oldest at bottom):

In almost all cases this is only included for writing the output formatter, which
only uses std::ostream so including <ostream> is sufficient.

The istream header is ~1000 lines so the difference is non-trivial.

cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @mcarilli @ptrblck @leslie-fang-intel @EikanWang @voznesenskym @penguinwu @anijain2305 @Guobing-Chen @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @aakhundov

In almost all cases this is only included for writing the output formatter, which
only uses `std::ostream` so including `<ostream>` is sufficient.

The istream header is ~1000 lines so the difference is non-trivial.

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 9, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit 0fa23bf with merge base d395088 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot bot added the release notes: jit release notes category label Aug 9, 2023
@github-actions github-actions bot added module: cpu CPU specific problem (e.g., perf, algorithm) module: amp (automated mixed precision) autocast NNC module: dynamo labels Aug 9, 2023
@peterbell10 peterbell10 added the topic: not user facing topic category label Aug 9, 2023
In almost all cases this is only included for writing the output formatter, which
only uses `std::ostream` so including `<ostream>` is sufficient.

The istream header is ~1000 lines so the difference is non-trivial.

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 mcarilli ptrblck leslie-fang-intel EikanWang voznesenskym penguinwu anijain2305 Guobing-Chen zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
In almost all cases this is only included for writing the output formatter, which
only uses `std::ostream` so including `<ostream>` is sufficient.

The istream header is ~1000 lines so the difference is non-trivial.

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 mcarilli ptrblck leslie-fang-intel EikanWang voznesenskym penguinwu anijain2305 Guobing-Chen zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
In almost all cases this is only included for writing the output formatter, which
only uses `std::ostream` so including `<ostream>` is sufficient.

The istream header is ~1000 lines so the difference is non-trivial.

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 mcarilli ptrblck leslie-fang-intel EikanWang voznesenskym penguinwu anijain2305 Guobing-Chen zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
In almost all cases this is only included for writing the output formatter, which
only uses `std::ostream` so including `<ostream>` is sufficient.

The istream header is ~1000 lines so the difference is non-trivial.

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 mcarilli ptrblck leslie-fang-intel EikanWang voznesenskym penguinwu anijain2305 Guobing-Chen zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
@@ -1 +1 @@
709c75a04d9b35d83a9509e1534a8aa2046b8912
c3c16ccac41cb2db6ba88fb31342f4af62c7e15a
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is so we include pytorch/xla#5434

@peterbell10 peterbell10 marked this pull request as ready for review August 18, 2023 01:18
@peterbell10 peterbell10 requested a review from lezcano August 18, 2023 01:18
Copy link
Collaborator

@lezcano lezcano left a comment

Choose a reason for hiding this comment

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

Did you apply these by hand, or is it possible to automatise these?

@peterbell10
Copy link
Collaborator Author

I did this manually with git grep "<iostream>" -- *.h because there weren't that many. In theory I think include-what-you-use could help here but that wouldn't be as targeted and I don't know if it could do create the <iosfwd> includes.

@lezcano
Copy link
Collaborator

lezcano commented Aug 18, 2023

Talking from memory here, but I think that include-what-you-use does do the iosfwd checks.

@lezcano
Copy link
Collaborator

lezcano commented Aug 18, 2023

It seems that it suggests the right thing... sometimes include-what-you-use/include-what-you-use#683

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Collaborator

@peterbell10 your PR has been successfully reverted.

pytorchmergebot added a commit that referenced this pull request Aug 22, 2023
…6914)"

This reverts commit 60936e4.

Reverted #106914 on behalf of https://github.com/ZainRizvi due to Sorry, but this is breaking internal builds. Seems like a lot of internal code depends on some of the removed imports ([comment](#106914 (comment)))
@kit1980 kit1980 self-assigned this Aug 22, 2023
@kit1980
Copy link
Contributor

kit1980 commented Aug 22, 2023

@peterbell10 I'll help with relanding this.

@peterbell10 peterbell10 reopened this Aug 22, 2023
In almost all cases this is only included for writing the output formatter, which
only uses `std::ostream` so including `<ostream>` is sufficient.

The istream header is ~1000 lines so the difference is non-trivial.

cc jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 mcarilli ptrblck leslie-fang-intel EikanWang voznesenskym penguinwu anijain2305 Guobing-Chen zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx ipiszy chenyang78 aakhundov

[ghstack-poisoned]
@kit1980
Copy link
Contributor

kit1980 commented Aug 25, 2023

@kit1980 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

2 similar comments
@kit1980
Copy link
Contributor

kit1980 commented Aug 25, 2023

@kit1980 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@kit1980
Copy link
Contributor

kit1980 commented Aug 25, 2023

@kit1980 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@kit1980
Copy link
Contributor

kit1980 commented Aug 25, 2023

@kit1980 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@kit1980 kit1980 removed the Reverted label Aug 25, 2023
voznesenskym pushed a commit that referenced this pull request Aug 27, 2023
In almost all cases this is only included for writing the output formatter, which
only uses `std::ostream` so including `<ostream>` is sufficient.

The istream header is ~1000 lines so the difference is non-trivial.

Pull Request resolved: #106914
Approved by: https://github.com/lezcano
@izaitsevfb
Copy link
Contributor

@pytorchbot revert -m 'Causing metal breakage internally, see D48709279' -c ghfirst

pytorchmergebot referenced this pull request Aug 29, 2023
`import torch_xla.core.xla_model as xm` no longer trigger the xla runtime to init, hence explictly create the device here. This is a workaround for pytorch/xla#4174.

`is_correct` reference has been deleted, I think it is a deadcode.

After this patch, I am able to run

```
python benchmarks/dynamo/torchbench.py --randomize-input --performance --trace-on-xla --training --backend=openxla --only resnet50
```

Pull Request resolved: #107919
Approved by: https://github.com/shunting314, https://github.com/wconstab
@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Collaborator

@peterbell10 your PR has been successfully reverted.

pytorchmergebot added a commit that referenced this pull request Aug 29, 2023
@kit1980
Copy link
Contributor

kit1980 commented Aug 29, 2023

Looks like I missed some issues when re-landing first time...

@facebook-github-bot facebook-github-bot deleted the gh/peterbell10/596/head branch August 29, 2023 14:17
@peterbell10 peterbell10 restored the gh/peterbell10/596/head branch August 29, 2023 14:32
@peterbell10
Copy link
Collaborator Author

My branches seem to have been deleted, so I've opened a new stack starting at #108149. Also switched the PR order so hopefully the pch update doesn't need to be reverted again.

@facebook-github-bot facebook-github-bot deleted the gh/peterbell10/596/head branch August 30, 2023 14:16
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.

8 participants