define.hpp 243 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 #pragma once #include <string> #define CHECK_CUDA(call) \ {\ const cudaError_t error_code = call;\ if (cudaSuccess != error_code)\ LOG_ERROR("CUDA error, code: {} reason: {}", error_code, cudaGetErrorString(error_code));\ }