Got camera transform working
Turns out the function to report cuda errors was reseting the device if no errors were present