aboutsummaryrefslogtreecommitdiffstats
path: root/test/com/mbien/opencl/CLConcurrencyTest.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-01-29 14:36:19 +0100
committerMichael Bien <[email protected]>2010-01-29 14:36:19 +0100
commit2015fa5cd47b9be234f30e4b98d06b83486e4fb2 (patch)
treea03a73f6875e06ebdf8a910d939556ee139a9cb2 /test/com/mbien/opencl/CLConcurrencyTest.java
parentb0102cab5062eb8cb06329bff457d4dd5b9d0099 (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.java7
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);