apparently nvidia is not able to handle NaN's and inf's