Function rcudnn_sys::cudaThreadExit[][src]

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

\brief Exit and clean up from CUDA launches

\deprecated

Note that this function is deprecated because its name does not reflect its behavior. Its functionality is identical to the non-deprecated function ::cudaDeviceReset(), which should be used instead.

Explicitly destroys all 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 ::cudaDeviceReset