This section describes the error handling functions of the CUDA runtime application programming interface.
char* pointer to a NULL-terminated string
Returns a string containing the name of an error code in the enum. If the error code is not recognized, "unrecognized error code" is returned.
See also:
cudaGetErrorString,cudaGetLastError,cudaPeekAtLastError,cudaError,cuGetErrorName
char* pointer to a NULL-terminated string
Returns the description string for an error code. If the error code is not recognized, "unrecognized error code" is returned.
See also:
cudaGetErrorName,cudaGetLastError,cudaPeekAtLastError,cudaError,cuGetErrorString
cudaSuccess,cudaErrorMissingConfiguration,cudaErrorMemoryAllocation,cudaErrorInitializationError,cudaErrorLaunchFailure,cudaErrorLaunchTimeout,cudaErrorLaunchOutOfResources,cudaErrorInvalidDeviceFunction,cudaErrorInvalidConfiguration,cudaErrorInvalidDevice,cudaErrorInvalidValue,cudaErrorInvalidPitchValue,cudaErrorInvalidSymbol,cudaErrorUnmapBufferObjectFailed,cudaErrorInvalidDevicePointer,cudaErrorInvalidTexture,cudaErrorInvalidTextureBinding,cudaErrorInvalidChannelDescriptor,cudaErrorInvalidMemcpyDirection,cudaErrorInvalidFilterSetting,cudaErrorInvalidNormSetting,cudaErrorUnknown,cudaErrorInvalidResourceHandle,cudaErrorInsufficientDriver,cudaErrorNoDevice,cudaErrorSetOnActiveProcess,cudaErrorStartupFailure,cudaErrorInvalidPtx,cudaErrorUnsupportedPtxVersion,cudaErrorNoKernelImageForDevice,cudaErrorJitCompilerNotFound,cudaErrorJitCompilationDisabled
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 tocudaSuccess.
Note: Multiple instances of the CUDA Runtime library can be present in an application when using a library that statically links the CUDA Runtime.
Note that this function may also return error codes from previous, asynchronous launches.
Note that this function may also returncudaErrorInitializationError,cudaErrorInsufficientDriver orcudaErrorNoDevice if this call tries to initialize internal CUDA RT state.
Note that as specified bycudaStreamAddCallback no CUDA function may be called from callback.cudaErrorNotPermitted may, but is not guaranteed to, be returned as a diagnostic in such case.
See also:
cudaPeekAtLastError,cudaGetErrorName,cudaGetErrorString,cudaError
cudaSuccess,cudaErrorMissingConfiguration,cudaErrorMemoryAllocation,cudaErrorInitializationError,cudaErrorLaunchFailure,cudaErrorLaunchTimeout,cudaErrorLaunchOutOfResources,cudaErrorInvalidDeviceFunction,cudaErrorInvalidConfiguration,cudaErrorInvalidDevice,cudaErrorInvalidValue,cudaErrorInvalidPitchValue,cudaErrorInvalidSymbol,cudaErrorUnmapBufferObjectFailed,cudaErrorInvalidDevicePointer,cudaErrorInvalidTexture,cudaErrorInvalidTextureBinding,cudaErrorInvalidChannelDescriptor,cudaErrorInvalidMemcpyDirection,cudaErrorInvalidFilterSetting,cudaErrorInvalidNormSetting,cudaErrorUnknown,cudaErrorInvalidResourceHandle,cudaErrorInsufficientDriver,cudaErrorNoDevice,cudaErrorSetOnActiveProcess,cudaErrorStartupFailure,cudaErrorInvalidPtx,cudaErrorUnsupportedPtxVersion,cudaErrorNoKernelImageForDevice,cudaErrorJitCompilerNotFound,cudaErrorJitCompilationDisabled
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. This call does not reset the error tocudaSuccess likecudaGetLastError().
Note: Multiple instances of the CUDA Runtime library can be present in an application when using a library that statically links the CUDA Runtime.
Note that this function may also return error codes from previous, asynchronous launches.
Note that this function may also returncudaErrorInitializationError,cudaErrorInsufficientDriver orcudaErrorNoDevice if this call tries to initialize internal CUDA RT state.
Note that as specified bycudaStreamAddCallback no CUDA function may be called from callback.cudaErrorNotPermitted may, but is not guaranteed to, be returned as a diagnostic in such case.
See also:
cudaGetLastError,cudaGetErrorName,cudaGetErrorString,cudaError