8000 GitHub - jackf10oh/Fractals: A repository for various C++ files using CUDA and MPI to calculate fractals.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jackf10oh/Fractals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fractals

A repository for using CUDA and MPI to calculate fractals in C++.

Contains various scripts to create fractals. E.g. Mandelbrot, Julia, etc. The goal is to use to speed up computations a lot on Bridges-2 supercomputer.

  • Fractal.hpp

It is a template class for use with complexFunc_t template argments to define custom recursive functions. It has constructors that take the initial coords of the image and the number of rows and columns and how many iterations to perform at each point.

  • class Mandelbrot

Template instantiation of Fractal. uses f(zn+1) = (zn)**2 + c where c=z0 is a point in the complex plane

  • class Julia

Template instantiation of Fractal. uses f(z) = (|Re(z)| + |Im(z)|) ** 2 + c
like Mandelbrot set, but c is set constant and used for every point z in the complex plane.

  • class BurningShip

Template instantiation of Fractal. uses f(z) = (|Re(z)| + |Im(z)|) ** 2 + c
like Mandelbrot but uses absolute values. Commonly viewed upside.

dependencies

you likely need to run the following from the command line to get this make file to work...

module load nvhpc/22.9 module load cuda/11.7.1 module load openmpi/4.0.5-nvhpc22.9

sources

  • for makefile

https://github.com/TravisWThompson1/Makefile_Example_CUDA_CPP_To_Executable

  • for Mandelbrot set coordinate

https://commons.wikimedia.org/wiki/User:Wolfgangbeyer https://www.dhushara.com/DarkHeart/DarkHeart.htm https://hypertextbook.com/chaos/mandelbrot/

  • for function pointers in cuda

https://leimao.github.io/blog/Pass-Function-Pointers-to-Kernels-CUDA/

About

A repository for various C++ files using CUDA and MPI to calculate fractals.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0