Skip to content

Remove numba#122

Merged
rafa-guedes merged 10 commits intomasterfrom
nonumba
May 2, 2024
Merged

Remove numba#122
rafa-guedes merged 10 commits intomasterfrom
nonumba

Conversation

@rafa-guedes
Copy link
Copy Markdown
Collaborator

Numba is used to increase performance of some spectral statistics that require indexing from the spectral peak which cannot be done in dask. However numba usually pins numpy which can cause some issues. In addition, it is coupled at some level to the CPU architecture through LLVM so it has the potential cause errors on some hardware.

This pull request makes numba an optional dependency which is installed with the extra tag. The numba gufuncs are replaced by standard numpy functions if numba isn't installed which will have a compromise in terms of performance (noticeable when processing large datasets).

@rafa-guedes
Copy link
Copy Markdown
Collaborator Author

In the end the numba functions were removed altogether - they no longer seem to provide any performance improvement compared to the numpy equivalents.

@rafa-guedes rafa-guedes changed the title Make numba optional Remove numba May 2, 2024
@rafa-guedes rafa-guedes merged commit 50ddce0 into master May 2, 2024
@rafa-guedes rafa-guedes deleted the nonumba branch May 21, 2024 04:57
rafa-guedes added a commit that referenced this pull request Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant