I'm using JavaCL as the underlying library, which uses JNA rather than
JNI.  My understanding of the distinction (which is not perfect) is
that JNA relies on bindings generated at runtime, rather than the
static per-platform binaries used in JNI.  As a result, you only need
a jar file.

I believe JNA is slightly slower than JNI, but the asynchronous design
of OpenCL makes this a non-issue; as long as enqueuing a computation
takes less time than the computation itself, it doesn't really matter
how fast your bindings are.

Zach

On Jun 21, 7:17 am, Wilson MacGyver <wmacgy...@gmail.com> wrote:
> I noticed you are importing com.nativelibs4java.opencl
> in src/clax/data.clj, looking at your project.clj I see
> a dep on clax/javacl
>
> is that where you are pulling the native lib for
> OpenCL? Can you explain a bit on your approach of
> getting this to work on various platforms? Esp on OSX
> and Linux.
>
> Thanks,
>
>
>
>
>
> On Mon, Jun 21, 2010 at 2:04 AM, Zach Tellman <ztell...@gmail.com> wrote:
> > Wrappers for OpenCL have been discussed a few times on this list, so
> > hopefully a few of you will be interested to hear that one is
> > available athttp://github.com/ztellman/calx.
>
> > In my opinion, the C-variant language used by OpenCL doesn't have too
> > much incidental complexity, so I don't think I'll spend too much
> > effort on trying to hide it away.  There are, however, some operations
> > that are non-trivial to accomplish in a parallel manner (filter, for
> > instance), so I'll be working on making those simpler.
>
> > If anyone has any questions, I'd be happy to answer them.
>
> > --
> > 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
>
> --
> Omnem crede diem tibi diluxisse supremum.

-- 
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