[Numpy-discussion] array iterators and cython prange

Nadav Horesh nadavh@visionsense....
Sun Oct 23 08:21:43 CDT 2011

I coded a bilateral filter class in cython based on numpy's neighborhood iterator (thanks to T. J's code example).  I tried to parallel the code by replacing the standard loop (commented line 150) by a prange loop (line 151). The result are series of compilation errors mainly due the the use of iterators. Is there an *easy* way to work with nmpy iterators while the GIL is released?

Platfoem: numpy 1.6.1 on python 2.7.2 and cython 0.15.1
system: gcc on linux

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newbil.pyx
Url: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20111023/32744db4/attachment-0001.pl 

More information about the NumPy-Discussion mailing list