Re: [Cython] Conditional import in pure Python mode

2012-05-01 Thread Francesc Alted
the NumPy development headers, right? -- Francesc Alted ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] Cython 0.16

2011-11-01 Thread Francesc Alted
2011/10/31 mark florisson : > We can now pass a chunksize argument into prange: > https://github.com/cython/cython/commit/5c3e77d3c70686fedd5619d7267728fc819b4c60 Cool. And very well documented too. Thank you! -- Francesc Alted ___ cython

Re: [Cython] Cython 0.16

2011-10-29 Thread Francesc Alted
On the contrary, this is an excellent idea! El 29/10/2011 15:14, "mark florisson" va escriure: > Before we do a release, would anyone be opposed to a 'chunksize' > keyword argument to prange()? That may have significant performance > impacts. > > On 29 October 2011 12:41, mark florisson > wrote:

Re: [Cython] Cython 0.15rc2 and parallelization issue

2011-08-03 Thread Francesc Alted
allel implementation :) Thanks a lot! 2011/8/3, mark florisson : > On 3 August 2011 14:18, Francesc Alted wrote: >> Hi, >> >> I'm trying to take advantage of the exciting new parallelizing >> capabilities recently introduced in forthcoming 0.15 version, but I'm

Re: [Cython] Cython 0.15rc2 and parallelization issue

2011-08-03 Thread Francesc Alted
ation :) Thanks a lot Mark! 2011/8/3, mark florisson : > On 3 August 2011 14:18, Francesc Alted wrote: >> Hi, >> >> I'm trying to take advantage of the exciting new parallelizing >> capabilities recently introduced in forthcoming 0.15 version, but I'm &g

[Cython] Cython 0.15rc2 and parallelization issue

2011-08-03 Thread Francesc Alted
is preventing to call the routing from the parallel loop. Is that a bug, a limitation of current implementation or it is just that I'm missing something? Thanks, -- Francesc Alted mandel.pyx Description: Binary data ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] "Cython's Users Guide"

2011-04-11 Thread Francesc Alted
ed into the User's Guide. In fact, I already started some job in this direction and created a couple of pull requests during the workshop (that they have been already integrated). I plan to continue this job, but unfortunately I'm pretty busy lately, so I don't think I can

Re: [Cython] OpenMP support

2011-03-12 Thread Francesc Alted
than you are suggesting. Not that I'm a big fan of Windows platforms, but we have to accept the fact that its user base is simply huge. -- Francesc Alted ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] OpenMP support

2011-03-11 Thread Francesc Alted
ds + possibly new Cython syntax is a better venue. But I'd like to be proved that the problem for Win is not that grave... -- Francesc Alted ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] OpenMP support

2011-03-09 Thread Francesc Alted
use an integer variable as error flag, and use an atomic > write in case of error. Yeah. I use exactly this technique for tracking errors in threaded code. It is a bit messy, but when done correctly, it works great. -- Francesc Alted ___ cython-d

Re: [Cython] OpenMP support

2011-03-08 Thread Francesc Alted
A Tuesday 08 March 2011 20:24:51 Sturla Molden escrigué: > Den 08.03.2011 20:13, skrev Francesc Alted: > > And another problem that should be taken in account is that MS > > Visual Studio does not offer OpenMP in the Express edition (the > > free, as in beer, one). > >

Re: [Cython] OpenMP support

2011-03-08 Thread Francesc Alted
hon objects, no? Something like: def worker(): cdef int item # tell that item is not a Python object! for item in queue: with nogil: do_stuff(item) queue.extend(work_items) start_threads(worker, count) -- Francesc Alted __

Re: [Cython] OpenMP support

2011-03-08 Thread Francesc Alted
having a good adoption of future Cython parallel capabilities. In the case that we need dealing with a low-level C-API thread library, I'd use pthreads, with a possible light wrapper for using it from the Windows thread API on Windows machines. -- Francesc Alted ___