Support MI300 in PyTest profile tests

Signed-off-by: coleramos425 <colramos@amd.com>
This commit is contained in:
coleramos425 authored and Cole Ramos committed 2024-05-31 16:09:58 -05:00
1 parent 49371cacec
commit 09264591f3
2 files changed
+445 -153

No files matched your search

+4 -1
View File
@@ -94,7 +94,10 @@ def clean_output_dir(cleanup, output_dir):
"""
if cleanup:
if os.path.exists(output_dir):
shutil.rmtree(output_dir)
try:
shutil.rmtree(output_dir)
except OSError as e:
print("WARNING: shutil.rmdir(output_dir): directory may not be empty...")
return