https://github.com/xkevio/cuda-raytracer
A simple ray tracer written with CUDA that saves its output in a .ppm file, CPU version included for reference.
https://github.com/xkevio/cuda-raytracer
cpu cuda cuda-raytracer gpu
Last synced: 10 months ago
JSON representation
A simple ray tracer written with CUDA that saves its output in a .ppm file, CPU version included for reference.
- Host: GitHub
- URL: https://github.com/xkevio/cuda-raytracer
- Owner: xkevio
- License: mit
- Created: 2021-02-07T17:12:41.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-04T22:00:56.000Z (over 3 years ago)
- Last Synced: 2025-04-06T09:16:15.060Z (about 1 year ago)
- Topics: cpu, cuda, cuda-raytracer, gpu
- Language: Cuda
- Homepage:
- Size: 970 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:

## Performance Analysis
### CPU version (serial vs parallel):
> Note: In the diagrams I used the german spelling of "serial"
%20@%204%20Spheres.png)
%20@%204%20Spheres.png)
### GPU version:

> Direct comparison with the parallel CPU version:
.png)
### CPU vs GPU Direct comparison with more than 4 spheres:
> Note: The time axis is shown on a logarithmic scale
%20@%202048x2048.png)