[Numpy-discussion] array iterators and cython prange

Nadav Horesh nadavh at visionsense.com
Sun Oct 23 09:21:43 EDT 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

   Nadav
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newbil.pyx
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20111023/32744db4/attachment.ksh>


More information about the NumPy-Discussion mailing list