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

OpenCLFunctionInformation

OpenCLFunctionInformation[oclfun]
returns information on OpenCLFunction oclfun such as build log, build options, source code, etc.
  • The OpenCLLink application must be loaded using Needs.
First, load the OpenCLLink application:
This loads a function from OpenCL source:
This finds information about the function:
This output for is a rule list, so the build log can be retrieved:
This calls the function:
First, load the OpenCLLink application:
In[1]:=
Click for copyable input
This loads a function from OpenCL source:
In[2]:=
Click for copyable input
Out[2]=
This finds information about the function:
In[3]:=
Click for copyable input
Out[3]=
This output for is a rule list, so the build log can be retrieved:
In[4]:=
Click for copyable input
Out[4]=
This calls the function:
In[5]:=
Click for copyable input
Out[5]=