docs/tools_2util_2include_2cutlass_2util_2debug_8h.html
| | CUTLASS
CUDA Templates for Linear Algebra Subroutines and Solvers |
tools/util/include/cutlass/util/debug.h File Reference
Contains code for debugging cutlass code. More...
#include "device_dump.h"
Include dependency graph for tools/util/include/cutlass/util/debug.h:
Go to the source code of this file.
|
| | struct | DebugType< T > | | | | struct | DebugValue< Value > | | |
|
|
| #define | CUDA_LOG(format, ...) printf(format, __VA_ARGS__) |
| |
| #define | CUDA_LOG_DEBUG(format, ...) |
| |
| #define | CUDA_PERROR(e) cuda_perror_impl((cudaError_t)(e), __FILE__, __LINE__) |
| | Perror macro. More...
|
| |
| #define | CUDA_PERROR_EXIT(e) |
| | Perror macro with exit. More...
|
| |
| #define | CUDA_PERROR_DEBUG(e) (e) |
| | Perror macro only if DEBUG is defined. More...
|
| |
|
|
| __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 supplied source context. More...
|
| |
| template<typename T > |
| void | DebugTypeFunc (T const &t) |
| |
| #define CUDA_LOG | ( | | format, | | | | | ... | | | ) | | printf(format, __VA_ARGS__) |
Formats and prints the given message to stdout
| #define CUDA_LOG_DEBUG | ( | | format, | | | | | ... | | | ) | | |
Formats and prints the given message to stdout only if DEBUG is defined
| #define CUDA_PERROR | ( | | e | ) | cuda_perror_impl((cudaError_t)(e), __FILE__, __LINE__) |
| #define CUDA_PERROR_DEBUG | ( | | e | ) | (e) |
| #define CUDA_PERROR_EXIT | ( | | e | ) | |
Value:
if (cuda_perror_impl((cudaError_t)(e), __FILE__, __LINE__)) { \
exit(1); \
}
__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: tools/util/include/cutlass/util/debug.h:76
| __host__ CUTLASS_DEVICE cudaError_t cuda_perror_impl | ( | cudaError_t | error, | | | | const char * | filename, | | | | int | line | | | ) | | |
ReturnsThe CUDA error.
template<typename T >
| void DebugTypeFunc | ( | T const & | t | ) | |
Generated by 1.8.11