I can’t find the cudaGetErrorString(e) function counterpart for cufft. Is it available or not?
So when I got any cufftResult from the FFT execution, I can’t really get a descriptive message, unless if I refer back to the cufft.h file.
But I would like something that is robust enough for future updates (instead of a hard-coded error message).
Note that the CUFFT manual that I just downloaded from the Cuda page has some mistakes in the error messages (for cufftExec***), e.g. the CUFFT_UNALIGNED_DATA error is not available anymore.
nobody knows anything about the error strings in CUFFT?
Have a look at [samples inst dir]/common/inc/helper_cuda.h
Here you will find:
#ifdef _CUFFT_H_
// cuFFT API errors
static const char *_cudaGetErrorEnum(cufftResult error)
{
switch (error)
{
case CUFFT_SUCCESS:
return "CUFFT_SUCCESS";
case CUFFT_INVALID_PLAN:
return "CUFFT_INVALID_PLAN";
case CUFFT_ALLOC_FAILED:
return "CUFFT_ALLOC_FAILED";
case CUFFT_INVALID_TYPE:
return "CUFFT_INVALID_TYPE";
case CUFFT_INVALID_VALUE:
return "CUFFT_INVALID_VALUE";
case CUFFT_INTERNAL_ERROR:
return "CUFFT_INTERNAL_ERROR";
case CUFFT_EXEC_FAILED:
return "CUFFT_EXEC_FAILED";
case CUFFT_SETUP_FAILED:
return "CUFFT_SETUP_FAILED";
case CUFFT_INVALID_SIZE:
return "CUFFT_INVALID_SIZE";
case CUFFT_UNALIGNED_DATA:
return "CUFFT_UNALIGNED_DATA";
}
return "<unknown>";
}
#endif