Skip to content

Commit

Permalink
Fix cache-key
Browse files Browse the repository at this point in the history
  • Loading branch information
PGZXB committed Mar 22, 2022
1 parent 85c8853 commit 5b9f865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/llvm/llvm_offline_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ std::string get_offline_cache_key_of_kernel(Kernel *kernel) {
irpass::re_id(kernel->ir.get());
irpass::print(kernel->ir.get(), &kernel_ast_string);
picosha2::hash256_hex_string(kernel_ast_string, res);
res.push_back(kernel->grad ? 'g' : 'n');
res.insert(res.begin(), kernel->grad ? 'g' : 'n');
return res;
}

Expand Down

0 comments on commit 5b9f865

Please sign in to comment.