From: Olivier Saut Date: 2012-09-09T16:38:55+09:00 Subject: Re: Using ruby for scientific computing Hi, I had not thought of using Open CL. I'll check it. The last commits to the project dates back to two years ago. Thanks ! Le 9 sept. 2012 à 08:06, Saji Hameed a écrit : > On Sun, Sep 9, 2012 at 1:06 AM, Olivier Saut wrote: >> Hi all, >> >> For pedagogic purposes, I am trying to solve simple partial differential >> equations (say a diffusion equation on a regular mesh in 2D) with Ruby. >> Using the NArray gem, I have built a satisfactory tool from an interface >> (and ease of use) point of view but the performance are suboptimal. >> >> I am now wondering what is the right way to improve my code >> performance-wise. I am doing a lot of matrix-vector and vector-vector >> products. >> > > Sometime ago, there was a Google Summer of Code project to port NArray to OpenCL > http://www.slideshare.net/scdn/5scdn-ruby-summer-of-code-narray-on-opencl > https://github.com/kazuyukitanimura/narray > > There is also this project http://ruby-opencl.rubyforge.org/, if you > want to try multicore acceleration > (as a means to speed up your code) with OpenCL. It should work with > multicore cpus as well as GPUs > > > saji > -- > > Saji N Hameed, > ARC-ENV, Center for Advanced Information Science and Technology, > University of Aizu, Tsuruga, Ikki-machi, > Aizuwakamatsu-shi, Fukushima 965-8580, > Japan > > Tel: +81242 37-2736 > Fax:+81242 37-2760 > email: saji@u-aizu.ac.jp > url: http://www.u-aizu.ac.jp > bib: http://www.researcherid.com/rid/B-9188-2009 > - Olivier