cuda dbar2 calculations on all threads. added missing __syncthreads..