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:
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