Skip to content

[ci] Migrate to new threading interface #8731

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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: 2 additions & 2 deletions tests/python/test_offline_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def expected_num_cache_files(num_kernels: int = 0) -> int:


def tmp_offline_cache_file_path():
return join(OFFLINE_CACHE_TEMP_DIR, str(threading.currentThread().ident))
return join(OFFLINE_CACHE_TEMP_DIR, str(threading.current_thread().ident))


def current_thread_ext_options():
Expand Down Expand Up @@ -399,7 +399,7 @@ def helper():
def trigger_compile():
x[0] += 1

# This case is used for testing SNodeTree storeing order matters (i.e., use a ordered container such as vector instead of unordered_map or unordered_set) when generating kernel offline cache key
# This case is used for testing SNodeTree storing order matters (i.e., use a ordered container such as vector instead of unordered_map or unordered_set) when generating kernel offline cache key
# The multiple `trigger_compile` equalivant to allocate each field to a different SNodeTree
# i.e.,
# x = ti.field(float)
Expand Down