[llvm] [CI][AMDGPU] Add clean up step for HIP test (PR #224177)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 17 05:39:40 PDT 2026


================
@@ -36,6 +36,13 @@ def check_test_suite_build_dir(test_suite_src, test_suite_build_dir):
         raise RuntimeError("test-suite build dir must not be the test-suite source dir")
 
 
+def clean_gpu_core_dumps(root):
+    for directory, _, files in os.walk(root):
+        for name in files:
+            if name.startswith("gpucore.") and name[8:].isdigit():
----------------
jhuber6 wrote:

Kind of scary to glob for files to remove in the root. Do these have magic bytes we could check instead?

https://github.com/llvm/llvm-project/pull/224177


More information about the llvm-commits mailing list