Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
erizmr authored and taichi-gardener committed Dec 19, 2024
1 parent 670f5a6 commit 5f47e7e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions taichi/analysis/gen_offline_cache_key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,15 +434,13 @@ class ASTSerializer : public IRVisitor, public ExpressionVisitor {
void emit_dependencies() {
// Serialize dependent real-functions
emit(real_funcs_.size());

for (auto &[func, id] : real_funcs_) {
if (auto &ast_str = func->try_get_ast_serialization_data();
ast_str.has_value()) {
emit_bytes(ast_str->c_str(), ast_str->size());
}
}


// Serialize snode_trees(Temporary: using offline-cache-key of SNode)
// Note: The result of serializing snode_tree_roots_ is not parsable now
emit(static_cast<std::size_t>(snode_tree_roots_.size()));
Expand All @@ -454,7 +452,6 @@ class ASTSerializer : public IRVisitor, public ExpressionVisitor {
}else{
key = snode_key_cache_[snode];
}
// key = get_hashed_offline_cache_key_of_snode(snode);
snode_key_cache_[snode] = key;
emit_bytes(key.c_str(), key.size());
}
Expand Down Expand Up @@ -668,7 +665,6 @@ class ASTSerializer : public IRVisitor, public ExpressionVisitor {
std::unordered_map<const SNode *, std::string> snode_key_cache_;
std::map<Function *, std::size_t> real_funcs_;
std::vector<char> string_pool_;
double emit_time_cost = 0.0;
};

} // namespace
Expand Down
2 changes: 0 additions & 2 deletions taichi/analysis/offline_cache_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ std::string get_hashed_offline_cache_key_of_snode(const SNode *snode) {
TI_ASSERT(snode);

BinaryOutputSerializer serializer;

serializer.initialize();
{
std::unordered_set<int> visited;
Expand All @@ -178,7 +177,6 @@ std::string get_hashed_offline_cache_key(const CompileConfig &config,
get_offline_cache_key_of_parameter_list(kernel->parameter_list);
kernel_rets_string = get_offline_cache_key_of_rets(kernel->rets);
std::ostringstream oss;

gen_offline_cache_key(kernel->ir.get(), &oss);
kernel_body_string = oss.str();
}
Expand Down

0 comments on commit 5f47e7e

Please sign in to comment.