Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how

Legacy Documentation

Mathematica 8 (2010)

This is documentation for Mathematica 8, which was
based on an earlier version of Wolfram Language.
View current documentation (Version 14.3)

OpenCLFunction

OpenCLFunction[args]
represents a function loaded using OpenCLFunctionLoad .
  • The OpenCLLink application must be loaded using Needs .
  • An object can be used the same way as a pure function.
  • The function represented by runs in the same process as the Mathematica kernel.
  • The function represented by is unloaded when the Mathematica kernel exits.
  • On launch, if the number of threads is not specified (as an extra argument to the ), 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.
(1)
First, load the OpenCLLink application:
This loads a function from OpenCL source:
This calls the function:
This finds information about the function:
First, load the OpenCLLink application:
This loads a function from OpenCL source:
Out[2]=
This calls the function:
Out[3]=
This finds information about the function:
Out[4]=


ja zh

AltStyle によって変換されたページ (->オリジナル) /