simple opencl binding

Moderator: michal.warecki

simple opencl binding

Postby notzed » Wed Mar 05, 2014 3:03 am

I've been hacking on an java opencl binding and because it's easy to build i ported it to the parallella (mostly because i haven't touched the parallella in months and thought i should find some use for it).

Unfortunately I think my rev-0 install image is a mismatch for the copthr 1.6 sdk ... so it just crashes during the library load. It may of course also be some incompatibility with the jvm. I'm not that keen on chasing down issues in an ubuntu distribution right but i'll see how i go.

The library lives here: http://www.users.on.net/~notzed/software/zcl.html

It's pretty bare-bones right now and not very tested beyond the basic api entry points (enough to discover devices, run a kernel, and retrieve results). The api is for opencl 1.2 but i map to the 1.1 api on parallella. The default makefile is setup for amd sdk on amd64 linux but there are some entries (jni/Makefile) for parallella. I built it using jdk8: https://jdk8.java.net/download.html
notzed
 
Posts: 331
Joined: Mon Dec 17, 2012 12:28 am
Location: Australia

Re: simple opencl binding

Postby 9600 » Wed Mar 05, 2014 4:07 pm

notzed wrote:Unfortunately I think my rev-0 install image is a mismatch for the copthr 1.6 sdk ... so it just crashes during the library load.


Could well be the case, as when I used the binary build with Debian 7.0 the COPRTHR examples would build but segfault. Probably best to build the SDK from source if the available binaries assume a different version of the OS or eSDK.

Cheers,

Andrew
Andrew Back (a.k.a. 9600 / carrierdetect)
User avatar
9600
 
Posts: 997
Joined: Mon Dec 17, 2012 3:25 am


Return to Java

Who is online

Users browsing this forum: No registered users and 1 guest