From 8ed2d933660aeb396d8cf11b8e2fb33d4be46bc5 Mon Sep 17 00:00:00 2001 From: Allan Liu Date: Wed, 15 May 2024 22:12:51 +0000 Subject: [PATCH] #0: fix persistent cache hang --- tt_metal/impl/program/program.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tt_metal/impl/program/program.cpp b/tt_metal/impl/program/program.cpp index 6633e32bfdc..53cdc81b7a6 100644 --- a/tt_metal/impl/program/program.cpp +++ b/tt_metal/impl/program/program.cpp @@ -796,8 +796,10 @@ void Program::compile( Device * device ) bool cache_hit = true; bool path_exists = std::filesystem::exists(build_options.path); if (enable_persistent_kernel_cache && path_exists) { - if (not detail::HashLookup::inst().exists(kernel_hash)) + if (not detail::HashLookup::inst().exists(kernel_hash)) { detail::HashLookup::inst().add(kernel_hash); + detail::HashLookup::inst().add_generated_bin(kernel_hash); + } } else if (detail::HashLookup::inst().add(kernel_hash)) { GenerateBinaries(device, build_options, kernel); cache_hit = false;