Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Honor $XDG_CACHE_HOME in C++ code of DebugInfoWriter#168232

Closed
Flamefire wants to merge 2 commits into
pytorch:mainfrom
Flamefire:xdg-cache-home
Closed

Honor $XDG_CACHE_HOME in C++ code of DebugInfoWriter#168232
Flamefire wants to merge 2 commits into
pytorch:mainfrom
Flamefire:xdg-cache-home

Conversation

@Flamefire
Copy link
Copy Markdown
Collaborator

In other places, e.g. Python code, "~/.cache/torch" is only used as fallback of "$XDG_CACHE_HOME/torch".
So honor it here too.

This avoids issues where $HOME is not set or not writable.

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Nov 20, 2025

🔗 Helpful Links

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

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:

✅ You can merge normally! (1 Unrelated Failure)

As of commit acb6a53 with merge base 3b19eca (image):

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 the release notes: distributed (c10d) release notes category label Nov 20, 2025
In other places, e.g. Python code, "~/.cache/torch" is only used as
fallback of "$XDG_CACHE_HOME/torch".
So honor it here too.
#endif
std::string cacheRoot;
if (cacheHome)
cacheRoot = cacheHome;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

braces please

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done. Wasn't sure if they should be used for single line blocks.

@drisspg drisspg added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Dec 4, 2025
@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Dec 29, 2025

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Dec 29, 2025
@ezyang ezyang added the topic: bc breaking topic category label Dec 29, 2025
@pytorchmergebot
Copy link
Copy Markdown
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

@Flamefire Flamefire deleted the xdg-cache-home branch December 29, 2025 12:38
krastogi-in pushed a commit to krastogi-in/pytorch that referenced this pull request Jan 9, 2026
In other places, e.g. Python code, "~/.cache/torch" is only used as fallback of "$XDG_CACHE_HOME/torch".
So honor it here too.

This avoids issues where $HOME is not set or not writable.
Pull Request resolved: pytorch#168232
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 open source release notes: distributed (c10d) release notes category topic: bc breaking topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants