Skip to content

Commit

Permalink
[refactor] Remove dependencies on Program::current_ast_builder() in C…
Browse files Browse the repository at this point in the history
…++ side (taichi-dev#7044)

Issue: taichi-dev#7002
  • Loading branch information
PGZXB committed Jan 5, 2023
1 parent dfe0a2e commit 50f0aa9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions taichi/program/program.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,6 @@ class TI_DLL_EXPORT Program {

void visualize_layout(const std::string &fn);

Kernel &kernel(const std::function<void()> &body,
const std::string &name = "",
AutodiffMode autodiff_mode = AutodiffMode::kNone) {
// Expr::set_allow_store(true);
auto func = std::make_unique<Kernel>(*this, body, name, autodiff_mode);
// Expr::set_allow_store(false);
kernels.emplace_back(std::move(func));
return *kernels.back();
}

Kernel &kernel(const std::function<void(Kernel *)> &body,
const std::string &name = "",
AutodiffMode autodiff_mode = AutodiffMode::kNone) {
Expand Down

0 comments on commit 50f0aa9

Please sign in to comment.