summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/CLKernel.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2009-10-20 00:53:50 +0200
committerMichael Bien <[email protected]>2009-10-20 00:53:50 +0200
commit7f2db980b303fa75f3830679ce65fe4ae41c30dc (patch)
treea22f4ad2a068ff0816ebc2a4ca71bb2426ee46e4 /src/com/mbien/opencl/CLKernel.java
parent224985638b2a1486e4b7da1642a4f2cc22fc8644 (diff)
added CLCommandQueue to CLContext's resource management code, minor fixes...
Diffstat (limited to 'src/com/mbien/opencl/CLKernel.java')
-rw-r--r--src/com/mbien/opencl/CLKernel.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/mbien/opencl/CLKernel.java b/src/com/mbien/opencl/CLKernel.java
index 8f470719..1db3da38 100644
--- a/src/com/mbien/opencl/CLKernel.java
+++ b/src/com/mbien/opencl/CLKernel.java
@@ -53,8 +53,9 @@ public class CLKernel {
}
public void release() {
- cl.clReleaseKernel(ID);
+ int ret = cl.clReleaseKernel(ID);
program.kernelReleased(this);
+ checkForError(ret, "can not release kernel");
}
@Override