Skip to content

Commit

Permalink
#0: fix persistent cache hang
Browse files Browse the repository at this point in the history
  • Loading branch information
aliuTT committed May 15, 2024
1 parent 073fc1a commit 8ed2d93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tt_metal/impl/program/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8ed2d93

Please sign in to comment.