diff options
author | Michael Bien <[email protected]> | 2010-01-29 14:36:19 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-01-29 14:36:19 +0100 |
commit | 2015fa5cd47b9be234f30e4b98d06b83486e4fb2 (patch) | |
tree | a03a73f6875e06ebdf8a910d939556ee139a9cb2 /test/com/mbien/opencl/CLConcurrencyTest.java | |
parent | b0102cab5062eb8cb06329bff457d4dd5b9d0099 (diff) |
splitted CLImageFormat into CLImageFormat and (generated) CLImageFormatImpl.
refactored CLProgram kernel creation code.
updated tests.
Diffstat (limited to 'test/com/mbien/opencl/CLConcurrencyTest.java')
-rw-r--r-- | test/com/mbien/opencl/CLConcurrencyTest.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/com/mbien/opencl/CLConcurrencyTest.java b/test/com/mbien/opencl/CLConcurrencyTest.java index 9234a4c8..94e8c4ee 100644 --- a/test/com/mbien/opencl/CLConcurrencyTest.java +++ b/test/com/mbien/opencl/CLConcurrencyTest.java @@ -36,7 +36,7 @@ public class CLConcurrencyTest { CLProgram program = context.createProgram(getClass().getResourceAsStream("testkernels.cl")).build(); - CLKernel vectorAddKernel = program.getCLKernel("VectorAddGM") + CLKernel vectorAddKernel = program.createCLKernel("VectorAddGM") .setArg(3, elements); CLCommandQueue queue = context.getCLDevices()[0].createCommandQueue(); @@ -106,11 +106,10 @@ public class CLConcurrencyTest { CLProgram program = context.createProgram(getClass().getResourceAsStream("testkernels.cl")).build(); - final CLKernel vectorAddKernel1 = program.getCLKernel("VectorAddGM") + final CLKernel vectorAddKernel1 = program.createCLKernel("VectorAddGM") .setArg(3, elements); - //TODO introduce public api for cloning/creating kernels - final CLKernel vectorAddKernel2 = vectorAddKernel1.copy() + final CLKernel vectorAddKernel2 = program.createCLKernel("VectorAddGM") .setArg(3, elements); |