summaryrefslogtreecommitdiffstats
path: root/test/com/jogamp/opencl/HighLevelBindingTest.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-06-16 17:30:59 +0200
committerMichael Bien <[email protected]>2010-06-16 17:30:59 +0200
commita2cf85ca7c9e90cec6604559548e6b73a82d57da (patch)
tree4ce95125f092a16ed2048bb87b9fb3ee917d83b0 /test/com/jogamp/opencl/HighLevelBindingTest.java
parent3fa5e65225e074dc5bee626766e98e022d9dd1d2 (diff)
moved calls to program.createCLKernels() into seperate test method.
NV CL 1.1 devdriver has some issues in this area.
Diffstat (limited to 'test/com/jogamp/opencl/HighLevelBindingTest.java')
-rw-r--r--test/com/jogamp/opencl/HighLevelBindingTest.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/com/jogamp/opencl/HighLevelBindingTest.java b/test/com/jogamp/opencl/HighLevelBindingTest.java
index 35c13261..e08fadc7 100644
--- a/test/com/jogamp/opencl/HighLevelBindingTest.java
+++ b/test/com/jogamp/opencl/HighLevelBindingTest.java
@@ -279,15 +279,7 @@ public class HighLevelBindingTest {
CLBuffer<ByteBuffer> clBufferB = context.createBuffer(srcB, Mem.READ_ONLY);
CLBuffer<ByteBuffer> clBufferC = context.createBuffer(dest, Mem.WRITE_ONLY);
- Map<String, CLKernel> kernels = program.createCLKernels();
- for (CLKernel kernel : kernels.values()) {
- out.println("kernel: "+kernel.toString());
- }
-
- assertNotNull(kernels.get("VectorAddGM"));
- assertNotNull(kernels.get("Test"));
-
- CLKernel vectorAddKernel = kernels.get("VectorAddGM");
+ CLKernel vectorAddKernel = program.createCLKernel("VectorAddGM");
vectorAddKernel.setArg(0, clBufferA)
.setArg(1, clBufferB)