shunwang / numexpr

Automatically exported from code.google.com/p/numexpr
MIT License
0 stars 0 forks source link

numexpr does not parallelize well long column, short row size array #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
from pylab import *
import numexpr

numexpr.set_num_threads(8)
x0,x1,x2,x3,x4,x5 = [0,1,2,3,4,5]
t = linspace(0,1,44100000).reshape(-1,1)
numexpr.evaluate('(x0+x1*t+x2*t**2)* cos(x3+x4*t+x5**t)')

This does not take advantage of 8 threads, but if I remove .reshape, it does.

Original issue reported on code.google.com by kkb...@gmail.com on 28 Feb 2011 at 6:39

GoogleCodeExporter commented 9 years ago
In my tests, this example gets properly threaded in the current default branch 
(post nditer merge). Can you test to confirm on your system?

Original comment by mwwi...@gmail.com on 30 Oct 2011 at 11:46