Avoiding parallel threading in py-pde #51
Unanswered
ArvinSubramaniam
asked this question in
Q&A
Replies: 1 comment 10 replies
-
I found a bug in from pde.tools import numba
numba.NUMBA_PARALLEL = False Could you please test whether this fixes the problem? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
My question is regarding the use of parallel threading in py-pde.
From what I can tell, it turns out that py-pde is using all cores for simulations (see aattached photo of CPU usage on my linux computer - all 8 cores are used), although it is not clear that this is necessary (since no parallel computing is used). This drastically slows down simulations on my device, and also the computing cluster that I use.
An upon adding the following lines:
the problem still remains (see second photo - granted they look the same but trust me they were taken from before and after)
The code is thus:
Is there a neat way enforce that a single core usage on the py-pde source code? Any help is much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions