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

[misc] Enable offline cache in frontend instead of C++ Side #6051

Merged
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
1 change: 1 addition & 0 deletions python/taichi/lang/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ def init(arch=None,
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 Down
2 changes: 1 addition & 1 deletion taichi/program/compile_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ struct CompileConfig {
int auto_mesh_local_default_occupacy{4};

// Offline cache options
bool offline_cache{true};
bool offline_cache{false};
std::string offline_cache_file_path{get_repo_dir() + "ticache"};
std::string offline_cache_cleaning_policy{
"lru"}; // "never"|"version"|"lru"|"fifo"
Expand Down