CUB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Namespaces | Macros | Functions
debug.cuh File Reference
#include <stdio.h>
#include "ns_wrapper.cuh"
#include "device_props.cuh"

Namespaces

namespace  cub
 CUB namespace.
 

Macros

#define CubDebug(f)   cub::Debug(f, __FILE__, __LINE__)
 
#define CubDebugExit(f)   if (cub::Debug(f, __FILE__, __LINE__)) exit(1)
 

Functions

__host__ __device__
__forceinline__ cudaError_t 
cub::Debug (cudaError_t error, const char *message, const char *filename, int line)
 If CUB_STDERR is defined and error is not cudaSuccess, message is printed to stderr along with the supplied source context. More...
 
__host__ __device__
__forceinline__ cudaError_t 
cub::Debug (cudaError_t error, const char *filename, int line)
 If CUB_STDERR is defined and error is not cudaSuccess, the corresponding error message is printed to stderr along with the supplied source context. More...
 

Detailed Description

Debug error display routines

Macro Definition Documentation

#define CubDebug (   f)    cub::Debug(f, __FILE__, __LINE__)

Debug macro

#define CubDebugExit (   f)    if (cub::Debug(f, __FILE__, __LINE__)) exit(1)

Debug macro with exit