'

Generate a Mandelbulb Set with CUDA Functionality

    
Load the CUDALink package:
In[25]:=
Click for copyable input
Define the size and parameters of the Mandelbulb set:
In[28]:=
Click for copyable input
Define the camera position:
In[28]:=
Click for copyable input
Combine these parameters in the configuration:
In[28]:=
Click for copyable input
Allocate the CUDA GPU memory:
In[37]:=
Click for copyable input
Out[37]=
Load and link the CUDA Mandelbulb function:
         srcf = FileNameJoin[{$CUDALinkPath, "SupportFiles", "mandelbulb.cu"}]
In[38]:=
Click for copyable input
Out[38]=
Execute the Mandelbulb function with the specified parameters:
In[39]:=
Click for copyable input
Out[39]=
Get the result from the GPU memory and display it:
In[40]:=
Click for copyable input
In[41]:=
Click for copyable input
Out[41]=
New to Mathematica? Find your learning path »
Have a question? Ask support »