Thanks for the explanation! Now I could understand.
The original mechanism for intrinsic lowering uses tvm.register_func, which is implemented in the TVM runtime, while the new register_intrin_lowering is instead implemented in the TVM compiler, which will throw out an error when if the TVM is a runtime-only build.
This file is loaded regardless of TVM is built fully or runtime-only, which causes the issue you mentioned: tvm/environment.py at main · apache/tvm · GitHub. To address this issue, we could simply ignore the error when registration function is not found.
A PR is more than appreciated! CC: @zxybazh