On 21/11/12 16:22, Timothy Baldridge wrote:
If you are running pure arithmetic code over primitive arrays, and not
doing allocation (so no seqs, higher order functions, etc.) then it's
pretty straight forward to translate Clojure code to GPU code. Now
notice that all the above qualifications are directly opposite to
"normal" Clojure practices, so yes, it's often easier said than done.
aaaa so that is the catch!!! I was sort of hoping I could parallelise
the following function which is my bottleneck:
(definline team-moves
"Returns all the moves (a reducer) for the team with direction 'dir' on
this board b."
[b dir exposes-check?]
`(r/mapcat
(fn [p#]
(getMoves p# ~b ~exposes-check?)) (gather-team ~b ~dir)))
I guess I can stop dreaming now... :-!
thanks Timothy & Neal for explanations and links...
Jim
--
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