[rust-dev] spawn on top of OpenCL

David Rajchenbach-Teller dteller at mozilla.com
Fri Apr 6 02:40:34 PDT 2012

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.


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 <mictadlo at gmail.com
> <mailto:mictadlo at gmail.com>> 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
> Rust-dev at mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev

David Rajchenbach-Teller, PhD
 Performance Team, Mozilla

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: OpenPGP digital signature
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20120406/51ef4762/attachment.bin>

More information about the Rust-dev mailing list