Skip to content

Mandelbrot set simulation, written in OpenCL and Python

Notifications You must be signed in to change notification settings

yboetz/mandelbrot_opencl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

This is a simulation calculating the Mandelbrot set. Number crunching code is done in OpenCL, which is then called in Python and visualized using pyqtgraph.

Requirements

You will need an installation of OpenCL. For Intel CPUs/GPUs on Ubuntu you can follow this post on askubuntu. For other distributions and Nvidia or AMD GPUs you can follow Andreas Klöckner's wiki.

You also need python 3.x with the following packages:

numpy
pyopencl
PyQt5
pyqtgraph

I suggest installing virtualenv & virtualenvwrapper, so you don't clutter your system python installation with additional packages.

How do I set it up?

Clone the git repository

git clone git@github.com:yboetz/mandelbrot_opencl.git

Then install the required python packages (best in your virtualenv)

cd mandelbrot_opencl
pip install -r requirements.txt

Run the widget

python src/main.py

Key controls

Basic controls:

  • W/A/S/D - move around
  • E - zoom in
  • Q - zoom out
  • C - set number of color steps
  • I - set number of iterations to calculate
  • R - recenter and zoom out
  • Esc - quit app

About

Mandelbrot set simulation, written in OpenCL and Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published