Release any resources associated with this Kernel. When the execution mode is CPU or GPU , Aparapi stores some OpenCL resources in a data structure associated with the kernel instance. The dispose() method must be called to release these resources. If <
()
| 3022 | * If <code>execute(int _globalSize)</code> is called after <code>dispose()</code> is called the results are undefined. |
| 3023 | */ |
| 3024 | public synchronized void dispose() { |
| 3025 | if (kernelRunner != null) { |
| 3026 | kernelRunner.dispose(); |
| 3027 | kernelRunner = null; |
| 3028 | } |
| 3029 | } |
| 3030 | |
| 3031 | public boolean isRunningCL() { |
| 3032 | return getTargetDevice() instanceof OpenCLDevice; |