GPU CUDA Programming with Ruby

196 views
Skip to first unread message

shinyee

unread,
Sep 17, 2010, 1:38:50 AM9/17/10
to singap...@googlegroups.com
Hi all,

I believe there are Rubyists interested in GPU computing. I'm developing sgc-ruby-cuda, Ruby bindings for CUDA. It's still at its pre-mature stage, but I think you can at least start to have fun playing with CUDA-enabled GPU.

Feedbacks are welcomed.


Regards,
Shin Yee

Harish Mallipeddi

unread,
Sep 17, 2010, 2:10:26 AM9/17/10
to singap...@googlegroups.com
Hey Shin Yee,

This looks great. I don't have much experience with GPGPU. How are big, real-life CUDA programs written generally? Do they involve writing multiple CUDA kernel programs, and running them one after another?

I remember from a project I did back in the university (there was no CUDA back then I think; we'd to write these pixel shader kernels to get work done), the most expensive part about this was getting data in and out of the GPU memory.

What kinds of CUDA programs have you built?

Cheers,

--
Harish Mallipeddi
http://kodekabuki.com

shinyee

unread,
Sep 17, 2010, 2:59:41 AM9/17/10
to singap...@googlegroups.com
Hi Harish,
 
Hey Shin Yee, 

This looks great. I don't have much experience with GPGPU. How are big, real-life CUDA programs written generally? Do they involve writing multiple CUDA kernel programs, and running them one after another?

Real-life CUDA programs would involve multiple kernel programs, ideally multiple running concurrently to harness all the streaming cores in a GPU. However, many applications still easily hit the limitation of memory bandwidth, even though the GDDR5 is giving 100+GB/s bandwidth.
 
I remember from a project I did back in the university (there was no CUDA back then I think; we'd to write these pixel shader kernels to get work done), the most expensive part about this was getting data in and out of the GPU memory.

Right. GPU computing is getting more excited now as we don't have to work with the limited graphics pipelines with pixel shaders. It's much easier to go about now, but you'll need to work with the GPU architecture to achieve high performance.
 
What kinds of CUDA programs have you built?

Was working on some ray tracing algorithms. Am looking forward to other CUDA programming projects.
 

Regards,
Shin Yee

Raymond Tay

unread,
Oct 1, 2010, 3:35:49 AM10/1/10
to Singapore Ruby Brigade
Nice job. As a CUDA enthusiast,i sure like to take that binding for
ride :)
Reply all
Reply to author
Forward
0 new messages