Skip to content

Ian-Stewart/CUDARaytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CUDA Raytracer

Final project for CS 473 Computer Graphics. Raytracer written in CUDA/SDL

Functional but very ugly

To compile (from terminal in root of project directory)

nvcc ./src/raytracer.cu -o ./bin/raytracer -lSDL -arch sm_30

-lSDL is for SDL graphics

-arch sm_30 is required for recursion

Note: nvcc does not like gcc 4.6+. To successfully compile, you will need to install an older version of gcc or modify your cuda host_config.h. To get nvcc to work, change the line

#error -- unsupported GNU version! gcc 4.7 and up are not supported!

to this

//#error -- unsupported GNU version! gcc 4.7 and up are not supported!
#warning -- unsupported GNU version! gcc 4.7 and up are not supported!

This probably isn't the best way to resolve this issue, but it seems to work well enough.

About

Final project for CS 473 Computer Graphics. Raytracer written in CUDA/SDL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages