added implementation of  CudaDeviceSyncronize function