-
Notifications
You must be signed in to change notification settings - Fork 32
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
Disable numba caching via environment variable #869
Comments
Can this be closed now that #870 is in? |
Maybe we should leave it open for now to document the |
I've hit this via #1051. Interestingly I get a different error ( |
After much digging I have discovered some interesting things about these segfaults. @wraps(gufunc)
def func(x: ArrayLike, cohort: ArrayLike, n: int, axis: int = -1) -> ArrayLike:
x = da.swapaxes(da.asarray(x), axis, -1) (from @wraps(gufunc)
def func(x: ArrayLike, cohort: ArrayLike, n: int, axis: int = -1) -> ArrayLike:
n = int(n)
axis = int(axis)
x = da.swapaxes(da.asarray(x), axis, -1) Then the serialisation error is fixed! BUT If I then turn dask task fusion back on, the segfault is gone!! So I think that in the fused task a compiled func is expecting an There are other segfaults still happening - I assume they are for similar issues. (@jeromekelleher numpy ints strike again!) |
Edit: related to #371
I've recently started experimenting with sgkit on a SLURM cluster which is working well with the exception of methods using
guvectorize
withcache=True
. Calling these functions results in a segmentation fault on the worker. This only seems to be an issue withguvectorize
(not thejit
orvectorize
decorators) and there is no segmentation fault if I setcache=False
.There are a couple of open issues that may be related although neither quite match what I'm seeing (need to dig some more):
There is also an open issue for globally disabling numba caching which would provide a workaround although it might be stale:
In the meantime, for the sake of debugging and workarounds, it'd be useful to be able to disable numba-caching in sgkit using an environment variable.
The text was updated successfully, but these errors were encountered: