Skip to content

Commit 29399e5

Browse files
author
jorgep31415
committed
Update on "[ET-VK] Only save_cache the first time"
Add a check in `save_cache` to return early if the cache file already exists. Currently we append the same cache data to that file which makes no difference to model-load time. Differential Revision: [D66179919](https://our.internmc.facebook.com/intern/diff/D66179919/) [ghstack-poisoned]
1 parent 4a13215 commit 29399e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/vulkan/runtime/vk_api/Pipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ void ComputePipelineCache::save_cache() {
458458
if (cache_data_path_.empty()) {
459459
return;
460460
}
461-
461+
462462
// Return if file exists; the cache is already saved
463463
std::ifstream ifile(cache_data_path_);
464464
if (ifile.good()) {

0 commit comments

Comments
 (0)