caculate sum of squares by CUDA