Skip to content

[AMDGPU] Change CWD from within tmp directory #403

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

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ def main(argv):
# If we do not do this, the resident config will take precedence and changes
# to the cache file are ignored.
cwd = os.getcwd()
tdir = tempfile.mkdtemp()
os.chdir(tdir)
util.clean_dir(cwd)
os.chdir(cwd)
util.rmtree(tdir)

with step("cmake", halt_on_fail=True):
# TODO make the name of the cache file an argument to the script.
Expand Down