OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
util_debug.cuh File Reference
#include <stdio.h>
#include "util_namespace.cuh"
#include "util_arch.cuh"

Go to the source code of this file.


 Optional outer namespace(s)


#define CubDebug(e)   cub::Debug((cudaError_t) (e), __FILE__, __LINE__)
 Debug macro.
#define CubDebugExit(e)   if (cub::Debug((cudaError_t) (e), __FILE__, __LINE__)) { exit(1); }
 Debug macro with exit.
#define _CubLog(format, ...)   printf(format,__VA_ARGS__);
 Log macro for printf statements.


__host__ __device__ __forceinline__ cudaError_t cub::Debug (cudaError_t error, const char *filename, int line)
 CUB error reporting macro (prints error messages to stderr) More...

Detailed Description

Error and event logging routines.

The following macros definitions are supported:

  • CUB_LOG. Simple event messages are printed to stdout.

Definition in file util_debug.cuh.