OpenCLLink`
OpenCLLink`
OpenCLFunction
OpenCLFunction[args]
represents a function loaded using OpenCLFunctionLoad.
Details and Options
- The OpenCLLink application must be loaded using Needs["OpenCLLink`"].
- OpenCLFunction is returned by OpenCLFunctionLoad.
- An OpenCLFunction object can be used the same way as a pure function.
- The function represented by OpenCLFunction runs in the same process as the Wolfram Language kernel.
- The function represented by OpenCLFunction is unloaded when the Wolfram Language kernel exits.
- On launch, if the number of threads is not specified (as an extra argument to the OpenCLFunction), then the dimension of the element with largest rank and dimension is chosen. For images, the rank is set to 2.
- On launch, if the number of threads is not a multiple of the block dimension, then it is incremented to be a multiple of the block dimension.
Examples
Wolfram Research (2010), OpenCLFunction, Wolfram Language function, https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLFunction.html.
Text
Wolfram Research (2010), OpenCLFunction, Wolfram Language function, https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLFunction.html.
CMS
Wolfram Language. 2010. "OpenCLFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLFunction.html.
APA
Wolfram Language. (2010). OpenCLFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLFunction.html