summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-01-29 14:20:39 +0100
committerMichael Bien <[email protected]>2010-01-29 14:20:39 +0100
commit58e06a15e821e9b7ca1bc31399b179deba7a4343 (patch)
tree46917d3c2a5c8a59156f9f74cc29e9edf9a7489f /src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java
parentda609ba8c21e607196daca60b7d994eb2cb6fe4c (diff)
Mandelbrot example uses now all available GPUs in parallel, parallelism level is modifiable at runtime.
Small modifications due to api changes.
Diffstat (limited to 'src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java')
-rw-r--r--src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java b/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java
index 7fceabb..9dfaf5a 100644
--- a/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java
+++ b/src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java
@@ -176,7 +176,7 @@ public class GLCLInteroperabilityDemo implements GLEventListener {
System.out.println("cl buffer type: " + clBuffer.getGLObjectType());
System.out.println("shared with gl buffer: " + clBuffer.getGLObjectID());
- kernel = program.getCLKernel("sineWave")
+ kernel = program.createCLKernel("sineWave")
.putArg(clBuffer)
.putArg(MESH_SIZE)
.rewind();