Adding a build option --explicit-error-check in setup.py along with related changes in CMakeLists.txt, so that the python option would set a compile option NVFUSER_EXPLICIT_ERROR_CHECK to the project.
This is to be used in our CI runs, where debug build is too slow but we still want things like dynamic_cast to catch errors.
Currently the change enables some runtime check, e.g. dynamic_cast, which was not checked previously in release build and have been hidden in CI.
Adding a build option
--explicit-error-check
in setup.py along with related changes in CMakeLists.txt, so that the python option would set a compile optionNVFUSER_EXPLICIT_ERROR_CHECK
to the project.This is to be used in our CI runs, where debug build is too slow but we still want things like dynamic_cast to catch errors.
Currently the change enables some runtime check, e.g. dynamic_cast, which was not checked previously in release build and have been hidden in CI.