Open RuRo opened 2 years ago
Thanks for catching this! Typically, a config in compile_config.h
but not in ti.init
is simply legacy for various reasons. I think we need to get the documentation correct first. Would you mind sending a PR for your suggestion?
Hi, sorry for the delayed reply. Unfortunately, I am kind of busy lately, so I won't be able to contribute anything in the forceable future. I'll keep submitting issues as I run into them while using taichi and I might revisit them once I get some free time. No promises tho, so if anyone wants to contribute it, that would be great.
This is either a documentation problem or bug.
The current
init
docs state thatHowever not all options listed in
compile_config.h
are accepted ininit
. That is because the actual list of options is determined by this expression.Notably, the following options are missing:
constant_folding
default_ad_stack_size
external_optimization_level
extra_flags
lazy_compilation
max_vector_width
serial_schedule
simd_width
As a side note, sending the user to a header file for the list of config options is kind of suboptimal, imho. Not all default values are listed in the header file (why not btw?) and the config options on
master
might disagree with the user version. Both the default values and the actual list of configuration options can be obtained like this:You can then dynamically append information about the extra
kwargs
toti.init.__doc__
.