From 58e06a15e821e9b7ca1bc31399b179deba7a4343 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Fri, 29 Jan 2010 14:20:39 +0100 Subject: Mandelbrot example uses now all available GPUs in parallel, parallelism level is modifiable at runtime. Small modifications due to api changes. --- src/com/mbien/opencl/demos/joglinterop/GLCLInteroperabilityDemo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/mbien/opencl/demos/joglinterop') 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(); -- cgit v1.2.3