Open brodkemd opened 2 years ago
Thanks for the report. The issue is that the @jit
decorated code has a RERAISE
op code in it which is not supported. Numba is best at dealing with numerical code and it is generally not a good fit for code like the above. The JIT compiler has fallen back to using Object mode (see what this is in the 5 minute guide, link below) and as a result, even if it compiled, there's a reasonable chance it would be no faster than the CPython interpreter, and could even be slower!
If you are new to Numba, perhaps take a look at the 5 minute guide https://numba.readthedocs.io/en/stable/user/5minguide.html first and/or click one of the Try Now
buttons here https://numba.pydata.org/ to open up an interactive Numba demo in your browser.
Marking this as a bug, I think this should have either compiled or failed to compile more gracefully. I'm reasonably convinced that this use case is unsupported in object mode and so failing to compile gracefully is probably the aim for fixing this issue.
I got the following error message when I used the @jit decorator on the function below the error message. This is not the biggest deal but it said to report it so I did.
When the decorator is removed it works as intended. Here is the Function: