duan8/yolop/cuda_utils.h
jinlj 208b2fcf39 Feature: add modified yolop tensorrt implementation (#1129)
* add simplified Logger class

* add modified yolop tensorrtx implementation

* add gen_wts.py

* add CMakeLists.txt

* add yolop tensorrtx README.md

* fix yolop spelling

* simplify yolop code

* fix yolop README.md

Co-authored-by: aliceint(zhanglj) <2464313547@qq.com>
2022-10-26 15:04:27 +08:00

15 lines
344 B
C++

#pragma once
#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