Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
CUDALink >

CUDAFunction

CUDAFunction[args]
represents a function loaded using CUDAFunctionLoad.
  • The CUDALink application must be loaded using Needs.
  • A 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.
First, load the CUDALink application:
This loads a function from the CUDA source:
This calls the function:
This gives information about the CUDA function:
First, load the CUDALink application:
In[1]:=
Click for copyable input
This loads a function from the CUDA source:
In[2]:=
Click for copyable input
Out[2]=
This calls the function:
In[3]:=
Click for copyable input
Out[3]=
This gives information about the CUDA function:
In[4]:=
Click for copyable input
Out[4]=
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF