diff --git a/ptypy/accelerate/cuda_pycuda/cuda/log_likelihood.cu b/ptypy/accelerate/cuda_pycuda/cuda/log_likelihood.cu index 528f52ec6..d253fb7e8 100644 --- a/ptypy/accelerate/cuda_pycuda/cuda/log_likelihood.cu +++ b/ptypy/accelerate/cuda_pycuda/cuda/log_likelihood.cu @@ -192,8 +192,8 @@ inline __device__ void log_likelihood_ml_impl( const int *ma = addr + 12 + (blockIdx.x * nmodes) * addr_stride; aux += ea[0] * A * B; - weights += da[0] * A * B; - I += ma[0] * A * B; + I += da[0] * A * B; + weights += ma[0] * A * B; llerr += da[0] * A * B; MATH_TYPE norm = A * B;