此为 Mathematica 8 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)

SymbolicOpenCLThreadIndex

SymbolicOpenCLThreadIndex[dim]
is a symbolic representation of an OpenCL kernel thread index call.
  • The OpenCLLink application must be loaded using Needs.
  • Symbolic expressions are inert; they evaluate to themselves, staying in an unevaluated form.
  • Symbolic expressions can be converted into a C string with ToCCodeString.
First, load the OpenCLLink application:
This gets the dimension 1 kernel thread index:
This gets the dimension 2 kernel thread index:
First, load the OpenCLLink application:
In[1]:=
Click for copyable input
This gets the dimension 1 kernel thread index:
In[2]:=
Click for copyable input
Out[2]=
This gets the dimension 2 kernel thread index:
In[3]:=
Click for copyable input
Out[3]=