Function rcudnn::cudaDeviceSynchronize [−][src]
pub unsafe extern "C" fn cudaDeviceSynchronize() -> cudaError
Expand description
\brief Wait for compute device to finish
Blocks until the device has completed all preceding requested tasks. ::cudaDeviceSynchronize() returns an error if one of the preceding tasks has failed. If the ::cudaDeviceScheduleBlockingSync flag was set for this device, the host thread will block until the device has finished its work.
\return ::cudaSuccess \notefnerr \note_init_rt \note_callback
\sa ::cudaDeviceReset, ::cuCtxSynchronize