From a93e4532f9515f5b2c0d2c67a45db1236a29ab12 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Fri, 12 Feb 2010 02:15:06 +0100 Subject: fixed bug in CL[GL]Context.create(..., device), added test. CLKernel is now Cloneable. --- src/com/mbien/opencl/CLKernel.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/com/mbien/opencl/CLKernel.java') diff --git a/src/com/mbien/opencl/CLKernel.java b/src/com/mbien/opencl/CLKernel.java index 7e2ee54e..eb817f14 100644 --- a/src/com/mbien/opencl/CLKernel.java +++ b/src/com/mbien/opencl/CLKernel.java @@ -19,7 +19,7 @@ import static com.mbien.opencl.CL.*; * CLKernel is not threadsafe. * @author Michael Bien */ -public class CLKernel implements CLResource/*, Cloneable*/ { +public class CLKernel implements CLResource, Cloneable { public final long ID; public final String name; @@ -228,11 +228,11 @@ public class CLKernel implements CLResource/*, Cloneable*/ { } /** - * Returns a new instance of this kernel. + * Returns a new instance of this kernel with uninitialized arguments. */ -// @Override -// public CLKernel clone() { -// return program.createCLKernel(name); -// } + @Override + public CLKernel clone() { + return program.createCLKernel(name).setForce32BitArgs(force32BitArgs); + } } -- cgit v1.2.3