[Cython] BUG: Invalid code generated from prange()

2015-11-03 Thread Thouis (Ray) Jones
Cythoning and then trying to compile the attached test causes gcc-4.9 to error out with: physics.c:1840:165: error: invalid entry to OpenMP structured block if (unlikely(!__pyx_v_XY.memview)) { __Pyx_RaiseUnboundMemoryviewSliceNogil("XY"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __

[Cython] keyword argument to prange() for num_threads gives undefined error

2015-10-22 Thread Thouis (Ray) Jones
I couldn't find this in the Cython Trac, but forgive me if it's been addressed already. One of my students ran into the bug referenced in this cython-users post: https://groups.google.com/forum/#!topic/cython-users/xYZLKPAwmTE It appears that keyword arguments to functions can't be used as the va