Re: [Numpy-discussion] parallel loop annotations

2008-06-21 Thread Rahul Garg
The discussion has moved to : http://wiki.cython.org/enhancements/parallel Quoting Rahul Garg <[EMAIL PROTECTED]>: > Thanks for pointing them out. I will look into both of them. I like > the "with" statement. From an implementation perspective, the "with" > statement looks simpler since the Pytho

Re: [Numpy-discussion] parallel loop annotations

2008-06-18 Thread Rahul Garg
Thanks for pointing them out. I will look into both of them. I like the "with" statement. From an implementation perspective, the "with" statement looks simpler since the Python parser seems to discard comments and I use the Python parser as front end for compiler. For other annotations, I h

Re: [Numpy-discussion] parallel loop annotations

2008-06-18 Thread Stéfan van der Walt
2008/6/18 Rahul Garg <[EMAIL PROTECTED]>: > I want to add a similar annotation to Python > example usage : > > "pragma parallel for" > for i in xrange(m): a[i] = b[i]*c[i] > > The interpreter ignores such strings and the code will of course > execute serially but such strings can potentially be use

[Numpy-discussion] parallel loop annotations

2008-06-18 Thread Rahul Garg
Hi. I have been working on a Python to C compiler called unPython (updates coming tomorow). One of the features I want to work on is parallel loop annotations similar to OpenMP for C. Given the multicore revolution, and given the lack of real concurrency in CPython, such a feature will be