Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.08 KB

README.md

File metadata and controls

29 lines (18 loc) · 1.08 KB

CUDA-Raytracer

A simple ray tracer written with CUDA that saves its output in a .ppm file, CPU version included for reference. Below, you can find the rendered image and a performance analysis.

This was made as a final project for the GPU programming course at Otto-von-Guericke University Magdeburg.

The Render

The code currently generates the following image, though it does support more spheres and light sources:

3 spheres

Performance Analysis

CPU version (serial vs parallel):

Note: In the diagrams I used the german spelling of "serial"

serial

parallel

GPU version:

gpu4spheres

Direct comparison with the parallel CPU version:

cpuvsgpu

CPU vs GPU Direct comparison with more than 4 spheres:

Note: The time axis is shown on a logarithmic scale

all