You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
a potential bug in numpy multivariate_normal #8185
Here is the test code:
p = 5000
cov_true = np.eye(p)
mean_true = np.zeros(p)
beta_true = multivariate_normal(mean_true, cov_true, size=1).T
Firstly, the last line takes great amount of time, second it doesn't make too much difference when I run it on 48 core machine and 4 core machine while it eats all cores(48 and 4 in each case). I guess it might be a bug?
probably the actual work to do per threads is to small with dimensions of 5000 and 48 cores, so openblas is just burning cpu cycles running sched_yield in all threads, that is a function you should never be using on linux but unfortunately openblas does.
Thats why you get no speedup with more cores, you are probably lucky that it does not get slower
There isn't really much numpy can do about this.
Activity
1a1a11a commentedon Oct 20, 2016
testing environment, python3.4, python3.5, python2.7 with numpy 1.11.0.
pv commentedon Oct 20, 2016
1a1a11a commentedon Oct 20, 2016
can I upgrade Openblas?
juliantaylor commentedon Oct 20, 2016
probably the actual work to do per threads is to small with dimensions of 5000 and 48 cores, so openblas is just burning cpu cycles running
sched_yieldin all threads, that is a function you should never be using on linux but unfortunately openblas does.Thats why you get no speedup with more cores, you are probably lucky that it does not get slower
There isn't really much numpy can do about this.
seberg commentedon Nov 19, 2022
The openblas issue (where this belongs anyway) is closed, so closing this one as well.