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

Implement numba caching and custom decorators #80

Merged
merged 1 commit into from
Jul 8, 2022
Merged

Conversation

AngelFP
Copy link
Owner

@AngelFP AngelFP commented Jul 8, 2022

This PR enables caching numba methods so that they do not need to be compiled every time the code is run (#56). Similar to FBPIC, the caching can be disabled by setting the environment variable WAKET_DISABLE_CACHING=1.

Two custom njit decorators have been defined: njit_serial and njit_parallel (currently unused) to compile methods that should run in serial or that can run in parallel.

@AngelFP AngelFP merged commit b5e4181 into dev Jul 8, 2022
@AngelFP AngelFP deleted the enable_numba_cache branch July 8, 2022 13:56
This was referenced Jul 8, 2022
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