support "cudaThreadSynchronize()".