Hmm, using fast_math doesn’t do the trick for me. That’s probably because I’m using the cos function for double precision variables inside my hit functions. If I change those calls to cosf, everything works just fine. Am I right that there is no fast math implementation for double precision cosine ?
What’s really weird about this is the fact that my code worked fine with OptiX 2.5. Even withou fast_math. Did anything happen since then that would prevent the use of double precision trigonometric functions?
Have you tried using __cosf or __sinf instead of the usual ones?
I think that’s what --use_fast_math is supposed to do, but I guess that’s worth a try.