Show HN: CUDA Fractal Renderer

3 months ago 1

Quickly render fractals in CUDA

Example Fractal (seed=7) Example Fractals (seeds=0..8)
Example Fractal (seed=7) Example Fractals (seeds=0..8)

Setup

uv sync

Usage

uv run cuda_fractal_renderer

The --seed argument can be used to generate a different fractal. The default seed is 0.

The --grid-size argument can be used to generate a square grid of fractals in parallel. The default grid size is 1 (just a single fractal).

View the rendered image in output.png.

Formatting

Format and check the code with ruff:

./format.sh
Read Entire Article