Quick note: writing GPU code and CPU code is extremely different. Things may have changed, but last time I checked, GPUs were very antagonistic to non-static memory management – which basically meant no stack and no memory allocation.
For these reasons, I doubt that |spawn| can even be implemented on top of OpenCL. On the other hand, it is certainly possible to write a nice library of combinators for on-GPU computations. I suspect that Rust-style typeclasses can even be used to define generic algorithms that can be implemented both on-GPU and on-CPU. Cheers, David On 4/6/12 11:21 AM, Mic wrote: > Hi, > In the next 3 years some GPUs will have 20 000 cores. > > Looking at this http://jogamp.org/jocl/www/ benchmark it is now a huge > difference between GPU and CPU code. In Aparapi > > http://blogs.amd.com/developer/2011/09/14/i-dont-always-write-gpu-code-in-java-but-when-i-do-i-like-to-use-aparapi/ > you > write everything in Java. > > Any plans to make spawn on top of OpenCL > ( http://en.wikipedia.org/wiki/OpenCL ) so the user can choose by > running the application whether it would like to do it on CPU, GPU > or Hadoop? > > Cheers, > > On Tue, Apr 3, 2012 at 6:43 PM, Mic <[email protected] > <mailto:[email protected]>> wrote: > > Hello, > Any plans to make spawn on top of OpenCL > ( http://en.wikipedia.org/wiki/OpenCL ) similar to: > http://code.google.com/p/copperhead/ > http://deeplearning.net/software/theano/ > > > > > > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev -- David Rajchenbach-Teller, PhD Performance Team, Mozilla
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
