-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Do not use <filesystem>
on Linux
#134494
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
Do not use <filesystem>
on Linux
#134494
Conversation
Because right now it leads to symbol conflict from binary builds This PR should be reverted once one figures out how to keep `std::filesystem` methods linked into the binary private
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There is one more use case, in aoti_runner... |
confirmed this is resolved. By installing
|
@pytorchmergebot merge -f "Builds jobs are passing" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
@atalman thank you for the merge, but I've tried downloading other builds and still seeing some symbols there.... |
@malfet confirmed - it works with cuda binary as well. |
@pytorchbot cherry-pick --onto release/2.4 -c critical |
Cherry picking #134494Command
Details for Dev Infra teamRaised by workflow job |
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
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 Co-authored-by: Nikita Shulga <nshulga@meta.com>
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
Similar to: #134494 We are seeing come back of #133437 due to use of filesystem on Linux Pull Request resolved: #137209 Approved by: https://github.com/kit1980, https://github.com/malfet
* Apply changes from #135374 * Fix dependency on filesystem on Linux (#137209) Similar to: #134494 We are seeing come back of #133437 due to use of filesystem on Linux Pull Request resolved: #137209 Approved by: https://github.com/kit1980, https://github.com/malfet --------- Co-authored-by: atalman <atalman@fb.com>
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 callsstat
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 privateFixes symptoms of #133437
cc @XilunWu @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o