From 95c7a3ded45953e9e4033e748f7d3eba62dfac08 Mon Sep 17 00:00:00 2001 From: PGZXB Date: Sun, 9 Oct 2022 14:38:33 +0800 Subject: [PATCH] Rename --- taichi/cache/metal/cache_manager.cpp | 4 ++-- taichi/cache/metal/cache_manager.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/taichi/cache/metal/cache_manager.cpp b/taichi/cache/metal/cache_manager.cpp index 8d0756b40bba18..d82d943927cf72 100644 --- a/taichi/cache/metal/cache_manager.cpp +++ b/taichi/cache/metal/cache_manager.cpp @@ -119,7 +119,7 @@ std::optional 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); @@ -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()) { diff --git a/taichi/cache/metal/cache_manager.h b/taichi/cache/metal/cache_manager.h index b2fff47a44c190..0b652c3593da28 100644 --- a/taichi/cache/metal/cache_manager.h +++ b/taichi/cache/metal/cache_manager.h @@ -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_;