mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed compile error
This commit is contained in:
@ -22,12 +22,14 @@ extern "C" {
|
|||||||
|
|
||||||
#define FRAMES 3
|
#define FRAMES 3
|
||||||
|
|
||||||
|
#ifdef GPU
|
||||||
void check_cuda(cudaError_t status) {
|
void check_cuda(cudaError_t status) {
|
||||||
if (status != cudaSuccess) {
|
if (status != cudaSuccess) {
|
||||||
const char *s = cudaGetErrorString(status);
|
const char *s = cudaGetErrorString(status);
|
||||||
printf("CUDA Error Prev: %s\n", s);
|
printf("CUDA Error Prev: %s\n", s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
struct detector_gpu_t {
|
struct detector_gpu_t {
|
||||||
float **probs;
|
float **probs;
|
||||||
|
Reference in New Issue
Block a user