Apache Arrow (C++)
A columnar in-memory analytics layer designed to accelerate big data.
Namespaces | Macros
cuda_common.h File Reference
#include <sstream>
#include <cuda.h>

Go to the source code of this file.

Namespaces

 arrow
 Top-level namespace for Apache Arrow C++ API.
 
 arrow::gpu
 

Macros

#define CUDA_DCHECK(STMT)
 
#define CU_RETURN_NOT_OK(STMT)
 

Macro Definition Documentation

◆ CU_RETURN_NOT_OK

#define CU_RETURN_NOT_OK (   STMT)
Value:
do { \
CUresult ret = (STMT); \
if (ret != CUDA_SUCCESS) { \
std::stringstream ss; \
ss << "Cuda Driver API call in " << __FILE__ << " at line " << __LINE__ \
<< " failed with code " << ret << ": " << #STMT; \
return Status::IOError(ss.str()); \
} \
} while (0)

◆ CUDA_DCHECK

#define CUDA_DCHECK (   STMT)
Value:
do { \
int ret = (STMT); \
DCHECK_EQ(0, ret); \
(void)ret; \
} while (0)