Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert disabling debug option for numba jit compilation #9556

Open
kalocsaibotond opened this issue May 3, 2024 · 0 comments
Open

assert disabling debug option for numba jit compilation #9556

kalocsaibotond opened this issue May 3, 2024 · 0 comments

Comments

@kalocsaibotond
Copy link

kalocsaibotond commented May 3, 2024

Feature request

Any respectable compiler has options for levels of code optimalisation and / or debug mode, that can disable assert statements. The assert statements are very powerful tools for debugging and sanity checking.
Python's default assert disabling options are very cumbersome for the typical REPL / Jupyter notebook data science workflow, since assert statements cannot be disabled / enabled during runtime at will. However for pure python, it does not present too much problem, because of the REPL capability of the language. Though even for pure python it would be good to be able to disable assert statements at will.

For compiled code, asserts are vital for debugging. Hence it would be nice to have a debug option to disable assert statements in the numba jit-ed code, after the debugging process is finished.

@kalocsaibotond kalocsaibotond changed the title assert option disabling for numba jit compilation assert debug option disabling for numba jit compilation May 3, 2024
@kalocsaibotond kalocsaibotond changed the title assert debug option disabling for numba jit compilation assert disabling debug option for numba jit compilation May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants