From 7c83da1d2e3e8d122e562408a63a13928cc97c83 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Mon, 22 Feb 2010 12:47:41 +0100 Subject: several small refactorings, api and javadoc improvements. added automatically generated specialized CLExceptions for each known OpenCL error. added get/set Properties to CLCommandQueue. --- test/com/mbien/opencl/CLCommandQueueTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/com/mbien/opencl/CLCommandQueueTest.java') diff --git a/test/com/mbien/opencl/CLCommandQueueTest.java b/test/com/mbien/opencl/CLCommandQueueTest.java index b52ef5ed..2cf9c1bf 100644 --- a/test/com/mbien/opencl/CLCommandQueueTest.java +++ b/test/com/mbien/opencl/CLCommandQueueTest.java @@ -26,7 +26,7 @@ public class CLCommandQueueTest { //CLCommandQueueEnums EnumSet queueMode = Mode.valuesOf(CL.CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL.CL_QUEUE_PROFILING_ENABLE); - assertTrue(queueMode.contains(Mode.OUT_OF_ORDER_EXEC_MODE)); + assertTrue(queueMode.contains(Mode.OUT_OF_ORDER_MODE)); assertTrue(queueMode.contains(Mode.PROFILING_MODE)); assertNotNull(Mode.valuesOf(0)); @@ -69,7 +69,7 @@ public class CLCommandQueueTest { CLProgram program = context.createProgram(getClass().getResourceAsStream("testkernels.cl")).build(); CLKernel vectorAddKernel = program.createCLKernel("VectorAddGM").setArg(3, elements); - CLCommandQueue queue = context.getCLDevices()[0].createCommandQueue(); + CLCommandQueue queue = context.getDevices()[0].createCommandQueue(); final CLEventList events = new CLEventList(2); @@ -126,7 +126,7 @@ public class CLCommandQueueTest { CLProgram program = context.createProgram(getClass().getResourceAsStream("testkernels.cl")).build(); CLKernel vectorAddKernel = program.createCLKernel("VectorAddGM").setArg(3, elements); - CLCommandQueue queue = context.getCLDevices()[0].createCommandQueue(Mode.PROFILING_MODE); + CLCommandQueue queue = context.getDevices()[0].createCommandQueue(Mode.PROFILING_MODE); queue.putWriteBuffer(clBufferA, true) // write A .putWriteBuffer(clBufferB, true);// write B @@ -165,7 +165,7 @@ public class CLCommandQueueTest { CLContext context = CLContext.create(); - CLDevice[] devices = context.getCLDevices(); + CLDevice[] devices = context.getDevices(); if (devices.length < 2) { out.println("aborting test... need at least 2 devices"); -- cgit v1.2.3