summaryrefslogtreecommitdiffstats
path: root/test/com/mbien/opencl/CLConcurrencyTest.java
diff options
context:
space:
mode:
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);