From 2f52cfeb07e11fce8275496164293cf30b732907 Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Sat, 17 Mar 2018 01:12:00 +0300 Subject: [PATCH] Fixed compile error --- src/yolo_v2_class.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yolo_v2_class.cpp b/src/yolo_v2_class.cpp index c805e296..a93acfd5 100644 --- a/src/yolo_v2_class.cpp +++ b/src/yolo_v2_class.cpp @@ -22,12 +22,14 @@ extern "C" { #define FRAMES 3 +#ifdef GPU void check_cuda(cudaError_t status) { if (status != cudaSuccess) { const char *s = cudaGetErrorString(status); printf("CUDA Error Prev: %s\n", s); } } +#endif struct detector_gpu_t { float **probs;