CUDA runtime has a convenience function cudaGetErrorString(cudaError_t error)
that translates an error enum into a readable string. cudaGetErrorString
is used in the CUDA_SAFE_CALL(someCudaFunction())
macro that many people use for CUDA error handling.
I'm familiarizing myself with cuBLAS now, and I'd like to create a macro similar to CUDA_SAFE_CALL
for cuBLAS. To make my macro's printouts useful, I'd like to have something analogous to cudaGetErrorString
in cuBLAS.
Is there an equivalent of cudaGetErrorString()
in cuBLAS? Or, have any cuBLAS users written a function like this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…