Wolfram 语言与系统 10.0 (2014)|旧版文档

此为更早版本的 Wolfram 语言文档查看最新文档(版本11.2)

Speed up Computations with Parallel GPU Computing

Write code that will use the maximum available precision on the specific CUDA or OpenCL device.

First, define the OpenCL code to build the Julia set fractal:
Click for copyable input
Compile and link the OpenCL code automatically in Mathematica:
Click for copyable input
Now you can build the interactive interface to dynamically call the OpenCL code:
Click for copyable input
Click for copyable input