Glavin001 / Raytracer

Raytracer for CSCI 4471 Computer Graphics class project
http://glavin001.github.io/Raytracer
8 stars 2 forks source link

Parallelizing the Raytracer #56

Open Glavin001 opened 9 years ago

Glavin001 commented 9 years ago

Assume non-adaptive sampling, ie. independent computations at each (independently selected) pixel.

Glavin001 commented 9 years ago

It is looking like I will not be able to support this feature..

Glavin001 commented 9 years ago

While using OpenMP is working, it appears that there is a bug in Octree. Fixme:

  • [ ] There is a bug in Octree API. It should be functional, however instead it sets the variables arg and termFunc on the global object which is reused by each of the threads. This causes obvious problems and results in segfault 11 when parallelization is enabled

For now, I have added a critical section in Group class intersect method. This is obviously not desirable, as it now takes over 2 minutes to render all images and sometimes locks up.

Glavin001 commented 9 years ago

For fixing Octree, maybe try http://stackoverflow.com/a/7142903/2578205