Discussion:
[rust-dev] rust and cuda
Madhu Srinivasan
2014-09-06 17:09:30 UTC
Permalink
Hello fellow Rustians,
I am wondering (before attempting anything) if anyone has tried creating cuda bindings for rust? Or has discovered any other route to use cuda kernels with rust as the host language ?
If not, I am willing to work in this direction, but would need some guidance from the community on using rust-bindgen and it's FFI usage etc.

Thanks,
Madhu
https://github.com/smadhueagle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140906/4bd4cf78/attachment.html>
Corey Richardson
2014-09-06 18:06:35 UTC
Permalink
See http://www.cs.indiana.edu/~eholk/papers/hips2013.pdf and
http://blog.theincredibleholk.org/blog/2012/12/05/compiling-rust-for-gpus/
for prior work.

On Sat, Sep 6, 2014 at 1:09 PM, Madhu Srinivasan
<smadhueagle at outlook.com> wrote:
> Hello fellow Rustians,
>
> I am wondering (before attempting anything) if anyone has tried creating
> cuda bindings for rust? Or has discovered any other route to use cuda
> kernels with rust as the host language ?
>
> If not, I am willing to work in this direction, but would need some guidance
> from the community on using rust-bindgen and it's FFI usage etc.
>
>
> Thanks,
>
> Madhu
>
> https://github.com/smadhueagle
>
> _______________________________________________
> Rust-dev mailing list
> Rust-dev at mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev
>



--
http://octayn.net/
Madhu Srinivasan
2014-09-06 19:25:10 UTC
Permalink
Thanks ! Yes, I came across the blog and I've read the paper. However, I am not looking at writing GPU Kernels in Rust that can be LLVM'ed into a PTX backend.
I'm looking for something along the lines of rust-opencl https://github.com/luqmana/rust-opencl .

I'll be looking into this more deeply in the coming weeks, so please let me know if you have any inputs/opinions.
Madhu

> Date: Sat, 6 Sep 2014 14:06:35 -0400
> Subject: Re: [rust-dev] rust and cuda
> From: corey at octayn.net
> To: smadhueagle at outlook.com
> CC: rust-dev at mozilla.org
>
> See http://www.cs.indiana.edu/~eholk/papers/hips2013.pdf and
> http://blog.theincredibleholk.org/blog/2012/12/05/compiling-rust-for-gpus/
> for prior work.
>
> On Sat, Sep 6, 2014 at 1:09 PM, Madhu Srinivasan
> <smadhueagle at outlook.com> wrote:
> > Hello fellow Rustians,
> >
> > I am wondering (before attempting anything) if anyone has tried creating
> > cuda bindings for rust? Or has discovered any other route to use cuda
> > kernels with rust as the host language ?
> >
> > If not, I am willing to work in this direction, but would need some guidance
> > from the community on using rust-bindgen and it's FFI usage etc.
> >
> >
> > Thanks,
> >
> > Madhu
> >
> > https://github.com/smadhueagle
> >
> > _______________________________________________
> > Rust-dev mailing list
> > Rust-dev at mozilla.org
> > https://mail.mozilla.org/listinfo/rust-dev
> >
>
>
>
> --
> http://octayn.net/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140906/1e8a8eaa/attachment.html>
Loading...