KEMBAR78
Do not use `<filesystem>` on Linux (#134494) by atalman · Pull Request #134604 · pytorch/pytorch · GitHub
Skip to content

Conversation

@atalman
Copy link
Contributor

@atalman atalman commented Aug 27, 2024

Because right now it leads to symbol conflict from binary builds. Use of std::filesystem::file_exists was introduced by #126601 and in this PR it is replaced with a very straightforward implementation that calls stat on the given path, which is a classic C-way of checking for the file existence.

This PR should be reverted once one figures out how to keep std::filesystem methods linked into the binary private

Fixes symptoms of #133437

Pull Request resolved: #134494
Approved by: https://github.com/atalman, https://github.com/d4l3k

cc @XilunWu @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o

Because right now it leads to symbol conflict from binary builds.
Use of `std::filesystem::file_exists` was introduced by pytorch#126601 and in this PR it is replaced with a very straightforward implementation that calls `stat` on the given path, which is a classic C-way of checking for the file existence.

This PR should be reverted once one figures out how to keep `std::filesystem` methods linked into the binary private

Fixes symptoms of pytorch#133437

Pull Request resolved: pytorch#134494
Approved by: https://github.com/atalman, https://github.com/d4l3k
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 27, 2024

🔗 Helpful Links

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

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

❌ 2 New Failures, 27 Cancelled Jobs, 1 Unrelated Failure

As of commit f4c8bae with merge base b66e3f0 (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOBS - The following jobs were cancelled. Please retry:

FLAKY - The following job failed but was likely due to flakiness present on trunk:

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

@pytorch-bot pytorch-bot bot added oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (c10d) release notes category labels Aug 27, 2024
@atalman
Copy link
Contributor Author

atalman commented Aug 27, 2024

Please note, no change to:torch/csrc/inductor/aoti_runner/model_container_runner.cpp is needed in cherry-pick

@atalman atalman merged commit 38b96d3 into pytorch:release/2.4 Aug 27, 2024
@atalman atalman deleted the more_changes_release branch August 27, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (c10d) release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants