cudaDeviceSynchronize Interface

interface

Synchronizes the device, blocking until all preceding tasks in all streams have completed.


public function cudaDeviceSynchronize() result(cudaError_t) bind(C, name="cudaDeviceSynchronize")

Arguments

None

Return Value integer(kind=c_int)

Returns cudaSuccess if the device was set successfully, or an error code if there was an issue.