Mandelbrot set demo implemented using NumPy, Numba, DPNP, and Numba-DPEx.
The Mandelbrot set is the set of complex numbers
Images of the Mandelbrot set exhibit an elaborate and infinitely complicated boundary that reveals progressively ever-finer recursive detail at increasing magnifications
For further details please visit respective Wikipedia article.
Install the demo as follows:
conda install -c pycoddiy/label/dev mandelbrot-demo
From command line type:
mandelbrot [command line options]
--variant [numba, numpy, dpnp, numba-dpex]
(defaultnumpy
) - implementation variant--frames-count
- stop rendering after a specified amount of frames. Default 0 meaning that the demo does not stop until user action, e.g. close window--gui
(default) or--no-gui
- render the evolution of the grid or do the computation only and print performance statistics in the end.--task-size
- window size WIDTH, HEIGHT. Example: 1024,800
Clone repository to a local project directory:
git clone https://github.com/samaid/Mandelbrot.git
cd ./Mandelbrot
From the command line type:
python mandelbrot_demo.py [command line options]
--variant [numba, numpy, dpnp, numba-dpex]
(defaultnumpy
) - implementation variant--frames-count
- stop rendering after a specified amount of frames. Default 0 meaning that the demo does not stop until user action, e.g. close window--gui
(default) or--no-gui
- render the evolution of the grid or do the computation only and print performance statistics in the end.--task-size
- window size WIDTH, HEIGHT. Example: 1024,800