This content has been marked as final. Show 3 replies
You said BRT_RUNTIME was undefined, to enable software mode just set the environment variable BRT_RUNTIME = CPU
However as far as I know, debugging kernels isn't easier to debug in this mode, they are much like a black box.
Thanks, "BRT_RUNTIME = CPU" did the job!
But that raises a few questions:
- What are the differences between running in native mode vs. CPU-emulation mode (besides performance)?
- Is CPU emulation actually better for development/debugging?
- What are its limitations?
Well, software mode is useful if you don't have the right GPU to run Brook+, so you can develop and test software without owning the hardware (in this aspect this it is better than nVidia's CUDA).
I think it is also supposed to be the 'reference rendering': there are a few cases where the results on GPU may differ because Brook+ is still under development, however they will be eventually fixed.
Other than speed there aren't any limitations, debugging kernels could become quite difficult in both, I think there isn't any specific tool for debugging running GPU code.