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:
Compile and link the OpenCL code automatically in the Wolfram Language:
Now you can build the interactive interface to dynamically call the OpenCL code: