Skip to main content

cudaGetLastError

Function cudaGetLastError 

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

Returns the last error from a runtime call.

Returns the last error that has been produced by any of the runtime calls in the same instance of the CUDA Runtime library in the host thread and resets it to cudaSuccess.

Note: Multiple instances of the CUDA Runtime library can be present in an application when using a library that statically links the CUDA Runtime.