diff options
author | Michael Bien <[email protected]> | 2010-01-29 14:20:39 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-01-29 14:20:39 +0100 |
commit | 58e06a15e821e9b7ca1bc31399b179deba7a4343 (patch) | |
tree | 46917d3c2a5c8a59156f9f74cc29e9edf9a7489f /src/com/mbien/opencl/demos/hellojocl | |
parent | da609ba8c21e607196daca60b7d994eb2cb6fe4c (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/hellojocl')
-rw-r--r-- | src/com/mbien/opencl/demos/hellojocl/HelloJOCL.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/mbien/opencl/demos/hellojocl/HelloJOCL.java b/src/com/mbien/opencl/demos/hellojocl/HelloJOCL.java index 115278a..acbd84c 100644 --- a/src/com/mbien/opencl/demos/hellojocl/HelloJOCL.java +++ b/src/com/mbien/opencl/demos/hellojocl/HelloJOCL.java @@ -45,7 +45,7 @@ public class HelloJOCL { // get a reference to the kernel functon with the name 'VectorAdd' // and map the buffers to its input parameters. - CLKernel kernel = program.getCLKernel("VectorAdd"); + CLKernel kernel = program.createCLKernel("VectorAdd"); kernel.putArgs(clBufferA, clBufferB, clBufferC).putArg(elementCount); // create command queue on fastest device. |