Sounds like fun too :-)

I have an NVidia card and when I heard about Rootbeer, I couldn't resist, 
but I can understand your taking the OpenCL route for portability... 
although I imagined that OpenCL would define an abstract layer that would 
require another level of compilation to a target platform...so I'm 
interested to know whether I have misunderstood and a little bit more 
detail about your approach.

I probably have a lot less to do than you - I have currently just 
translated Phil (Mr. Rootbeer)'s example app, which sums up some big arrays 
of ints in parallel on the GPU, into Clojure, compiled it, put it in a jar 
with a Clojure runtime and tried using Rootbeer to generate the necessary 
bits and pieces to run it on my GPU.

Of courrse, Rootbeer has probably not seen Clojure generated bytecode 
before, and I don't think anyone has been crazy enough to challenge it with 
anything quite so ambitious as I am doing, so it is struggling a little and 
I am in conversation with Phil to try to get through this stage.

It will be interesting to see just how much code is generated, whether it 
can be usefully run on my GPU, how long setup/teardown take etc - I've no 
idea what to expect, but know enough not to expect miracles...

If I do get something running and it does still seem to make sense in terms 
of footprint, time, etc my next step will be to move towards being able to 
repeat the process for an arbitrary Clojure function at runtime - luckily I 
already have a patch for Clojure that stashes the bytecode of on-the-fly 
classes in a map in case they are needed in other VMs when i send them 
instances from the original VM, so I can use this same map to look up these 
classes and pass them to Rootbeer... :-)

If it looks like it is going to fly I will check in something at Github so 
others can have a look around.

Good luck with OpenCL, and please keep us all posted,

regards,


Jules

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to