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
non-deterministic NaN
values in scipy.integrate.solve_ivp
when compiling function with numba
#8931
Comments
scipy.integrate.solve_ivp
when compiling function with numba
NaN
values in scipy.integrate.solve_ivp
when compiling function with numba
I would put a breakpoint in the code at |
I can reproduce this using |
Few hours? You can use Not sure if either is worth it here though. |
Yeah, I put it in a |
Just going to post it in case anything makes sense to you guys. Valgrind reports this for me which is likely irrelevant (the call does not fail):
EDIT: I had forgotten |
@seberg I've often seen that same thing from I also wonder if |
Here's a Github Actions setup depicting the problem: https://github.com/slayoo/numba_issue_8931/actions/runs/4891585656 Observations:
|
I never noticed this part:
One thing the SciPy code probably does do here and that may be non-trivial is calling into blas/lapack which might do a bit more non-trivial things? In that case, maybe But, that again, is just a random guess. For all we know, |
@seberg, thanks. Trying out all the CI runs with OMP_NUM_THREADS set to either 1 or 2 (https://github.com/slayoo/numba_issue_8931/blob/9adceece7d6e4fb6a530ca2fd2c9b1adf022dc4c/.github/workflows/all.yml#L44) shows that it does not alter the bahaviour - still failing on Linux whenever JIT is enabled (but used only in unrelated code): (for the record, the failure has been once recorded also on Windows, so far never on macOS) |
This issue is marked as stale as it has had no activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with any updates and confirm that this issue still needs to be addressed. |
Reporting a bug
visible in the change log (https://github.com/numba/numba/blob/main/CHANGE_LOG).
i.e. it's possible to run as 'python bug.py'.
What we know so far:
@jit
and@njit
functions, but does not happen, when NUMBA_DISABLE_JIT=1cc @slayoo @piotrbartman
The encountered error:
example Dockerfile to reproduce the issue:
The text was updated successfully, but these errors were encountered: