diff --git a/taichi/program/compile_config.cpp b/taichi/program/compile_config.cpp index 59682ff7537b7..8bc577f0ceff8 100644 --- a/taichi/program/compile_config.cpp +++ b/taichi/program/compile_config.cpp @@ -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; diff --git a/taichi/program/compile_config.h b/taichi/program/compile_config.h index 4f8652418d052..947d7beab585c 100644 --- a/taichi/program/compile_config.h +++ b/taichi/program/compile_config.h @@ -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; diff --git a/taichi/program/kernel.cpp b/taichi/program/kernel.cpp index 83eede53a0d9d..20b2b12fbada3 100644 --- a/taichi/program/kernel.cpp +++ b/taichi/program/kernel.cpp @@ -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() { @@ -396,9 +393,6 @@ void Kernel::init(Program &program, func(); ir->as()->kernel = this; } - - if (!program.this_thread_config().lazy_compilation) - compile(); } // static