Skip to content

Commit

Permalink
[misc] Remove unnecessary CompileConfig::lazy_compilation (#7009)
Browse files Browse the repository at this point in the history
  • Loading branch information
PGZXB authored Dec 30, 2022
1 parent abb0208 commit 7f8081a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion taichi/program/compile_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ CompileConfig::CompileConfig() {
debug = false;
cfg_optimization = true;
check_out_of_bound = false;
lazy_compilation = true;
serial_schedule = false;
simplify_before_lower_access = true;
lower_access = true;
Expand Down
1 change: 0 additions & 1 deletion taichi/program/compile_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ struct CompileConfig {
bool check_out_of_bound;
bool validate_autodiff;
int simd_width;
bool lazy_compilation;
int opt_level;
int external_optimization_level;
int max_vector_width;
Expand Down
6 changes: 0 additions & 6 deletions taichi/program/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ Kernel::Kernel(Program &program,
} else if (autodiff_mode == AutodiffMode::kReverse) {
name = primal_name + "_reverse_grad";
}

if (!program.this_thread_config().lazy_compilation)
compile();
}

void Kernel::compile() {
Expand Down Expand Up @@ -396,9 +393,6 @@ void Kernel::init(Program &program,
func();
ir->as<Block>()->kernel = this;
}

if (!program.this_thread_config().lazy_compilation)
compile();
}

// static
Expand Down

0 comments on commit 7f8081a

Please sign in to comment.