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

[bug] Set cfg.offline_cache after reset() #6073

Merged
merged 1 commit into from
Sep 16, 2022
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
5 changes: 3 additions & 2 deletions python/taichi/lang/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,6 @@ def init(arch=None,
# changed by the Vulkan backend initialization on OS X.
current_dir = os.getcwd()

cfg = impl.default_cfg()
cfg.offline_cache = True # Enable offline cache in frontend instead of C++ side
# Check if installed version meets the requirements.
if require_version is not None:
check_require_version(require_version)
Expand All @@ -365,6 +363,9 @@ def init(arch=None,
kwargs = _deepcopy(kwargs)
reset()

cfg = impl.default_cfg()
cfg.offline_cache = True # Enable offline cache in frontend instead of C++ side

spec_cfg = _SpecialConfig()
env_comp = _EnvironmentConfigurator(kwargs, cfg)
env_spec = _EnvironmentConfigurator(kwargs, spec_cfg)
Expand Down