Concisely describe the proposed feature
We need more flexibility on which optimizations to be performed. A simple switch advanced_optimization is probably not sufficient.
Implement a new config variable optimization_level with values 0, 1, 2, 3, and deprecate advanced_optimization into setting the optimization_level variable.
Remove advanced_optimization after several releases.
Concisely describe the proposed feature We need more flexibility on which optimizations to be performed. A simple switch
advanced_optimization
is probably not sufficient.See also: https://github.com/taichi-dev/taichi/issues/1416#issuecomment-654379663 https://github.com/taichi-dev/taichi/pull/1403#pullrequestreview-442632149 https://github.com/taichi-dev/taichi/issues/2375#issuecomment-852722639 https://github.com/taichi-dev/taichi/issues/1469#issuecomment-657168352
Describe the solution you'd like (if any)
optimization_level
with values 0, 1, 2, 3, and deprecateadvanced_optimization
into setting theoptimization_level
variable.advanced_optimization
after several releases.