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

Ignore tests errors when cleaning cache #3028

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion python/test/unit/runtime/test_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def cache_hook(*args, **kwargs):
assert specialization_data is not None

# clear the cache
shutil.rmtree(fresh_triton_cache)
shutil.rmtree(fresh_triton_cache, ignore_errors=True)
kernel_add.device_caches[device][0].clear()

# preload the kernel
Expand Down
2 changes: 1 addition & 1 deletion python/test/unit/runtime/test_subproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_compile_in_forked_subproc_with_forced_gc(fresh_triton_cache) -> None:
compile_empty_kernel_with_gc(config)

# stage 2.p
shutil.rmtree(fresh_triton_cache)
shutil.rmtree(fresh_triton_cache, ignore_errors=True)
mp_ctx = multiprocessing.get_context(start_method)
proc = mp_ctx.Process(target=compile_empty_kernel_with_gc, args=(config, ))

Expand Down