44 #if !defined(CUDA_LOG) 45 #if !defined(__CUDA_ARCH__) 46 #define CUDA_LOG(format, ...) printf(format, __VA_ARGS__) 48 #define CUDA_LOG(format, ...) \ 49 printf("[block (%d,%d,%d), thread (%d,%d,%d)]: " format, \ 63 #if !defined(CUDA_LOG_DEBUG) 65 #define CUDA_LOG_DEBUG(format, ...) CUDA_LOG(format, __VA_ARGS__) 67 #define CUDA_LOG_DEBUG(format, ...) 83 #if !defined(__CUDA_ARCH__) 85 stderr,
"CUDA error %d [%s, %d]: %s\n", error, filename, line, cudaGetErrorString(error));
88 printf(
"CUDA error %d [%s, %d]\n", error, filename, line);
98 #define CUDA_PERROR(e) cuda_perror_impl((cudaError_t)(e), __FILE__, __LINE__) 104 #ifndef CUDA_PERROR_EXIT 105 #define CUDA_PERROR_EXIT(e) \ 106 if (cuda_perror_impl((cudaError_t)(e), __FILE__, __LINE__)) { \ 114 #ifndef CUDA_PERROR_DEBUG 116 #define CUDA_PERROR_DEBUG(e) CUDA_PERROR(e) 118 #define CUDA_PERROR_DEBUG(e) (e) Definition: aligned_buffer.h:35
__host__ CUTLASS_DEVICE cudaError_t cuda_perror_impl(cudaError_t error, const char *filename, int line)
The corresponding error message is printed to stderr (or stdout in device code) along with the suppli...
Definition: include/cutlass/util/debug.h:77