43 #if !defined(CUDA_LOG) 44 #if !defined(__CUDA_ARCH__) 45 #define CUDA_LOG(format, ...) printf(format, __VA_ARGS__) 47 #define CUDA_LOG(format, ...) \ 48 printf("[block (%d,%d,%d), thread (%d,%d,%d)]: " format, \ 62 #if !defined(CUDA_LOG_DEBUG) 64 #define CUDA_LOG_DEBUG(format, ...) CUDA_LOG(format, __VA_ARGS__) 66 #define CUDA_LOG_DEBUG(format, ...) 82 #if !defined(__CUDA_ARCH__) 84 stderr,
"CUDA error %d [%s, %d]: %s\n", error, filename, line, cudaGetErrorString(error));
87 printf(
"CUDA error %d [%s, %d]\n", error, filename, line);
97 #define CUDA_PERROR(e) cuda_perror_impl((cudaError_t)(e), __FILE__, __LINE__) 103 #ifndef CUDA_PERROR_EXIT 104 #define CUDA_PERROR_EXIT(e) \ 105 if (cuda_perror_impl((cudaError_t)(e), __FILE__, __LINE__)) { \ 113 #ifndef CUDA_PERROR_DEBUG 115 #define CUDA_PERROR_DEBUG(e) CUDA_PERROR(e) 117 #define CUDA_PERROR_DEBUG(e) (e) 125 template <
typename T>
128 template <
typename T>
Definition: tools/util/include/cutlass/util/debug.h:136
C++ interface to dump fragments and shared memory contents for debugging.
Definition: tools/util/include/cutlass/util/debug.h:126