Classes | Namespaces | Macros | Functions
error.hpp File Reference
#include <cuda.h>
#include <cuda_runtime_api.h>
#include <stdexcept>
#include <string>

Go to the source code of this file.

Classes

struct  cudf::logic_error
 Exception thrown when logical precondition is violated. More...
 
struct  cudf::cuda_error
 Exception thrown when a CUDA error is encountered. More...
 

Namespaces

 cudf
 cuDF interfaces
 

Macros

#define STRINGIFY_DETAIL(x)   #x
 
#define CUDF_STRINGIFY(x)   STRINGIFY_DETAIL(x)
 
#define CUDF_EXPECTS(cond, reason)
 Macro for checking (pre-)conditions that throws an exception when a condition is violated. More...
 
#define CUDF_FAIL(reason)    throw cudf::logic_error("cuDF failure at: " __FILE__ ":" CUDF_STRINGIFY(__LINE__) ": " reason)
 Indicates that an erroneous code path has been taken. More...
 
#define CUDA_TRY(call)
 Error checking macro for CUDA runtime API functions. More...
 
#define CHECK_CUDA(stream)
 Debug macro to check for CUDA errors. More...
 

Functions

void cudf::detail::throw_cuda_error (cudaError_t error, const char *file, unsigned int line)