Hi everybody here.
Does anybody know where is “cudaError_t” defined.
I couldn’t find anywhere.
I have searched all the include header file *.h.
by the way. I get an error number is “6”.
so I don’t know what does error mean.
thank you very much. :)
struct cudaError_t is defined at “driver_types.h” in “include” directory under your cuda toolkit installed directory.
I’ll show you contents related with cudaError_t.
/*DEVICE_BUILTIN*/
enum cudaError
{
cudaSuccess = 0,
cudaErrorMissingConfiguration,
cudaErrorMemoryAllocation,
cudaErrorInitializationError,
cudaErrorLaunchFailure,
cudaErrorPriorLaunchFailure,
cudaErrorLaunchTimeout,
cudaErrorLaunchOutOfResources,
cudaErrorInvalidDeviceFunction,
cudaErrorInvalidConfiguration,
cudaErrorInvalidDevice,
cudaErrorInvalidValue,
cudaErrorInvalidPitchValue,
cudaErrorInvalidSymbol,
cudaErrorMapBufferObjectFailed,
cudaErrorUnmapBufferObjectFailed,
cudaErrorInvalidHostPointer,
cudaErrorInvalidDevicePointer,
cudaErrorInvalidTexture,
cudaErrorInvalidTextureBinding,
cudaErrorInvalidChannelDescriptor,
cudaErrorInvalidMemcpyDirection,
cudaErrorAddressOfConstant,
cudaErrorTextureFetchFailed,
cudaErrorTextureNotBound,
cudaErrorSynchronizationError,
cudaErrorInvalidFilterSetting,
cudaErrorInvalidNormSetting,
cudaErrorMixedDeviceExecution,
cudaErrorCudartUnloading,
cudaErrorUnknown,
cudaErrorNotYetImplemented,
cudaErrorMemoryValueTooLarge,
cudaErrorInvalidResourceHandle,
cudaErrorNotReady,
cudaErrorStartupFailure = 0x7f,
cudaErrorApiFailureBase = 10000
};
/*DEVICE_BUILTIN*/
typedef enum cudaError cudaError_t;
Thank for your quick answer Jey. :)
%CUDA_INC_PATH% in driver_types.h