OpenCLMemoryUnload
OpenCLMemoryUnload[mem1,mem2,…]
unloads OpenCLMemory from the OpenCLLink memory manager.
更多信息和选项
- The OpenCLLink application must be loaded using Needs["OpenCLLink`"].
- OpenCLMemory is returned by OpenCLMemoryLoad or OpenCLMemoryAllocate.
- OpenCLMemoryUnload returns Null when successful.
范例
打开所有单元关闭所有单元基本范例 (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:
文本
Wolfram Research (2010),OpenCLMemoryUnload,Wolfram 语言函数,https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLMemoryUnload.html.
CMS
Wolfram 语言. 2010. "OpenCLMemoryUnload." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLMemoryUnload.html.
APA
Wolfram 语言. (2010). OpenCLMemoryUnload. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLMemoryUnload.html 年