This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
OpenCLLink allows Mathematica to use the OpenCL parallel computing language. It contains functions that facilitate loading user-defined OpenCL functions into Mathematica. OpenCLLink also integrates OpenCL with existing Mathematica development tools, allowing a high degree of automation and control.
OpenCL Platform and Device
$OpenCLPlatform platform used in OpenCLLink computation
$OpenCLDevice device used in OpenCLLink computation
OpenCLQ checks whether the system is compatible with OpenCLLink
OpenCLInformation enumerates OpenCL system information
$OpenCLLinkPath path to the OpenCLLink application
OpenCLFunction handle to OpenCL function loaded using OpenCLFunctionLoad
OpenCLFunctionLoad loads OpenCLFunction into Mathematica
OpenCLMemory handle to OpenCL memory registered using OpenCLMemoryLoad or OpenCLMemoryAllocate
OpenCLMemoryLoad loads Mathematica memory into OpenCLLink returning OpenCLMemory
OpenCLMemoryAllocate allocates memory for OpenCLLink returning OpenCLMemory
OpenCLMemoryGet copies OpenCLMemory to Mathematica
OpenCLMemoryUnload unloads/deletes OpenCLMemory handle
OpenCLMemoryInformation gets OpenCLMemory handle information
OpenCLMemoryCopyToHost copies OpenCLMemory from GPU to CPU
OpenCLMemoryCopyToDevice copies OpenCLMemory from CPU to GPU
Symbolic OpenCL
SymbolicOpenCLFunction symbolic representation of an OpenCL function
SymbolicOpenCLBlockIndex symbolic representation of a block index OpenCL call
SymbolicOpenCLThreadIndex symbolic representation of a thread index OpenCL call
SymbolicOpenCLBlockDimension symbolic representation of a block dimension OpenCL call
SymbolicOpenCLCalculateKernelIndex symbolic representation of an OpenCL index calculation
SymbolicOpenCLDeclareIndexBlock symbolic representation of an OpenCL index declaration