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

Cannot set NUMBA_NUM_THREADS to a different value once the threads have been launched #161

Open
lboult opened this issue Aug 29, 2024 · 0 comments

Comments

@lboult
Copy link

lboult commented Aug 29, 2024

Hi,

I'm having some trouble with Numba in Wake-T that seems to be to do with the Wake-T trying to set the number of NUMBA threads after they've already been initialised by another program, which in this case I think is Ocelot. This is the full error message:

RuntimeError: Cannot set NUMBA_NUM_THREADS to a different value once the threads have been launched (currently have 40, trying to set 80)

I'm wondering whether there is some workaround with setting the number of threads that Wake-T requests manually (I found mention of 'WAKET_NUM_THREADS' and tried to manually change this with os.environ but wasn't very successful).

I'm currently using numba version 0.60.0 if that is useful.

Cheers,
Lewis

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

No branches or pull requests

1 participant