MCPcopy Index your code
hub / github.com/Syncleus/aparapi / dispose

Method dispose

src/main/java/com/aparapi/Kernel.java:3024–3029  ·  view source on GitHub ↗

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 <

()

Source from the content-addressed store, hash-verified

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;

Callers 5

singleDimensionTestMethod · 0.95
twoDimensionTestMethod · 0.95
testMethod · 0.95

Calls 1

disposeMethod · 0.65

Tested by 5

singleDimensionTestMethod · 0.76
twoDimensionTestMethod · 0.76
testMethod · 0.76