fixed snr calculations on cuda