'

Generate a Mandelbulb Set with CUDA Functionality

    
Load the CUDALink package:
In[1]:=
Click for copyable input
Define the size and parameters of the Mandelbulb set:
In[2]:=
Click for copyable input
Define the camera position:
In[3]:=
Click for copyable input
Combine these parameters in the configuration:
In[4]:=
Click for copyable input
Allocate the CUDA GPU memory:
In[5]:=
Click for copyable input
Out[5]=
Load and link the CUDA Mandelbulb function:
         srcf = FileNameJoin[{$CUDALinkPath, "SupportFiles", "mandelbulb.cu"}]
In[6]:=
Click for copyable input
Out[6]=
Execute the Mandelbulb function with the specified parameters:
In[7]:=
Click for copyable input
Out[7]=
Get the result from the GPU memory and display it:
In[8]:=
Click for copyable input
In[9]:=
Click for copyable input
Out[9]=