summaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/demos/fft
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-09-12 03:15:54 +0200
committerMichael Bien <[email protected]>2010-09-12 03:15:54 +0200
commit9cdd142d797518e1aa2834675259523a9a3533a0 (patch)
treebe8733678035f7c56a24b8ee5cf82650fb82a98b /src/com/jogamp/opencl/demos/fft
parent13a1ca4e029e5e44c31bdb6f41440af73646d65c (diff)
fixed bugs
- released kernels where used - releasing a programm using HLB already releases all kernels, don't do it twice
Diffstat (limited to 'src/com/jogamp/opencl/demos/fft')
-rw-r--r--src/com/jogamp/opencl/demos/fft/CLFFTPlan.java5
1 files changed, 1 insertions, 4 deletions
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();
}