Skip to content

Commit

Permalink
Remove enabled_wip_offline_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
PGZXB committed Oct 13, 2022
1 parent 19dec63 commit 21ec2c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions taichi/util/offline_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,6 @@ std::string get_cache_path_by_arch(const std::string &base_path, Arch arch) {
return taichi::join_path(base_path, subdir);
}

bool enabled_wip_offline_cache(bool enable_hint) {
// CompileConfig::offline_cache is a global option to enable offline cache on
// all backends To disable WIP offline cache by default & enable when
// developing/testing:
const char *enable_env = std::getenv("TI_WIP_OFFLINE_CACHE");
return enable_hint && enable_env && std::strncmp("1", enable_env, 1) == 0;
}

std::string mangle_name(const std::string &primal_name,
const std::string &key) {
// Result: {primal_name}{key: char[65]}_{(checksum(primal_name)) ^
Expand Down
1 change: 0 additions & 1 deletion taichi/util/offline_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ class CacheCleaner {

void disable_offline_cache_if_needed(CompileConfig *config);
std::string get_cache_path_by_arch(const std::string &base_path, Arch arch);
bool enabled_wip_offline_cache(bool enable_hint);
std::string mangle_name(const std::string &primal_name, const std::string &key);
bool try_demangle_name(const std::string &mangled_name,
std::string &primal_name,
Expand Down

0 comments on commit 21ec2c7

Please sign in to comment.