call cudaDeviceSynchronize() in ex7_bonus to obtain the result fast