Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
PGZXB committed Oct 9, 2022
1 parent e559866 commit 95c7a3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions taichi/cache/metal/cache_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ std::optional<CompiledKernelData> CacheManager::try_load_cached_kernel(
if (iter != kernels.end()) {
auto &k = iter->second;
TI_ASSERT(k.kernel_key == k.compiled_kernel_data.kernel_name);
if (complete_kernel_data(k)) {
if (load_kernel_source_code(k)) {
TI_DEBUG("Create kernel '{}' from cache (key='{}')", kernel->get_name(),
key);
k.last_used_at = std::time(nullptr);
Expand All @@ -146,7 +146,7 @@ CompiledKernelData CacheManager::compile_and_cache_kernel(
return kernel_data.compiled_kernel_data;
}

bool CacheManager::complete_kernel_data(
bool CacheManager::load_kernel_source_code(
OfflineCacheKernelMetadata &kernel_data) {
auto &src = kernel_data.compiled_kernel_data.source_code;
if (!src.empty()) {
Expand Down
2 changes: 1 addition & 1 deletion taichi/cache/metal/cache_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class CacheManager {
const std::string &key);
CompiledKernelData compile_and_cache_kernel(const std::string &key,
Kernel *kernel);
bool complete_kernel_data(OfflineCacheKernelMetadata &kernel_data);
bool load_kernel_source_code(OfflineCacheKernelMetadata &kernel_data);

Params config_;
CachingData caching_kernels_;
Expand Down

0 comments on commit 95c7a3d

Please sign in to comment.