cudaDeviceSynchronize Interface

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

Arguments

None

Return Value integer(kind=c_int)

Returns cudaSuccess if syncronization was or an error code if there was an issue.

Description

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