Skip to content

High-performance Mandelbrot explorer with CPU multicore, CUDA & OpenCL support.

License

Notifications You must be signed in to change notification settings

Prtm2110/parallelbrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parallelbrot

GPU-accelerated Mandelbrot set renderer with OpenCL (cross-platform), CUDA (NVIDIA), and CPU backends.

Mandelbrot Renderer Demo

Build & Run

Install dependencies first (Ubuntu/Debian):

make install-deps-ubuntu   # OpenCL deps
make install-cuda-ubuntu   # CUDA deps (NVIDIA only)

Then build and run:

make opencl && build/mandelbrot_opencl   # Any GPU (recommended)
make cuda   && build/mandelbrot_cuda     # NVIDIA only (fastest)
make cpu    && build/mandelbrot_cpu      # CPU fallback
make clean                               # Remove build artifacts

For other distros, replace ubuntu with fedora or arch.

Controls

Key / Input Action
Mouse drag Pan
Mouse wheel Zoom
Arrow keys Pan
+ / - Increase / decrease iterations
C Cycle color schemes
R Reset view
ESC Quit

Requirements

  • OpenGL, GLFW3, GLEW
  • OpenCL: OpenCL headers + GPU drivers (NVIDIA / AMD ROCm / Intel)
  • CUDA: CUDA Toolkit 11.0+, NVIDIA GPU (Compute Capability 5.0+), drivers 470+

Check hardware support:

make check-opencl
make check-cuda

License

MIT — see LICENSE.

About

High-performance Mandelbrot explorer with CPU multicore, CUDA & OpenCL support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors