Closed MatisHudon closed 4 years ago
Thanks for reporting! This is fixed by https://github.com/BachiLi/redner/commit/b5843bb9c7b2212a26b5bbd4805a0167d8f7273c
Redner assumes the intensity tensor being stored in CPU memory for faster access (since it is just a size 3 vector). I fixed it by always converting it to a CPU pytorch tensor before rendering. It would probably be slightly faster if you directly allocate it on CPU on your side.
Brilliant, thank you!
I am trying to run the following code (taken from the example) I installed
redner-gpu
via pip. If I run the code selecting thecpu
as device everything runs smoothly, whenever I run withcuda
I have a segmentation fault. Also if I use an environment map everything runs well both withcuda
andcpu
. Whenever I try to usecuda
and aquad_light
there is a segmentation fault. Any idea of what is happening?