www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - anybody working on OpenCL bindings?

reply Trass3r <mrmocool gmx.de> writes:
Is anybody already working on OpenCL bindings now that Nvidia finally 
released a public OpenCL driver?
Sep 28 2009
parent reply Tim Matthews <tim.matthews7 gmail.com> writes:
Trass3r wrote:
 Is anybody already working on OpenCL bindings now that Nvidia finally 
 released a public OpenCL driver?
ideal start? http://www.opentk.com/news/C%2523-opencl-bindings-ready-for-testing
Sep 29 2009
parent reply Trass3r <mrmocool gmx.de> writes:
Tim Matthews schrieb:

 ideal start? 
 http://www.opentk.com/news/C%2523-opencl-bindings-ready-for-testing
There also is a semiofficial C++ binding (http://www.khronos.org/registry/cl/) and one for Java (http://ochafik.free.fr/blog/?p=190)
Sep 29 2009
parent reply Jeremie Pelletier <jeremiep gmail.com> writes:
Trass3r wrote:
 Tim Matthews schrieb:

 an ideal start? 
 http://www.opentk.com/news/C%2523-opencl-bindings-ready-for-testing
There also is a semiofficial C++ binding (http://www.khronos.org/registry/cl/) and one for Java (http://ochafik.free.fr/blog/?p=190)
http://www.2shared.com/file/8117304/76c7c9ac/OpenCL.html I wrote these some time ago after first hearing about OpenCL, only to realize there was no implementations yet. Then I got a new laptop with a 9800M only to realize ATI had an OpenCL driver available days later, my old computer had an x1950xtx :o( So nVidia finally released their CL drivers? This is great news!
Sep 29 2009
parent reply Trass3r <mrmocool gmx.de> writes:
Jeremie Pelletier schrieb:
 http://www.2shared.com/file/8117304/76c7c9ac/OpenCL.html
 
 I wrote these some time ago after first hearing about OpenCL, only to 
 realize there was no implementations yet. Then I got a new laptop with a 
 9800M only to realize ATI had an OpenCL driver available days later, my 
 old computer had an x1950xtx :o(
 
 So nVidia finally released their CL drivers? This is great news!
 
Yeah, they just released them yesterday. Are your bindings still up-to-date?
Sep 29 2009
parent reply Jeremie Pelletier <jeremiep gmail.com> writes:
Trass3r wrote:
 Jeremie Pelletier schrieb:
 http://www.2shared.com/file/8117304/76c7c9ac/OpenCL.html

 I wrote these some time ago after first hearing about OpenCL, only to 
 realize there was no implementations yet. Then I got a new laptop with 
 a 9800M only to realize ATI had an OpenCL driver available days later, 
 my old computer had an x1950xtx :o(

 So nVidia finally released their CL drivers? This is great news!
Yeah, they just released them yesterday. Are your bindings still up-to-date?
Can't tell, I used the Khronos reference C headers some months ago, it was a few weeks before the first mention of CL on slashdot so it may be old! Some thing may have changed since then, but nothing major, and nothing hard to fix (just update the prototype or declaration from the Khronos headers, no need to redo it all). In any ways, it took me at most half an hour to manually create these bindings; an editor with regex find&replace is the best thing ever, feels like using the stream editor (sed) on unix! Let me know if something is missing :)
Sep 29 2009
parent reply Trass3r <mrmocool gmx.de> writes:
Jeremie Pelletier schrieb:
 Some thing may have changed since then
Yeah, some constants have changed and a few functions. I'm modifying the bindings right now.
Sep 29 2009
parent reply Jeremie Pelletier <jeremiep gmail.com> writes:
Trass3r wrote:
 Jeremie Pelletier schrieb:
 Some thing may have changed since then
Yeah, some constants have changed and a few functions. I'm modifying the bindings right now.
Cool, can you post a link to the updated version when you're done? I'm gonna start toying with CL in a week or two when I get some free time.
Sep 29 2009
next sibling parent Trass3r <mrmocool gmx.de> writes:
Here's my current version:
http://ul.to/be4o02
Sep 29 2009
prev sibling parent Trass3r <mrmocool gmx.de> writes:
Jeremie Pelletier schrieb:
 Cool, can you post a link to the updated version when you're done? I'm 
 gonna start toying with CL in a week or two when I get some free time.
Any news here? I've been away for some time.
Nov 05 2009