Skip to content
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

[AMDGPU] Change CWD from within tmp directory #403

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

jplehr
Copy link
Contributor

@jplehr jplehr commented Mar 4, 2025

As pointed out in #402 the former solution deleted the CWD from within that directory, rendering the state quite useless and resulting in errors on execution.

The approach in here creates a temp directory, changes to it, removes the old CWD, recreates it, and changes back to that directory. I opted for this solution as, oddly enough, I had some trouble removing the
enumerated list of files in the buildtree.

As pointed out in llvm#402 the former
solution deleted the CWD from within that directory, rendering the state
quite useless and resulting in errors on execution.

The approach in here creates a temp directory, changes to it, removes
the old CWD, recreates it, and changes back to that directory. I opted
for this solution as, oddly enough, I had some trouble removing the
  enumerated list of files in the buildtree.
@jplehr jplehr requested review from Meinersbur, ronlieb and jhuber6 March 4, 2025 21:14
@jplehr jplehr merged commit 2ad3598 into llvm:main Mar 4, 2025
2 checks passed
jplehr added a commit that referenced this pull request Mar 4, 2025
@Meinersbur
Copy link
Member

One could also have deleted all the contents of the directory, instead the directory itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants