OpenCLMemoryUnload
OpenCLMemoryUnload[mem1,mem2,…]
unloads OpenCLMemory from the OpenCLLink memory manager.
Details and Options
- The OpenCLLink application must be loaded using Needs["OpenCLLink`"].
- OpenCLMemory is returned by OpenCLMemoryLoad or OpenCLMemoryAllocate.
- OpenCLMemoryUnload returns Null when successful.
Examples
open allclose allBasic Examples (1)
First, load the OpenCLLink application:
This registers the list ConstantArray[0,10] with the OpenCLLink memory manager, returning an OpenCLMemory handle:
Possible Issues (1)
Performing actions on unloaded memory will return an error:
This unloads the memory registered:
This tries to find information about unloaded memory using OpenCLMemoryInformation:
Text
Wolfram Research (2010), OpenCLMemoryUnload, Wolfram Language function, https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLMemoryUnload.html.
CMS
Wolfram Language. 2010. "OpenCLMemoryUnload." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLMemoryUnload.html.
APA
Wolfram Language. (2010). OpenCLMemoryUnload. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLMemoryUnload.html