Go to the documentation of this file.
12 #include <cuda_runtime_api.h>
15 #define CHECKLAST(MSG) \
17 cudaError_t e = cudaGetLastError(); \
18 if (e != cudaSuccess) { \
20 "%s:%d: CUDA Error: %s: %s\n", \
24 cudaGetErrorString(e)); \
28 #define CHECKCALL(RET) \
30 cudaError_t e = (RET); \
31 if (e != cudaSuccess) { \
32 fprintf(stderr, "%s:%d: CUDA Error: %s\n", __FILE__, __LINE__, cudaGetErrorString(e)); \