I saw this post on your blog and downloaded.. I got some errors.
GreeblesCL gives me an error Quote:available platforms:
name: 'Apple' profile: 'FULL_PROFILE' Vendor: Apple' Version: 'OpenCL 1.0 (Oct 16 2009 04:12:08)'
----------------------------------------------
Using platform: 'Apple {vendor: Apple, version: OpenCL 1.0 (Oct 16 2009 04:12:08), profile: FULL_PROFILE, extensions: []}'
Device 'GeForce 9600M GT'
maxWorkItemSizes = [512, 512, 64]'
maxWorkGroupSize = 512
Device 'GeForce 9400M'
maxWorkItemSizes = [512, 512, 64]'
maxWorkGroupSize = 512
Device 'Intel(R) Core(TM)2 Duo CPU T9900 @ 3.06GHz'
maxWorkItemSizes = [1, 1, 1]'
maxWorkGroupSize = 1
Loading CL Program: /Applications/Processing.app/Contents/Resources/Java/libraries/JavaCL/examples/G
reeblesCL/data/MyProgram.cl
com.nativelibs4java.opencl.CLBuildException: Compilation failure ! (code = -11)
kernel referenced an external function __sind, that could not be found.
at com.nativelibs4java.opencl.CLProgram.build(CLProgram.java:238)
at GreeblesCL.loadProgramAndCompile(GreeblesCL.java:393)
at GreeblesCL.setup(GreeblesCL.java:151)
at processing.core.PApplet.handleDraw(PApplet.java:1402)
at processing.core.PApplet.run(PApplet.java:1327)
at java.lang.Thread.run(Thread.java:637)
Failed to load and compile Kernel program.
dataSize: 161604
java.lang.NullPointerException
(ShaderGLSL) Loading GLSL vertex shader: /Applications/Processing.app/Contents/Resources/Java/libraries/JavaCL/examples/G
reeblesCL/data/vtf_v.glsl
(ShaderGLSL) Loading GLSL fragment shader: /Applications/Processing.app/Contents/Resources/Java/libraries/JavaCL/examples/G
reeblesCL/data/vtf_f.glsl
(ShaderGLSL) Shader was compiled sucessfully! 1
(ShaderGLSL) Error occured with object parameter: 0
Invalid memory access of location 0x0 eip=0x86816856
OpenCLTryout gives me this error on line:
FloatBuffer particleMemTemp = memOut.map( queue, CLMem.MapFlags.Read ); Quote:available platforms:
name: 'Apple' profile: 'FULL_PROFILE' Vendor: Apple' Version: 'OpenCL 1.0 (Oct 16 2009 04:12:08)'
----------------------------------------------
Using platform: 'Apple {vendor: Apple, version: OpenCL 1.0 (Oct 16 2009 04:12:08), profile: FULL_PROFILE, extensions: []}'
Using device 'GeForce 9600M GT'
maxWorkItemSizes = [512, 512, 64]'
maxWorkGroupSize = 512
Using device 'GeForce 9400M'
maxWorkItemSizes = [512, 512, 64]'
maxWorkGroupSize = 512
Using device 'Intel(R) Core(TM)2 Duo CPU T9900 @ 3.06GHz'
maxWorkItemSizes = [1, 1, 1]'
maxWorkGroupSize = 1
java.lang.RuntimeException: Failed to create an OpenCL context based on the current OpenGL context
Exception in thread "Animation Thread" java.lang.NullPointerException
at OpenCLTryout.draw(OpenCLTryout.java:351)
at processing.core.PApplet.handleDraw(PApplet.java:1425)
at processing.core.PApplet.run(PApplet.java:1327)
at java.lang.Thread.run(Thread.java:637)