From 9cdd142d797518e1aa2834675259523a9a3533a0 Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Sun, 12 Sep 2010 03:15:54 +0200 Subject: fixed bugs - released kernels where used - releasing a programm using HLB already releases all kernels, don't do it twice --- src/com/jogamp/opencl/demos/fft/CLFFTPlan.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/com/jogamp/opencl/demos') diff --git a/src/com/jogamp/opencl/demos/fft/CLFFTPlan.java b/src/com/jogamp/opencl/demos/fft/CLFFTPlan.java index f35ce14..1c8e039 100644 --- a/src/com/jogamp/opencl/demos/fft/CLFFTPlan.java +++ b/src/com/jogamp/opencl/demos/fft/CLFFTPlan.java @@ -267,8 +267,8 @@ public class CLFFTPlan { // may be larger than what kernel may execute with ... if thats the case we need to regenerate the kernel source // setting this as limit i.e max group size and rebuild. if (getPatchingRequired(devices)) { - release(); this.max_work_item_per_workgroup = (int) getMaxKernelWorkGroupSize(devices); + release(); } else { done = true; } @@ -279,9 +279,6 @@ public class CLFFTPlan { * Release system resources. */ public void release() { - for (CLFFTKernelInfo kInfo : kernel_list) { - kInfo.kernel.release(); - } program.release(); } -- cgit v1.2.3