Function rcudnn_sys::cudaDeviceReset[][src]

pub unsafe extern "C" fn cudaDeviceReset() -> cudaError_t
Expand description

\brief Destroy all allocations and reset all state on the current device in the current process.

Explicitly destroys and cleans up all resources associated with the current device in the current process. Any subsequent API call to this device will reinitialize the device.

Note that this function will reset the device immediately. It is the caller’s responsibility to ensure that the device is not being accessed by any other host threads from the process when this function is called.

\return ::cudaSuccess \notefnerr \note_init_rt \note_callback

\sa ::cudaDeviceSynchronize