Files
deepstream_yolo/external/yolov5-5.0/nvdsinfer_custom_impl_Yolo/cuda_utils.h
Marcos Luciano 170f9cac74 Update to YOLOv5 5.0
Updated files for YOLOv5 5.0
2021-05-03 20:22:42 -03:00

19 lines
417 B
C++

#ifndef TRTX_CUDA_UTILS_H_
#define TRTX_CUDA_UTILS_H_
#include <cuda_runtime_api.h>
#ifndef CUDA_CHECK
#define CUDA_CHECK(callstr)\
{\
cudaError_t error_code = callstr;\
if (error_code != cudaSuccess) {\
std::cerr << "CUDA error " << error_code << " at " << __FILE__ << ":" << __LINE__;\
assert(0);\
}\
}
#endif // CUDA_CHECK
#endif // TRTX_CUDA_UTILS_H_