Re: [Numpy-discussion] NumPy to CPU+GPU compiler, looking for tests

2012-10-29 Thread Frédéric Bastien
On Mon, Oct 29, 2012 at 11:53 AM, Henry Gomersall wrote: > On Mon, 2012-10-29 at 11:49 -0400, Frédéric Bastien wrote: >> That is possible. >> > Great! Just to be clear, I mean this is possible to make it work. We do not do that for now. Also, sharing the memory on the CPU and GPU is not trivial i

Re: [Numpy-discussion] NumPy to CPU+GPU compiler, looking for tests

2012-10-29 Thread Henry Gomersall
On Mon, 2012-10-29 at 11:49 -0400, Frédéric Bastien wrote: > That is possible. > Great! > The gpu nd array project I talked above work on the CPU and the GPU in > OpenCL and with CUDA. But there is much stuff that is in numpy that we > didn't ported. This is: https://github.com/inducer/compyte/w

Re: [Numpy-discussion] NumPy to CPU+GPU compiler, looking for tests

2012-10-29 Thread Frédéric Bastien
That is possible. The gpu nd array project I talked above work on the CPU and the GPU in OpenCL and with CUDA. But there is much stuff that is in numpy that we didn't ported. We started integrating it into Theano. So this mean the GPU code from Theano will be ported to this project, so there will

Re: [Numpy-discussion] NumPy to CPU+GPU compiler, looking for tests

2012-10-29 Thread Henry Gomersall
On Mon, 2012-10-29 at 11:11 -0400, Frédéric Bastien wrote: > > Assuming of course all the relevant backends are up to scratch. > > > > Is there a fundamental reason why targetting a CPU through OpenCL is > > worse than doing it exclusively through C or C++? > > First, opencl do not allow us to do

Re: [Numpy-discussion] NumPy to CPU+GPU compiler, looking for tests

2012-10-29 Thread Frédéric Bastien
On Tue, Oct 23, 2012 at 11:48 AM, Henry Gomersall wrote: > On Tue, 2012-10-23 at 11:41 -0400, Frédéric Bastien wrote: >> Did you saw the gpu nd array project? We try to do something similar >> but only for the GPU. >> > Out of interest, is there a reason why the backend for Numpy could not > be wr

Re: [Numpy-discussion] NumPy to CPU+GPU compiler, looking for tests

2012-10-23 Thread Rahul Garg
Thanks! I did not know about the project. Looking into it. rahul On Tue, Oct 23, 2012 at 11:41 AM, Frédéric Bastien wrote: > Did you saw the gpu nd array project? We try to do something similar > but only for the GPU. > > https://github.com/inducer/compyte/wiki > > Fred > > On Sun, Oct 21, 2012

Re: [Numpy-discussion] NumPy to CPU+GPU compiler, looking for tests

2012-10-23 Thread Henry Gomersall
On Tue, 2012-10-23 at 11:41 -0400, Frédéric Bastien wrote: > Did you saw the gpu nd array project? We try to do something similar > but only for the GPU. > Out of interest, is there a reason why the backend for Numpy could not be written entirely in OpenCL? Assuming of course all the relevant bac

Re: [Numpy-discussion] NumPy to CPU+GPU compiler, looking for tests

2012-10-23 Thread Frédéric Bastien
Did you saw the gpu nd array project? We try to do something similar but only for the GPU. https://github.com/inducer/compyte/wiki Fred On Sun, Oct 21, 2012 at 2:57 PM, Rahul Garg wrote: > Thanks! I need to add support for eig and inv (will do this week, at > least for CPU) but other than that,

Re: [Numpy-discussion] NumPy to CPU+GPU compiler, looking for tests

2012-10-21 Thread Rahul Garg
Thanks! I need to add support for eig and inv (will do this week, at least for CPU) but other than that, I should definitely be able to handle those kinds of benchmarks. rahul On Sun, Oct 21, 2012 at 12:01 PM, Aron Ahmadia wrote: > Hi Rahul, > > Very cool! I'm looking forward to seeing some per

Re: [Numpy-discussion] NumPy to CPU+GPU compiler, looking for tests

2012-10-21 Thread Aron Ahmadia
Hi Rahul, Very cool! I'm looking forward to seeing some performance results! Anders Logg posted a computational challenge to G+ about a month ago, and we got entries in Octave, Fortran, Python, and Julia (all implementing the same solution from Jed Brown). The challenge is here: https://plus.g