Wolfram Language & System 10.0 (2014)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

Automatic Single to Double Precision Conversion

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:
In[1]:=
Click for copyable input
Compile and link the OpenCL code automatically in Mathematica:
In[2]:=
Click for copyable input
Now you can build the interactive interface to dynamically call the OpenCL code:
In[3]:=
Click for copyable input
In[4]:=
Click for copyable input