AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.79k stars 7.97k forks source link

CUDA Error: invalid device symbol: File exists #6535

Open joe-tsai-wj opened 4 years ago

joe-tsai-wj commented 4 years ago

I am facing a problem when I run ./darknet detector test cfg/coco.data cfg/yolov4.cfg yolov4.weights -thresh 0.25 my Cuda version and nvcc version are 10.1. I compiled the darknet using CMake via ./build.sh. When compiling, there is a lot of warning message, but no error occurred. here is the screenshot :

2020-08-24 10-03-22 的螢幕擷圖 2020-08-24 10-03-43 的螢幕擷圖

(Compiling)below is the message when I running ./build.sh

-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for a CUDA compiler
-- Looking for a CUDA compiler - /usr/local/cuda/bin/nvcc
-- The CUDA compiler identification is NVIDIA 10.1.105
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda (found version "10.1") 
-- Autodetected CUDA architecture(s):  7.5
-- Building with CUDA flags: -gencode;arch=compute_75,code=sm_75
-- Your setup supports half precision (it requires CC >= 7.0)
-- Found OpenCV: /usr/local (found version "4.1.1") 
-- Found Stb: /home/wjadmin/darknet/3rdparty/stb/include  
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
--   ->  darknet is fine for now, but uselib_track has been disabled!
--   ->  Please rebuild OpenCV from sources with CUDA support to enable it
-- Could NOT find CUDNN (missing: CUDNN_INCLUDE_DIR CUDNN_LIBRARY) 
-- CMAKE_CUDA_FLAGS: -gencode arch=compute_75,code=sm_75 --compiler-options " -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -Wno-deprecated-declarations -Wno-write-strings -DGPU -DOPENCV -fPIC -fopenmp -Ofast " 
-- ZED SDK not found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wjadmin/darknet/build_release
Scanning dependencies of target darknet
Scanning dependencies of target dark
[  1%] Building C object CMakeFiles/darknet.dir/src/activation_layer.c.o
[  1%] Building C object CMakeFiles/darknet.dir/src/darknet.c.o
[  2%] Building C object CMakeFiles/darknet.dir/src/activations.c.o
[  3%] Building C object CMakeFiles/darknet.dir/src/art.c.o
[  4%] Building C object CMakeFiles/darknet.dir/src/batchnorm_layer.c.o
[  4%] Building C object CMakeFiles/darknet.dir/src/avgpool_layer.c.o
[  4%] Building C object CMakeFiles/darknet.dir/src/blas.c.o
[  4%] Building CXX object CMakeFiles/dark.dir/src/yolo_v2_class.cpp.o
/home/wjadmin/darknet/src/activations.c: In function ‘activate’:
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘RELU6’ not handled in switch [-Wswitch]
     switch(a){
     ^~~~~~
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘SWISH’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘MISH’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘HARD_MISH’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘NORM_CHAN’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘NORM_CHAN_SOFTMAX’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘NORM_CHAN_SOFTMAX_MAXVAL’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c: In function ‘gradient’:
/home/wjadmin/darknet/src/activations.c:310:5: warning: enumeration value ‘SWISH’ not handled in switch [-Wswitch]
     switch(a){
     ^~~~~~
/home/wjadmin/darknet/src/activations.c:310:5: warning: enumeration value ‘MISH’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c:310:5: warning: enumeration value ‘HARD_MISH’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/blas.c: In function ‘backward_shortcut_multilayer_cpu’:
/home/wjadmin/darknet/src/blas.c:207:21: warning: unused variable ‘out_index’ [-Wunused-variable]
                 int out_index = id;
                     ^~~~~~~~~
/home/wjadmin/darknet/src/blas.c: In function ‘find_sim’:
/home/wjadmin/darknet/src/blas.c:597:59: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         printf(" Error: find_sim(): sim isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                          ~^
                                                          %ld
/home/wjadmin/darknet/src/blas.c:597:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         printf(" Error: find_sim(): sim isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                  ~^
                                                                  %ld
/home/wjadmin/darknet/src/blas.c:597:75: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         printf(" Error: find_sim(): sim isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                          ~^
                                                                          %ld
/home/wjadmin/darknet/src/blas.c: In function ‘find_P_constrastive’:
/home/wjadmin/darknet/src/blas.c:611:68: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         printf(" Error: find_P_constrastive(): P isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                   ~^
                                                                   %ld
/home/wjadmin/darknet/src/blas.c:611:76: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         printf(" Error: find_P_constrastive(): P isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                           ~^
                                                                           %ld
/home/wjadmin/darknet/src/blas.c:611:84: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         printf(" Error: find_P_constrastive(): P isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                                   ~^
                                                                                   %ld
/home/wjadmin/darknet/src/blas.c: In function ‘P_constrastive_f’:
/home/wjadmin/darknet/src/blas.c:651:79: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         fprintf(stderr, " Error: in P_constrastive must be i != l, while i = %d, l = %d \n", i, l);
                                                                              ~^
                                                                              %ld
/home/wjadmin/darknet/src/blas.c:651:87: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         fprintf(stderr, " Error: in P_constrastive must be i != l, while i = %d, l = %d \n", i, l);
                                                                                      ~^
                                                                                      %ld
/home/wjadmin/darknet/src/blas.c: In function ‘P_constrastive’:
/home/wjadmin/darknet/src/blas.c:780:79: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         fprintf(stderr, " Error: in P_constrastive must be i != l, while i = %d, l = %d \n", i, l);
                                                                              ~^
                                                                              %ld
/home/wjadmin/darknet/src/blas.c:780:87: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         fprintf(stderr, " Error: in P_constrastive must be i != l, while i = %d, l = %d \n", i, l);
                                                                                      ~^
                                                                                      %ld
[  5%] Building C object CMakeFiles/darknet.dir/src/box.c.o
[  6%] Building C object CMakeFiles/darknet.dir/src/captcha.c.o
[  6%] Building C object CMakeFiles/darknet.dir/src/cifar.c.o
/home/wjadmin/darknet/src/box.c: In function ‘box_iou_kind’:
/home/wjadmin/darknet/src/box.c:154:5: warning: enumeration value ‘MSE’ not handled in switch [-Wswitch]
     switch(iou_kind) {
     ^~~~~~
/home/wjadmin/darknet/src/box.c: In function ‘diounms_sort’:
/home/wjadmin/darknet/src/box.c:898:27: warning: unused variable ‘beta_prob’ [-Wunused-variable]
                     float beta_prob = pow(dets[j].prob[k], 2) / sum_prob;
                           ^~~~~~~~~
/home/wjadmin/darknet/src/box.c:897:27: warning: unused variable ‘alpha_prob’ [-Wunused-variable]
                     float alpha_prob = pow(dets[i].prob[k], 2) / sum_prob;
                           ^~~~~~~~~~
[  7%] Building C object CMakeFiles/darknet.dir/src/classifier.c.o
/home/wjadmin/darknet/src/classifier.c: In function ‘train_classifier’:
/home/wjadmin/darknet/src/classifier.c:146:9: warning: unused variable ‘count’ [-Wunused-variable]
     int count = 0;
         ^~~~~
/home/wjadmin/darknet/src/classifier.c: In function ‘predict_classifier’:
/home/wjadmin/darknet/src/classifier.c:855:13: warning: unused variable ‘time’ [-Wunused-variable]
     clock_t time;
             ^~~~
[  7%] Building C object CMakeFiles/darknet.dir/src/coco.c.o
/home/wjadmin/darknet/src/classifier.c: In function ‘demo_classifier’:
/home/wjadmin/darknet/src/classifier.c:1287:49: warning: unused variable ‘tval_result’ [-Wunused-variable]
         struct timeval tval_before, tval_after, tval_result;
                                                 ^~~~~~~~~~~
/home/wjadmin/darknet/src/classifier.c:1287:37: warning: unused variable ‘tval_after’ [-Wunused-variable]
         struct timeval tval_before, tval_after, tval_result;
                                     ^~~~~~~~~~
[  8%] Building C object CMakeFiles/darknet.dir/src/col2im.c.o
/home/wjadmin/darknet/src/coco.c: In function ‘validate_coco_recall’:
/home/wjadmin/darknet/src/coco.c:248:11: warning: unused variable ‘base’ [-Wunused-variable]
     char *base = "results/comp4_det_test_";
           ^~~~
[  9%] Building C object CMakeFiles/darknet.dir/src/compare.c.o
[  9%] Building C object CMakeFiles/darknet.dir/src/connected_layer.c.o
[ 10%] Building C object CMakeFiles/darknet.dir/src/conv_lstm_layer.c.o
[ 11%] Building C object CMakeFiles/darknet.dir/src/convolutional_layer.c.o
/home/wjadmin/darknet/src/convolutional_layer.c: In function ‘forward_convolutional_layer’:
/home/wjadmin/darknet/src/convolutional_layer.c:1337:32: warning: unused variable ‘t_intput_size’ [-Wunused-variable]
                         size_t t_intput_size = binary_transpose_align_input(k, n, state.workspace, &l.t_bit_input, ldb_align, l.bit_align);
                                ^~~~~~~~~~~~~
[ 11%] Building C object CMakeFiles/darknet.dir/src/cost_layer.c.o
[ 12%] Building C object CMakeFiles/darknet.dir/src/cpu_gemm.c.o
[ 12%] Building C object CMakeFiles/darknet.dir/src/crnn_layer.c.o
[ 13%] Building C object CMakeFiles/darknet.dir/src/crop_layer.c.o
[ 14%] Building C object CMakeFiles/darknet.dir/src/dark_cuda.c.o
/home/wjadmin/darknet/src/dark_cuda.c: In function ‘pre_allocate_pinned_memory’:
/home/wjadmin/darknet/src/dark_cuda.c:276:40: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
         printf("pre_allocate: size = %Iu MB, num_of_blocks = %Iu, block_size = %Iu MB \n",
                                      ~~^
                                      %Ilu
             size / (1024*1024), num_of_blocks, pinned_block_size / (1024 * 1024));
             ~~~~~~~~~~~~~~~~~~          
/home/wjadmin/darknet/src/dark_cuda.c:276:64: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t {aka const long unsigned int}’ [-Wformat=]
         printf("pre_allocate: size = %Iu MB, num_of_blocks = %Iu, block_size = %Iu MB \n",
                                                              ~~^
                                                              %Ilu
/home/wjadmin/darknet/src/dark_cuda.c:276:82: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
         printf("pre_allocate: size = %Iu MB, num_of_blocks = %Iu, block_size = %Iu MB \n",
                                                                                ~~^
                                                                                %Ilu
/home/wjadmin/darknet/src/dark_cuda.c:286:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka const long unsigned int}’ [-Wformat=]
                 printf(" Allocated %d pinned block \n", pinned_block_size);
                                    ~^
                                    %ld
/home/wjadmin/darknet/src/dark_cuda.c: In function ‘cuda_make_array_pinned_preallocated’:
/home/wjadmin/darknet/src/dark_cuda.c:307:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
             printf("\n Pinned block_id = %d, filled = %f %% \n", pinned_block_id, filled);
                                          ~^
                                          %ld
/home/wjadmin/darknet/src/dark_cuda.c:322:64: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
             printf("Try to allocate new pinned memory, size = %d MB \n", size / (1024 * 1024));
                                                               ~^         ~~~~~~~~~~~~~~~~~~~~
                                                               %ld
/home/wjadmin/darknet/src/dark_cuda.c:328:63: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
             printf("Try to allocate new pinned BLOCK, size = %d MB \n", size / (1024 * 1024));
                                                              ~^         ~~~~~~~~~~~~~~~~~~~~
                                                              %ld
[ 14%] Building C object CMakeFiles/darknet.dir/src/data.c.o
[ 15%] Building C object CMakeFiles/darknet.dir/src/deconvolutional_layer.c.o
[ 15%] Building C object CMakeFiles/darknet.dir/src/demo.c.o
/home/wjadmin/darknet/src/data.c: In function ‘load_data_detection’:
/home/wjadmin/darknet/src/data.c:1294:24: warning: unused variable ‘x’ [-Wunused-variable]
                 int k, x, y;
                        ^
/home/wjadmin/darknet/src/data.c:1090:43: warning: variable ‘r_scale’ set but not used [-Wunused-but-set-variable]
     float r1 = 0, r2 = 0, r3 = 0, r4 = 0, r_scale = 0;
                                           ^~~~~~~
[ 16%] Building C object CMakeFiles/darknet.dir/src/detection_layer.c.o
/home/wjadmin/darknet/src/demo.c: In function ‘detect_in_thread’:
/home/wjadmin/darknet/src/demo.c:100:16: warning: unused variable ‘prediction’ [-Wunused-variable]
         float *prediction = network_predict(net, X);
                ^~~~~~~~~~
/home/wjadmin/darknet/src/demo.c:98:15: warning: unused variable ‘l’ [-Wunused-variable]
         layer l = net.layers[net.n - 1];
               ^
[ 17%] Building C object CMakeFiles/darknet.dir/src/detector.c.o
[ 17%] Building C object CMakeFiles/darknet.dir/src/dice.c.o
[ 18%] Building C object CMakeFiles/darknet.dir/src/dropout_layer.c.o
/home/wjadmin/darknet/src/detector.c: In function ‘print_cocos’:
/home/wjadmin/darknet/src/detector.c:477:29: warning: format not a string literal and no format arguments [-Wformat-security]
                 fprintf(fp, buff);
                             ^~~~
/home/wjadmin/darknet/src/detector.c: In function ‘eliminate_bdd’:
/home/wjadmin/darknet/src/detector.c:570:21: warning: statement with no effect [-Wunused-value]
                     for (k; buf[k + n] != '\0'; k++)
                     ^~~
/home/wjadmin/darknet/src/detector.c: In function ‘validate_detector’:
/home/wjadmin/darknet/src/detector.c:691:13: warning: unused variable ‘mkd2’ [-Wunused-variable]
         int mkd2 = make_directory(buff2, 0777);
             ^~~~
/home/wjadmin/darknet/src/detector.c:689:13: warning: unused variable ‘mkd’ [-Wunused-variable]
         int mkd = make_directory(buff, 0777);
             ^~~
/home/wjadmin/darknet/src/detector.c: In function ‘validate_detector_map’:
/home/wjadmin/darknet/src/detector.c:1322:15: warning: unused variable ‘class_recall’ [-Wunused-variable]
         float class_recall = (float)tp_for_thresh_per_class[i] / ((float)tp_for_thresh_per_class[i] + (float)(truth_classes_count[i] - tp_for_thresh_per_class[i]));
               ^~~~~~~~~~~~
/home/wjadmin/darknet/src/detector.c:1321:15: warning: unused variable ‘class_precision’ [-Wunused-variable]
         float class_precision = (float)tp_for_thresh_per_class[i] / ((float)tp_for_thresh_per_class[i] + (float)fp_for_thresh_per_class[i]);
               ^~~~~~~~~~~~~~~
[ 18%] Building C object CMakeFiles/darknet.dir/src/gaussian_yolo_layer.c.o
/home/wjadmin/darknet/src/detector.c: In function ‘draw_object’:
/home/wjadmin/darknet/src/detector.c:1856:19: warning: unused variable ‘inv_loss’ [-Wunused-variable]
             float inv_loss = 1.0 / max_val_cmp(0.01, avg_loss);
                   ^~~~~~~~
[ 19%] Building C object CMakeFiles/darknet.dir/src/gemm.c.o
/home/wjadmin/darknet/src/gaussian_yolo_layer.c: In function ‘make_gaussian_yolo_layer’:
/home/wjadmin/darknet/src/gaussian_yolo_layer.c:71:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (cudaSuccess == cudaHostAlloc(&l.output, batch*l.outputs * sizeof(float), cudaHostRegisterMapped)) l.output_pinned = 1;
                                      ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.c:7:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/gaussian_yolo_layer.c:78:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (cudaSuccess == cudaHostAlloc(&l.delta, batch*l.outputs * sizeof(float), cudaHostRegisterMapped)) l.delta_pinned = 1;
                                      ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.c:7:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/gaussian_yolo_layer.c: In function ‘resize_gaussian_yolo_layer’:
/home/wjadmin/darknet/src/gaussian_yolo_layer.c:110:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess != cudaHostAlloc(&l->output, l->batch*l->outputs * sizeof(float), cudaHostRegisterMapped)) {
                                          ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.c:7:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/gaussian_yolo_layer.c:119:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess != cudaHostAlloc(&l->delta, l->batch*l->outputs * sizeof(float), cudaHostRegisterMapped)) {
                                          ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.c:7:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
[ 20%] Building C object CMakeFiles/darknet.dir/src/go.c.o
[ 21%] Building C object CMakeFiles/dark.dir/src/activation_layer.c.o
[ 21%] Building C object CMakeFiles/darknet.dir/src/gru_layer.c.o
In file included from /home/wjadmin/darknet/src/yolo_v2_class.cpp:2:0:
/home/wjadmin/darknet/include/yolo_v2_class.hpp: In member function ‘void track_kalman_t::clear_old_states()’:
/home/wjadmin/darknet/include/yolo_v2_class.hpp:878:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                if ((result_vec_pred[state_id].x > img_size.width) ||
/home/wjadmin/darknet/include/yolo_v2_class.hpp:879:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                    (result_vec_pred[state_id].y > img_size.height))
/home/wjadmin/darknet/include/yolo_v2_class.hpp: In member function ‘track_kalman_t::tst_t track_kalman_t::get_state_id(bbox_t, std::vector<bool>&)’:
/home/wjadmin/darknet/include/yolo_v2_class.hpp:899:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (size_t i = 0; i < max_objects; ++i)
                            ~~^~~~~~~~~~~~~
/home/wjadmin/darknet/include/yolo_v2_class.hpp: In member function ‘std::vector<bbox_t> track_kalman_t::predict()’:
/home/wjadmin/darknet/include/yolo_v2_class.hpp:989:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (size_t i = 0; i < max_objects; ++i)
                            ~~^~~~~~~~~~~~~
/home/wjadmin/darknet/include/yolo_v2_class.hpp: In member function ‘std::vector<bbox_t> track_kalman_t::correct(std::vector<bbox_t>)’:
/home/wjadmin/darknet/include/yolo_v2_class.hpp:1024:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (size_t i = 0; i < max_objects; ++i)
                            ~~^~~~~~~~~~~~~
[ 21%] Building C object CMakeFiles/dark.dir/src/activations.c.o
/home/wjadmin/darknet/src/gemm.c: In function ‘_castu32_f32’:
/home/wjadmin/darknet/src/gemm.c:550:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     return *((float *)&a);
     ^~~~~~
/home/wjadmin/darknet/src/gemm.c: In function ‘convolution_2d’:
/home/wjadmin/darknet/src/gemm.c:1066:27: warning: unused variable ‘sum’ [-Wunused-variable]
                     float sum = 0;
                           ^~~
/home/wjadmin/darknet/src/gemm.c:1046:13: warning: unused variable ‘all256i_one’ [-Wunused-variable]
     __m256i all256i_one = _mm256_set1_epi32(1);
             ^~~~~~~~~~~
/home/wjadmin/darknet/src/gemm.c:1045:12: warning: unused variable ‘all256_one’ [-Wunused-variable]
     __m256 all256_one = _mm256_set1_ps(1);
            ^~~~~~~~~~
/home/wjadmin/darknet/src/gemm.c:1043:13: warning: unused variable ‘idx256’ [-Wunused-variable]
     __m256i idx256 = _mm256_set_epi32(0, 7, 6, 5, 4, 3, 2, 1);
             ^~~~~~
/home/wjadmin/darknet/src/gemm.c:1040:13: warning: unused variable ‘all256_last_zero’ [-Wunused-variable]
     __m256i all256_last_zero =
             ^~~~~~~~~~~~~~~~
/home/wjadmin/darknet/src/gemm.c: In function ‘im2col_cpu_custom_bin’:
/home/wjadmin/darknet/src/gemm.c:1644:17: warning: unused variable ‘all256_sing1’ [-Wunused-variable]
         __m256i all256_sing1 = _mm256_set_epi32(0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000);
                 ^~~~~~~~~~~~
/home/wjadmin/darknet/src/yolo_v2_class.cpp: In member function ‘std::vector<bbox_t> Detector::tracking_id(std::vector<bbox_t>, bool, int, int)’:
/home/wjadmin/darknet/src/yolo_v2_class.cpp:370:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (prev_bbox_vec_deque.size() > frames_story) prev_bbox_vec_deque.pop_back();
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/home/wjadmin/darknet/src/yolo_v2_class.cpp:385:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                     if (cur_dist < max_dist && (k.track_id == 0 || dist_vec[m] > cur_dist)) {
                         ~~~~~~~~~^~~~~~~~~~
/home/wjadmin/darknet/src/yolo_v2_class.cpp:409:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (prev_bbox_vec_deque.size() > frames_story) prev_bbox_vec_deque.pop_back();
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/home/wjadmin/darknet/src/activations.c: In function ‘activate’:
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘RELU6’ not handled in switch [-Wswitch]
     switch(a){
     ^~~~~~
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘SWISH’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘MISH’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘HARD_MISH’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘NORM_CHAN’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘NORM_CHAN_SOFTMAX’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c:79:5: warning: enumeration value ‘NORM_CHAN_SOFTMAX_MAXVAL’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c: In function ‘gradient’:
/home/wjadmin/darknet/src/activations.c:310:5: warning: enumeration value ‘SWISH’ not handled in switch [-Wswitch]
     switch(a){
     ^~~~~~
/home/wjadmin/darknet/src/activations.c:310:5: warning: enumeration value ‘MISH’ not handled in switch [-Wswitch]
/home/wjadmin/darknet/src/activations.c:310:5: warning: enumeration value ‘HARD_MISH’ not handled in switch [-Wswitch]
[ 22%] Building C object CMakeFiles/darknet.dir/src/im2col.c.o
[ 22%] Building C object CMakeFiles/darknet.dir/src/image.c.o
[ 23%] Building C object CMakeFiles/darknet.dir/src/layer.c.o
/home/wjadmin/darknet/src/layer.c: In function ‘free_layer_custom’:
/home/wjadmin/darknet/src/layer.c:204:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
     if (l.delta_gpu && (l.optimized_memory < 1 || l.keep_delta_gpu && l.optimized_memory < 3)) cuda_free(l.delta_gpu), l.delta_gpu = NULL;
                                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
[ 24%] Building C object CMakeFiles/dark.dir/src/art.c.o
[ 25%] Building C object CMakeFiles/dark.dir/src/avgpool_layer.c.o
[ 26%] Building C object CMakeFiles/darknet.dir/src/list.c.o
[ 26%] Building C object CMakeFiles/dark.dir/src/batchnorm_layer.c.o
[ 26%] Building C object CMakeFiles/darknet.dir/src/local_layer.c.o
[ 27%] Building C object CMakeFiles/dark.dir/src/blas.c.o
[ 28%] Building C object CMakeFiles/darknet.dir/src/lstm_layer.c.o
/home/wjadmin/darknet/src/blas.c: In function ‘backward_shortcut_multilayer_cpu’:
/home/wjadmin/darknet/src/blas.c:207:21: warning: unused variable ‘out_index’ [-Wunused-variable]
                 int out_index = id;
                     ^~~~~~~~~
/home/wjadmin/darknet/src/blas.c: In function ‘find_sim’:
/home/wjadmin/darknet/src/blas.c:597:59: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         printf(" Error: find_sim(): sim isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                          ~^
                                                          %ld
/home/wjadmin/darknet/src/blas.c:597:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         printf(" Error: find_sim(): sim isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                  ~^
                                                                  %ld
/home/wjadmin/darknet/src/blas.c:597:75: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         printf(" Error: find_sim(): sim isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                          ~^
                                                                          %ld
/home/wjadmin/darknet/src/blas.c: In function ‘find_P_constrastive’:
/home/wjadmin/darknet/src/blas.c:611:68: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         printf(" Error: find_P_constrastive(): P isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                   ~^
                                                                   %ld
/home/wjadmin/darknet/src/blas.c:611:76: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         printf(" Error: find_P_constrastive(): P isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                           ~^
                                                                           %ld
/home/wjadmin/darknet/src/blas.c:611:84: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         printf(" Error: find_P_constrastive(): P isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                                   ~^
                                                                                   %ld
/home/wjadmin/darknet/src/blas.c: In function ‘P_constrastive_f’:
/home/wjadmin/darknet/src/blas.c:651:79: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         fprintf(stderr, " Error: in P_constrastive must be i != l, while i = %d, l = %d \n", i, l);
                                                                              ~^
                                                                              %ld
/home/wjadmin/darknet/src/blas.c:651:87: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         fprintf(stderr, " Error: in P_constrastive must be i != l, while i = %d, l = %d \n", i, l);
                                                                                      ~^
                                                                                      %ld
/home/wjadmin/darknet/src/blas.c: In function ‘P_constrastive’:
/home/wjadmin/darknet/src/blas.c:780:79: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         fprintf(stderr, " Error: in P_constrastive must be i != l, while i = %d, l = %d \n", i, l);
                                                                              ~^
                                                                              %ld
/home/wjadmin/darknet/src/blas.c:780:87: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
         fprintf(stderr, " Error: in P_constrastive must be i != l, while i = %d, l = %d \n", i, l);
                                                                                      ~^
                                                                                      %ld
[ 29%] Building C object CMakeFiles/darknet.dir/src/matrix.c.o
[ 29%] Building C object CMakeFiles/darknet.dir/src/maxpool_layer.c.o
[ 29%] Building C object CMakeFiles/dark.dir/src/box.c.o
/home/wjadmin/darknet/src/box.c: In function ‘box_iou_kind’:
/home/wjadmin/darknet/src/box.c:154:5: warning: enumeration value ‘MSE’ not handled in switch [-Wswitch]
     switch(iou_kind) {
     ^~~~~~
/home/wjadmin/darknet/src/box.c: In function ‘diounms_sort’:
/home/wjadmin/darknet/src/box.c:898:27: warning: unused variable ‘beta_prob’ [-Wunused-variable]
                     float beta_prob = pow(dets[j].prob[k], 2) / sum_prob;
                           ^~~~~~~~~
/home/wjadmin/darknet/src/box.c:897:27: warning: unused variable ‘alpha_prob’ [-Wunused-variable]
                     float alpha_prob = pow(dets[i].prob[k], 2) / sum_prob;
                           ^~~~~~~~~~
[ 30%] Building C object CMakeFiles/darknet.dir/src/network.c.o
/home/wjadmin/darknet/src/network.c: In function ‘resize_network’:
/home/wjadmin/darknet/src/network.c:615:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess == cudaHostAlloc(&net->input_pinned_cpu, size * sizeof(float), cudaHostRegisterMapped))
                                          ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/network.c:1:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
[ 30%] Building C object CMakeFiles/darknet.dir/src/nightmare.c.o
[ 31%] Building C object CMakeFiles/dark.dir/src/captcha.c.o
[ 32%] Building C object CMakeFiles/darknet.dir/src/normalization_layer.c.o
[ 33%] Building C object CMakeFiles/darknet.dir/src/option_list.c.o
[ 33%] Building C object CMakeFiles/dark.dir/src/cifar.c.o
[ 34%] Building C object CMakeFiles/darknet.dir/src/parser.c.o
[ 34%] Building C object CMakeFiles/dark.dir/src/classifier.c.o
/home/wjadmin/darknet/src/parser.c: In function ‘parse_network_cfg_custom’:
/home/wjadmin/darknet/src/parser.c:1663:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess == cudaHostAlloc(&net.input_pinned_cpu, size * sizeof(float), cudaHostRegisterMapped)) net.input_pinned_cpu_flag = 1;
                                          ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/activations.h:3,
                 from /home/wjadmin/darknet/src/activation_layer.h:4,
                 from /home/wjadmin/darknet/src/parser.c:6:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/classifier.c: In function ‘train_classifier’:
/home/wjadmin/darknet/src/classifier.c:146:9: warning: unused variable ‘count’ [-Wunused-variable]
     int count = 0;
         ^~~~~
/home/wjadmin/darknet/src/classifier.c: In function ‘predict_classifier’:
/home/wjadmin/darknet/src/classifier.c:855:13: warning: unused variable ‘time’ [-Wunused-variable]
     clock_t time;
             ^~~~
/home/wjadmin/darknet/src/classifier.c: In function ‘demo_classifier’:
/home/wjadmin/darknet/src/classifier.c:1287:49: warning: unused variable ‘tval_result’ [-Wunused-variable]
         struct timeval tval_before, tval_after, tval_result;
                                                 ^~~~~~~~~~~
/home/wjadmin/darknet/src/classifier.c:1287:37: warning: unused variable ‘tval_after’ [-Wunused-variable]
         struct timeval tval_before, tval_after, tval_result;
                                     ^~~~~~~~~~
[ 35%] Building C object CMakeFiles/dark.dir/src/coco.c.o
/home/wjadmin/darknet/src/coco.c: In function ‘validate_coco_recall’:
/home/wjadmin/darknet/src/coco.c:248:11: warning: unused variable ‘base’ [-Wunused-variable]
     char *base = "results/comp4_det_test_";
           ^~~~
[ 35%] Building C object CMakeFiles/dark.dir/src/col2im.c.o
[ 36%] Building C object CMakeFiles/dark.dir/src/compare.c.o
[ 37%] Building C object CMakeFiles/darknet.dir/src/region_layer.c.o
/home/wjadmin/darknet/src/region_layer.c: In function ‘resize_region_layer’:
/home/wjadmin/darknet/src/region_layer.c:59:9: warning: unused variable ‘old_h’ [-Wunused-variable]
     int old_h = l->h;
         ^~~~~
/home/wjadmin/darknet/src/region_layer.c:58:9: warning: unused variable ‘old_w’ [-Wunused-variable]
     int old_w = l->w;
         ^~~~~
[ 38%] Building C object CMakeFiles/dark.dir/src/connected_layer.c.o
[ 38%] Building C object CMakeFiles/darknet.dir/src/reorg_layer.c.o
[ 39%] Building C object CMakeFiles/darknet.dir/src/reorg_old_layer.c.o
[ 40%] Building C object CMakeFiles/darknet.dir/src/rnn.c.o
[ 40%] Building C object CMakeFiles/dark.dir/src/conv_lstm_layer.c.o
[ 41%] Building C object CMakeFiles/dark.dir/src/convolutional_layer.c.o
[ 41%] Building C object CMakeFiles/darknet.dir/src/rnn_layer.c.o
/home/wjadmin/darknet/src/convolutional_layer.c: In function ‘forward_convolutional_layer’:
/home/wjadmin/darknet/src/convolutional_layer.c:1337:32: warning: unused variable ‘t_intput_size’ [-Wunused-variable]
                         size_t t_intput_size = binary_transpose_align_input(k, n, state.workspace, &l.t_bit_input, ldb_align, l.bit_align);
                                ^~~~~~~~~~~~~
[ 41%] Building C object CMakeFiles/dark.dir/src/cost_layer.c.o
[ 42%] Building C object CMakeFiles/darknet.dir/src/rnn_vid.c.o
[ 42%] Building C object CMakeFiles/darknet.dir/src/route_layer.c.o
[ 43%] Building C object CMakeFiles/darknet.dir/src/sam_layer.c.o
[ 44%] Building C object CMakeFiles/darknet.dir/src/scale_channels_layer.c.o
[ 45%] Building C object CMakeFiles/dark.dir/src/cpu_gemm.c.o
[ 46%] Building C object CMakeFiles/dark.dir/src/crnn_layer.c.o
[ 46%] Building C object CMakeFiles/darknet.dir/src/shortcut_layer.c.o
[ 47%] Building C object CMakeFiles/darknet.dir/src/softmax_layer.c.o
/home/wjadmin/darknet/src/shortcut_layer.c: In function ‘make_shortcut_layer’:
/home/wjadmin/darknet/src/shortcut_layer.c:55:15: warning: unused variable ‘scale’ [-Wunused-variable]
         float scale = sqrt(2. / l.nweights);
               ^~~~~
[ 47%] Building C object CMakeFiles/darknet.dir/src/super.c.o
/home/wjadmin/darknet/src/softmax_layer.c: In function ‘make_contrastive_layer’:
/home/wjadmin/darknet/src/softmax_layer.c:202:101: warning: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘size_t {aka const long unsigned int}’ [-Wformat=]
     fprintf(stderr, "contrastive %4d x%4d x%4d x emb_size %4d x batch: %4d  classes = %4d, step = %4d \n", w, h, l.n, l.embedding_size, batch, l.classes, step);
                                                                                                   ~~^
                                                                                                   %4ld
/home/wjadmin/darknet/src/softmax_layer.c: In function ‘forward_contrastive_layer’:
/home/wjadmin/darknet/src/softmax_layer.c:243:27: warning: variable ‘max_truth’ set but not used [-Wunused-but-set-variable]
                     float max_truth = 0;
                           ^~~~~~~~~
/home/wjadmin/darknet/src/softmax_layer.c:420:71: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka const long unsigned int}’ [-Wformat=]
             printf(" Error: too large number of bboxes: contr_size = %d > max_contr_size  = %d \n", contr_size, max_contr_size);
                                                                      ~^
                                                                      %ld
[ 47%] Building C object CMakeFiles/dark.dir/src/crop_layer.c.o
[ 48%] Building C object CMakeFiles/darknet.dir/src/swag.c.o
[ 49%] Building C object CMakeFiles/darknet.dir/src/tag.c.o
[ 49%] Building C object CMakeFiles/darknet.dir/src/tree.c.o
[ 50%] Building C object CMakeFiles/darknet.dir/src/upsample_layer.c.o
[ 51%] Building C object CMakeFiles/dark.dir/src/dark_cuda.c.o
[ 51%] Building C object CMakeFiles/dark.dir/src/data.c.o
[ 53%] Building C object CMakeFiles/dark.dir/src/deconvolutional_layer.c.o
[ 53%] Building C object CMakeFiles/dark.dir/src/demo.c.o
/home/wjadmin/darknet/src/dark_cuda.c: In function ‘pre_allocate_pinned_memory’:
/home/wjadmin/darknet/src/dark_cuda.c:276:40: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
         printf("pre_allocate: size = %Iu MB, num_of_blocks = %Iu, block_size = %Iu MB \n",
                                      ~~^
                                      %Ilu
             size / (1024*1024), num_of_blocks, pinned_block_size / (1024 * 1024));
             ~~~~~~~~~~~~~~~~~~          
/home/wjadmin/darknet/src/dark_cuda.c:276:64: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t {aka const long unsigned int}’ [-Wformat=]
         printf("pre_allocate: size = %Iu MB, num_of_blocks = %Iu, block_size = %Iu MB \n",
                                                              ~~^
                                                              %Ilu
/home/wjadmin/darknet/src/dark_cuda.c:276:82: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
         printf("pre_allocate: size = %Iu MB, num_of_blocks = %Iu, block_size = %Iu MB \n",
                                                                                ~~^
                                                                                %Ilu
/home/wjadmin/darknet/src/dark_cuda.c:286:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka const long unsigned int}’ [-Wformat=]
                 printf(" Allocated %d pinned block \n", pinned_block_size);
                                    ~^
                                    %ld
/home/wjadmin/darknet/src/dark_cuda.c: In function ‘cuda_make_array_pinned_preallocated’:
/home/wjadmin/darknet/src/dark_cuda.c:307:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
             printf("\n Pinned block_id = %d, filled = %f %% \n", pinned_block_id, filled);
                                          ~^
                                          %ld
/home/wjadmin/darknet/src/dark_cuda.c:322:64: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
             printf("Try to allocate new pinned memory, size = %d MB \n", size / (1024 * 1024));
                                                               ~^         ~~~~~~~~~~~~~~~~~~~~
                                                               %ld
/home/wjadmin/darknet/src/dark_cuda.c:328:63: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
             printf("Try to allocate new pinned BLOCK, size = %d MB \n", size / (1024 * 1024));
                                                              ~^         ~~~~~~~~~~~~~~~~~~~~
                                                              %ld
[ 53%] Building C object CMakeFiles/darknet.dir/src/utils.c.o
[ 54%] Building C object CMakeFiles/darknet.dir/src/voxel.c.o
/home/wjadmin/darknet/src/demo.c: In function ‘detect_in_thread’:
/home/wjadmin/darknet/src/demo.c:100:16: warning: unused variable ‘prediction’ [-Wunused-variable]
         float *prediction = network_predict(net, X);
                ^~~~~~~~~~
/home/wjadmin/darknet/src/demo.c:98:15: warning: unused variable ‘l’ [-Wunused-variable]
         layer l = net.layers[net.n - 1];
               ^
/home/wjadmin/darknet/src/data.c: In function ‘load_data_detection’:
/home/wjadmin/darknet/src/data.c:1294:24: warning: unused variable ‘x’ [-Wunused-variable]
                 int k, x, y;
                        ^
/home/wjadmin/darknet/src/data.c:1090:43: warning: variable ‘r_scale’ set but not used [-Wunused-but-set-variable]
     float r1 = 0, r2 = 0, r3 = 0, r4 = 0, r_scale = 0;
                                           ^~~~~~~
/home/wjadmin/darknet/src/utils.c: In function ‘custom_hash’:
/home/wjadmin/darknet/src/utils.c:1040:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     while (c = *str++)
            ^
[ 54%] Building C object CMakeFiles/dark.dir/src/detection_layer.c.o
[ 55%] Building C object CMakeFiles/dark.dir/src/detector.c.o
[ 55%] Building C object CMakeFiles/dark.dir/src/dice.c.o
[ 56%] Building C object CMakeFiles/dark.dir/src/dropout_layer.c.o
[ 57%] Building C object CMakeFiles/dark.dir/src/gaussian_yolo_layer.c.o
/home/wjadmin/darknet/src/detector.c: In function ‘print_cocos’:
/home/wjadmin/darknet/src/detector.c:477:29: warning: format not a string literal and no format arguments [-Wformat-security]
                 fprintf(fp, buff);
                             ^~~~
/home/wjadmin/darknet/src/detector.c: In function ‘eliminate_bdd’:
/home/wjadmin/darknet/src/detector.c:570:21: warning: statement with no effect [-Wunused-value]
                     for (k; buf[k + n] != '\0'; k++)
                     ^~~
/home/wjadmin/darknet/src/detector.c: In function ‘validate_detector’:
/home/wjadmin/darknet/src/detector.c:691:13: warning: unused variable ‘mkd2’ [-Wunused-variable]
         int mkd2 = make_directory(buff2, 0777);
             ^~~~
/home/wjadmin/darknet/src/detector.c:689:13: warning: unused variable ‘mkd’ [-Wunused-variable]
         int mkd = make_directory(buff, 0777);
             ^~~
/home/wjadmin/darknet/src/detector.c: In function ‘validate_detector_map’:
/home/wjadmin/darknet/src/detector.c:1322:15: warning: unused variable ‘class_recall’ [-Wunused-variable]
         float class_recall = (float)tp_for_thresh_per_class[i] / ((float)tp_for_thresh_per_class[i] + (float)(truth_classes_count[i] - tp_for_thresh_per_class[i]));
               ^~~~~~~~~~~~
/home/wjadmin/darknet/src/detector.c:1321:15: warning: unused variable ‘class_precision’ [-Wunused-variable]
         float class_precision = (float)tp_for_thresh_per_class[i] / ((float)tp_for_thresh_per_class[i] + (float)fp_for_thresh_per_class[i]);
               ^~~~~~~~~~~~~~~
/home/wjadmin/darknet/src/detector.c: In function ‘draw_object’:
/home/wjadmin/darknet/src/detector.c:1856:19: warning: unused variable ‘inv_loss’ [-Wunused-variable]
             float inv_loss = 1.0 / max_val_cmp(0.01, avg_loss);
                   ^~~~~~~~
/home/wjadmin/darknet/src/gaussian_yolo_layer.c: In function ‘make_gaussian_yolo_layer’:
/home/wjadmin/darknet/src/gaussian_yolo_layer.c:71:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (cudaSuccess == cudaHostAlloc(&l.output, batch*l.outputs * sizeof(float), cudaHostRegisterMapped)) l.output_pinned = 1;
                                      ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.c:7:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/gaussian_yolo_layer.c:78:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (cudaSuccess == cudaHostAlloc(&l.delta, batch*l.outputs * sizeof(float), cudaHostRegisterMapped)) l.delta_pinned = 1;
                                      ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.c:7:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/gaussian_yolo_layer.c: In function ‘resize_gaussian_yolo_layer’:
/home/wjadmin/darknet/src/gaussian_yolo_layer.c:110:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess != cudaHostAlloc(&l->output, l->batch*l->outputs * sizeof(float), cudaHostRegisterMapped)) {
                                          ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.c:7:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/gaussian_yolo_layer.c:119:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess != cudaHostAlloc(&l->delta, l->batch*l->outputs * sizeof(float), cudaHostRegisterMapped)) {
                                          ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/gaussian_yolo_layer.c:7:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
[ 57%] Building C object CMakeFiles/dark.dir/src/gemm.c.o
[ 58%] Building C object CMakeFiles/dark.dir/src/go.c.o
[ 59%] Building C object CMakeFiles/dark.dir/src/gru_layer.c.o
/home/wjadmin/darknet/src/gemm.c: In function ‘_castu32_f32’:
/home/wjadmin/darknet/src/gemm.c:550:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
     return *((float *)&a);
     ^~~~~~
/home/wjadmin/darknet/src/gemm.c: In function ‘convolution_2d’:
/home/wjadmin/darknet/src/gemm.c:1066:27: warning: unused variable ‘sum’ [-Wunused-variable]
                     float sum = 0;
                           ^~~
/home/wjadmin/darknet/src/gemm.c:1046:13: warning: unused variable ‘all256i_one’ [-Wunused-variable]
     __m256i all256i_one = _mm256_set1_epi32(1);
             ^~~~~~~~~~~
/home/wjadmin/darknet/src/gemm.c:1045:12: warning: unused variable ‘all256_one’ [-Wunused-variable]
     __m256 all256_one = _mm256_set1_ps(1);
            ^~~~~~~~~~
/home/wjadmin/darknet/src/gemm.c:1043:13: warning: unused variable ‘idx256’ [-Wunused-variable]
     __m256i idx256 = _mm256_set_epi32(0, 7, 6, 5, 4, 3, 2, 1);
             ^~~~~~
/home/wjadmin/darknet/src/gemm.c:1040:13: warning: unused variable ‘all256_last_zero’ [-Wunused-variable]
     __m256i all256_last_zero =
             ^~~~~~~~~~~~~~~~
/home/wjadmin/darknet/src/gemm.c: In function ‘im2col_cpu_custom_bin’:
/home/wjadmin/darknet/src/gemm.c:1644:17: warning: unused variable ‘all256_sing1’ [-Wunused-variable]
         __m256i all256_sing1 = _mm256_set_epi32(0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000);
                 ^~~~~~~~~~~~
[ 59%] Building C object CMakeFiles/dark.dir/src/im2col.c.o
[ 60%] Building C object CMakeFiles/dark.dir/src/image.c.o
[ 61%] Building C object CMakeFiles/darknet.dir/src/writing.c.o
[ 61%] Building C object CMakeFiles/dark.dir/src/layer.c.o
[ 62%] Building C object CMakeFiles/dark.dir/src/list.c.o
/home/wjadmin/darknet/src/layer.c: In function ‘free_layer_custom’:
/home/wjadmin/darknet/src/layer.c:204:68: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
     if (l.delta_gpu && (l.optimized_memory < 1 || l.keep_delta_gpu && l.optimized_memory < 3)) cuda_free(l.delta_gpu), l.delta_gpu = NULL;
                                                   ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
[ 62%] Building C object CMakeFiles/darknet.dir/src/yolo.c.o
[ 63%] Building C object CMakeFiles/dark.dir/src/local_layer.c.o
[ 63%] Building C object CMakeFiles/dark.dir/src/lstm_layer.c.o
[ 64%] Building C object CMakeFiles/dark.dir/src/matrix.c.o
[ 65%] Building C object CMakeFiles/darknet.dir/src/yolo_layer.c.o
[ 65%] Building C object CMakeFiles/dark.dir/src/maxpool_layer.c.o
[ 66%] Building C object CMakeFiles/dark.dir/src/network.c.o
/home/wjadmin/darknet/src/yolo_layer.c: In function ‘make_yolo_layer’:
/home/wjadmin/darknet/src/yolo_layer.c:66:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (cudaSuccess == cudaHostAlloc(&l.output, batch*l.outputs*sizeof(float), cudaHostRegisterMapped)) l.output_pinned = 1;
                                      ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/activations.h:3,
                 from /home/wjadmin/darknet/src/layer.h:4,
                 from /home/wjadmin/darknet/src/yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/yolo_layer.c:1:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/yolo_layer.c:73:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (cudaSuccess == cudaHostAlloc(&l.delta, batch*l.outputs*sizeof(float), cudaHostRegisterMapped)) l.delta_pinned = 1;
                                      ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/activations.h:3,
                 from /home/wjadmin/darknet/src/layer.h:4,
                 from /home/wjadmin/darknet/src/yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/yolo_layer.c:1:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/yolo_layer.c: In function ‘resize_yolo_layer’:
/home/wjadmin/darknet/src/yolo_layer.c:103:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess != cudaHostAlloc(&l->output, l->batch*l->outputs * sizeof(float), cudaHostRegisterMapped)) {
                                          ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/activations.h:3,
                 from /home/wjadmin/darknet/src/layer.h:4,
                 from /home/wjadmin/darknet/src/yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/yolo_layer.c:1:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/yolo_layer.c:112:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess != cudaHostAlloc(&l->delta, l->batch*l->outputs * sizeof(float), cudaHostRegisterMapped)) {
                                          ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/activations.h:3,
                 from /home/wjadmin/darknet/src/layer.h:4,
                 from /home/wjadmin/darknet/src/yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/yolo_layer.c:1:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/yolo_layer.c: In function ‘forward_yolo_layer’:
/home/wjadmin/darknet/src/yolo_layer.c:390:25: warning: variable ‘best_match_t’ set but not used [-Wunused-but-set-variable]
                     int best_match_t = 0;
                         ^~~~~~~~~~~~
/home/wjadmin/darknet/src/network.c: In function ‘resize_network’:
/home/wjadmin/darknet/src/network.c:615:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess == cudaHostAlloc(&net->input_pinned_cpu, size * sizeof(float), cudaHostRegisterMapped))
                                          ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/network.c:1:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
[ 67%] Building C object CMakeFiles/dark.dir/src/nightmare.c.o
[ 67%] Building C object CMakeFiles/dark.dir/src/normalization_layer.c.o
[ 68%] Building C object CMakeFiles/dark.dir/src/option_list.c.o
[ 68%] Building C object CMakeFiles/dark.dir/src/parser.c.o
[ 69%] Building C object CMakeFiles/dark.dir/src/region_layer.c.o
/home/wjadmin/darknet/src/parser.c: In function ‘parse_network_cfg_custom’:
/home/wjadmin/darknet/src/parser.c:1663:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess == cudaHostAlloc(&net.input_pinned_cpu, size * sizeof(float), cudaHostRegisterMapped)) net.input_pinned_cpu_flag = 1;
                                          ^
[ 69%] Building CXX object CMakeFiles/darknet.dir/src/http_stream.cpp.o
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/activations.h:3,
                 from /home/wjadmin/darknet/src/activation_layer.h:4,
                 from /home/wjadmin/darknet/src/parser.c:6:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/region_layer.c: In function ‘resize_region_layer’:
/home/wjadmin/darknet/src/region_layer.c:59:9: warning: unused variable ‘old_h’ [-Wunused-variable]
     int old_h = l->h;
         ^~~~~
/home/wjadmin/darknet/src/region_layer.c:58:9: warning: unused variable ‘old_w’ [-Wunused-variable]
     int old_w = l->w;
         ^~~~~
[ 70%] Building C object CMakeFiles/dark.dir/src/reorg_layer.c.o
In file included from /home/wjadmin/darknet/src/http_stream.cpp:580:0:
/home/wjadmin/darknet/src/httplib.h:129:0: warning: "INVALID_SOCKET" redefined
 #define INVALID_SOCKET (-1)

/home/wjadmin/darknet/src/http_stream.cpp:73:0: note: this is the location of the previous definition
 #define INVALID_SOCKET -1

/home/wjadmin/darknet/src/parser.c: In function ‘get_classes_multipliers’:
/home/wjadmin/darknet/src/parser.c:427:29: warning: argument 1 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
         classes_multipliers = (float *)calloc(classes_counters, sizeof(float));
         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/wjadmin/darknet/src/parser.c:3:0:
/usr/include/stdlib.h:541:14: note: in a call to allocation function ‘calloc’ declared here
 extern void *calloc (size_t __nmemb, size_t __size)
              ^~~~~~
[ 70%] Building C object CMakeFiles/dark.dir/src/reorg_old_layer.c.o
[ 71%] Building C object CMakeFiles/dark.dir/src/rnn.c.o
[ 71%] Building C object CMakeFiles/dark.dir/src/rnn_layer.c.o
[ 72%] Building C object CMakeFiles/dark.dir/src/rnn_vid.c.o
[ 73%] Building C object CMakeFiles/dark.dir/src/route_layer.c.o
[ 73%] Building C object CMakeFiles/dark.dir/src/sam_layer.c.o
[ 74%] Building C object CMakeFiles/dark.dir/src/scale_channels_layer.c.o
[ 74%] Building C object CMakeFiles/dark.dir/src/shortcut_layer.c.o
/home/wjadmin/darknet/src/http_stream.cpp: In member function ‘bool JSON_sender::write(const char*)’:
/home/wjadmin/darknet/src/http_stream.cpp:249:21: warning: unused variable ‘n’ [-Wunused-variable]
                 int n = _write(client, outputbuf, outlen);
                     ^
[ 75%] Building C object CMakeFiles/dark.dir/src/softmax_layer.c.o
/home/wjadmin/darknet/src/shortcut_layer.c: In function ‘make_shortcut_layer’:
/home/wjadmin/darknet/src/shortcut_layer.c:55:15: warning: unused variable ‘scale’ [-Wunused-variable]
         float scale = sqrt(2. / l.nweights);
               ^~~~~
[ 76%] Building C object CMakeFiles/dark.dir/src/super.c.o
[ 77%] Building CXX object CMakeFiles/darknet.dir/src/image_opencv.cpp.o
/home/wjadmin/darknet/src/softmax_layer.c: In function ‘make_contrastive_layer’:
/home/wjadmin/darknet/src/softmax_layer.c:202:101: warning: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘size_t {aka const long unsigned int}’ [-Wformat=]
     fprintf(stderr, "contrastive %4d x%4d x%4d x emb_size %4d x batch: %4d  classes = %4d, step = %4d \n", w, h, l.n, l.embedding_size, batch, l.classes, step);
                                                                                                   ~~^
                                                                                                   %4ld
/home/wjadmin/darknet/src/softmax_layer.c: In function ‘forward_contrastive_layer’:
/home/wjadmin/darknet/src/softmax_layer.c:243:27: warning: variable ‘max_truth’ set but not used [-Wunused-but-set-variable]
                     float max_truth = 0;
                           ^~~~~~~~~
/home/wjadmin/darknet/src/softmax_layer.c:420:71: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t {aka const long unsigned int}’ [-Wformat=]
             printf(" Error: too large number of bboxes: contr_size = %d > max_contr_size  = %d \n", contr_size, max_contr_size);
                                                                      ~^
                                                                      %ld
[ 77%] Building C object CMakeFiles/dark.dir/src/swag.c.o
[ 78%] Building C object CMakeFiles/dark.dir/src/tag.c.o
[ 78%] Building C object CMakeFiles/dark.dir/src/tree.c.o
[ 79%] Building C object CMakeFiles/dark.dir/src/upsample_layer.c.o
[ 80%] Building C object CMakeFiles/dark.dir/src/utils.c.o
[ 80%] Building C object CMakeFiles/dark.dir/src/voxel.c.o
[ 81%] Building C object CMakeFiles/dark.dir/src/writing.c.o
[ 82%] Building C object CMakeFiles/dark.dir/src/yolo.c.o
/home/wjadmin/darknet/src/utils.c: In function ‘custom_hash’:
/home/wjadmin/darknet/src/utils.c:1040:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     while (c = *str++)
            ^
[ 82%] Building C object CMakeFiles/dark.dir/src/yolo_layer.c.o
[ 83%] Building CUDA object CMakeFiles/darknet.dir/src/activation_kernels.cu.o
/home/wjadmin/darknet/src/yolo_layer.c: In function ‘make_yolo_layer’:
/home/wjadmin/darknet/src/yolo_layer.c:66:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (cudaSuccess == cudaHostAlloc(&l.output, batch*l.outputs*sizeof(float), cudaHostRegisterMapped)) l.output_pinned = 1;
                                      ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/activations.h:3,
                 from /home/wjadmin/darknet/src/layer.h:4,
                 from /home/wjadmin/darknet/src/yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/yolo_layer.c:1:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/yolo_layer.c:73:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (cudaSuccess == cudaHostAlloc(&l.delta, batch*l.outputs*sizeof(float), cudaHostRegisterMapped)) l.delta_pinned = 1;
                                      ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/activations.h:3,
                 from /home/wjadmin/darknet/src/layer.h:4,
                 from /home/wjadmin/darknet/src/yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/yolo_layer.c:1:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/yolo_layer.c: In function ‘resize_yolo_layer’:
/home/wjadmin/darknet/src/yolo_layer.c:103:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess != cudaHostAlloc(&l->output, l->batch*l->outputs * sizeof(float), cudaHostRegisterMapped)) {
                                          ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/activations.h:3,
                 from /home/wjadmin/darknet/src/layer.h:4,
                 from /home/wjadmin/darknet/src/yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/yolo_layer.c:1:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/yolo_layer.c:112:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess != cudaHostAlloc(&l->delta, l->batch*l->outputs * sizeof(float), cudaHostRegisterMapped)) {
                                          ^
In file included from /usr/local/cuda/targets/x86_64-linux/include/cuda_runtime.h:96:0,
                 from /home/wjadmin/darknet/include/darknet.h:41,
                 from /home/wjadmin/darknet/src/activations.h:3,
                 from /home/wjadmin/darknet/src/layer.h:4,
                 from /home/wjadmin/darknet/src/yolo_layer.h:5,
                 from /home/wjadmin/darknet/src/yolo_layer.c:1:
/usr/local/cuda/targets/x86_64-linux/include/cuda_runtime_api.h:4388:39: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                       ^~~~~~~~~~~~~
/home/wjadmin/darknet/src/yolo_layer.c: In function ‘forward_yolo_layer’:
/home/wjadmin/darknet/src/yolo_layer.c:390:25: warning: variable ‘best_match_t’ set but not used [-Wunused-but-set-variable]
                     int best_match_t = 0;
                         ^~~~~~~~~~~~
[ 84%] Building CXX object CMakeFiles/dark.dir/src/http_stream.cpp.o
/home/wjadmin/darknet/src/activation_kernels.cu(263): warning: variable "MISH_THRESHOLD" was declared but never referenced

In file included from /home/wjadmin/darknet/src/http_stream.cpp:580:0:
/home/wjadmin/darknet/src/httplib.h:129:0: warning: "INVALID_SOCKET" redefined
 #define INVALID_SOCKET (-1)

/home/wjadmin/darknet/src/http_stream.cpp:73:0: note: this is the location of the previous definition
 #define INVALID_SOCKET -1

[ 84%] Building CXX object CMakeFiles/dark.dir/src/image_opencv.cpp.o
/home/wjadmin/darknet/src/http_stream.cpp: In member function ‘bool MJPG_sender::write(const cv::Mat&)’:
/home/wjadmin/darknet/src/http_stream.cpp:507:113: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 3 has type ‘int’ [-Wformat=]
                 sprintf(head, "--mjpegstream\r\nContent-Type: image/jpeg\r\nContent-Length: %zu\r\n\r\n", outlen);
                                                                                                                 ^
[ 85%] Building CUDA object CMakeFiles/dark.dir/src/activation_kernels.cu.o
/home/wjadmin/darknet/src/http_stream.cpp: In member function ‘bool JSON_sender::write(const char*)’:
/home/wjadmin/darknet/src/http_stream.cpp:249:21: warning: unused variable ‘n’ [-Wunused-variable]
                 int n = _write(client, outputbuf, outlen);
                     ^
/home/wjadmin/darknet/src/activation_kernels.cu(263): warning: variable "MISH_THRESHOLD" was declared but never referenced

/home/wjadmin/darknet/src/http_stream.cpp: In function ‘void set_track_id(detection*, int, float, float, float, int, int, int)’:
/home/wjadmin/darknet/src/http_stream.cpp:845:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < v.size(); ++i) {
                         ~~^~~~~~~~~~
/home/wjadmin/darknet/src/http_stream.cpp:853:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int old_id = 0; old_id < old_dets.size(); ++old_id) {
                          ~~~~~~~^~~~~~~~~~~~~~~~~
/home/wjadmin/darknet/src/http_stream.cpp:873:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int index = 0; index < new_dets_num*old_dets.size(); ++index) {
                         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/wjadmin/darknet/src/http_stream.cpp:908:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (old_dets_dq.size() > deque_size) old_dets_dq.pop_front();
         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/wjadmin/darknet/src/image_opencv.cpp: In function ‘void draw_detections_cv_v3(void**, detection*, int, float, char**, image**, int, int)’:
/home/wjadmin/darknet/src/image_opencv.cpp:926:23: warning: variable ‘rgb’ set but not used [-Wunused-but-set-variable]
                 float rgb[3];
                       ^~~
/home/wjadmin/darknet/src/image_opencv.cpp: In function ‘void draw_train_loss(char*, void**, int, float, float, int, int, float, int, char*, float, int, int, double)’:
/home/wjadmin/darknet/src/image_opencv.cpp:1127:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
             if (iteration_old == 0)
             ^~
/home/wjadmin/darknet/src/image_opencv.cpp:1130:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
          if (iteration_old != 0){
          ^~
/home/wjadmin/darknet/src/image_opencv.cpp: In function ‘void cv_draw_object(image, float*, int, int, int*, float*, int*, int, char**)’:
/home/wjadmin/darknet/src/image_opencv.cpp:1424:14: warning: unused variable ‘buff’ [-Wunused-variable]
         char buff[100];
              ^~~~
/home/wjadmin/darknet/src/image_opencv.cpp:1400:9: warning: unused variable ‘it_tb_res’ [-Wunused-variable]
     int it_tb_res = cv::createTrackbar(it_trackbar_name, window_name, &it_trackbar_value, 1000);
         ^~~~~~~~~
/home/wjadmin/darknet/src/image_opencv.cpp:1404:9: warning: unused variable ‘lr_tb_res’ [-Wunused-variable]
     int lr_tb_res = cv::createTrackbar(lr_trackbar_name, window_name, &lr_trackbar_value, 20);
         ^~~~~~~~~
/home/wjadmin/darknet/src/image_opencv.cpp:1408:9: warning: unused variable ‘cl_tb_res’ [-Wunused-variable]
     int cl_tb_res = cv::createTrackbar(cl_trackbar_name, window_name, &cl_trackbar_value, classes-1);
         ^~~~~~~~~
/home/wjadmin/darknet/src/image_opencv.cpp:1411:9: warning: unused variable ‘bo_tb_res’ [-Wunused-variable]
     int bo_tb_res = cv::createTrackbar(bo_trackbar_name, window_name, boxonly, 1);
         ^~~~~~~~~
[ 85%] Building CUDA object CMakeFiles/darknet.dir/src/avgpool_layer_kernels.cu.o
/home/wjadmin/darknet/src/http_stream.cpp: In member function ‘bool MJPG_sender::write(const cv::Mat&)’:
/home/wjadmin/darknet/src/http_stream.cpp:507:113: warning: format ‘%zu’ expects argument of type ‘size_t’, but argument 3 has type ‘int’ [-Wformat=]
                 sprintf(head, "--mjpegstream\r\nContent-Type: image/jpeg\r\nContent-Length: %zu\r\n\r\n", outlen);
                                                                                                                 ^
[ 86%] Building CUDA object CMakeFiles/darknet.dir/src/blas_kernels.cu.o
/home/wjadmin/darknet/src/image_opencv.cpp: In function ‘void draw_detections_cv_v3(void**, detection*, int, float, char**, image**, int, int)’:
/home/wjadmin/darknet/src/image_opencv.cpp:926:23: warning: variable ‘rgb’ set but not used [-Wunused-but-set-variable]
                 float rgb[3];
                       ^~~
/home/wjadmin/darknet/src/image_opencv.cpp: In function ‘void draw_train_loss(char*, void**, int, float, float, int, int, float, int, char*, float, int, int, double)’:
/home/wjadmin/darknet/src/image_opencv.cpp:1127:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
             if (iteration_old == 0)
             ^~
/home/wjadmin/darknet/src/image_opencv.cpp:1130:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
          if (iteration_old != 0){
          ^~
/home/wjadmin/darknet/src/image_opencv.cpp: In function ‘void cv_draw_object(image, float*, int, int, int*, float*, int*, int, char**)’:
/home/wjadmin/darknet/src/image_opencv.cpp:1424:14: warning: unused variable ‘buff’ [-Wunused-variable]
         char buff[100];
              ^~~~
/home/wjadmin/darknet/src/image_opencv.cpp:1400:9: warning: unused variable ‘it_tb_res’ [-Wunused-variable]
     int it_tb_res = cv::createTrackbar(it_trackbar_name, window_name, &it_trackbar_value, 1000);
         ^~~~~~~~~
/home/wjadmin/darknet/src/image_opencv.cpp:1404:9: warning: unused variable ‘lr_tb_res’ [-Wunused-variable]
     int lr_tb_res = cv::createTrackbar(lr_trackbar_name, window_name, &lr_trackbar_value, 20);
         ^~~~~~~~~
/home/wjadmin/darknet/src/image_opencv.cpp:1408:9: warning: unused variable ‘cl_tb_res’ [-Wunused-variable]
     int cl_tb_res = cv::createTrackbar(cl_trackbar_name, window_name, &cl_trackbar_value, classes-1);
         ^~~~~~~~~
/home/wjadmin/darknet/src/image_opencv.cpp:1411:9: warning: unused variable ‘bo_tb_res’ [-Wunused-variable]
     int bo_tb_res = cv::createTrackbar(bo_trackbar_name, window_name, boxonly, 1);
         ^~~~~~~~~
/home/wjadmin/darknet/src/blas_kernels.cu(1086): warning: variable "out_index" was declared but never referenced

/home/wjadmin/darknet/src/blas_kernels.cu(1130): warning: variable "step" was set but never used

/home/wjadmin/darknet/src/blas_kernels.cu(1736): warning: variable "stage_id" was declared but never referenced

[ 87%] Building CUDA object CMakeFiles/dark.dir/src/avgpool_layer_kernels.cu.o
/home/wjadmin/darknet/src/http_stream.cpp: In function ‘void set_track_id(detection*, int, float, float, float, int, int, int)’:
/home/wjadmin/darknet/src/http_stream.cpp:845:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < v.size(); ++i) {
                         ~~^~~~~~~~~~
/home/wjadmin/darknet/src/http_stream.cpp:853:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int old_id = 0; old_id < old_dets.size(); ++old_id) {
                          ~~~~~~~^~~~~~~~~~~~~~~~~
/home/wjadmin/darknet/src/http_stream.cpp:873:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int index = 0; index < new_dets_num*old_dets.size(); ++index) {
                         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/wjadmin/darknet/src/http_stream.cpp:908:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (old_dets_dq.size() > deque_size) old_dets_dq.pop_front();
         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
[ 87%] Building CUDA object CMakeFiles/darknet.dir/src/col2im_kernels.cu.o
[ 87%] Building CUDA object CMakeFiles/dark.dir/src/blas_kernels.cu.o
[ 88%] Building CUDA object CMakeFiles/darknet.dir/src/convolutional_kernels.cu.o
/home/wjadmin/darknet/src/blas_kernels.cu(1086): warning: variable "out_index" was declared but never referenced

/home/wjadmin/darknet/src/blas_kernels.cu(1130): warning: variable "step" was set but never used

/home/wjadmin/darknet/src/blas_kernels.cu(1736): warning: variable "stage_id" was declared but never referenced

[ 89%] Building CUDA object CMakeFiles/darknet.dir/src/crop_layer_kernels.cu.o
[ 90%] Building CUDA object CMakeFiles/dark.dir/src/col2im_kernels.cu.o
/home/wjadmin/darknet/src/blas_kernels.cu: In function ‘void backward_shortcut_multilayer_gpu(int, int, int, int*, float**, float*, float*, float*, float*, int, float*, float**, WEIGHTS_NORMALIZATION_T)’:
/home/wjadmin/darknet/src/blas_kernels.cu:1130:5: warning: variable ‘step’ set but not used [-Wunused-but-set-variable]
     int step = 0;
     ^~~~
[ 90%] Building CUDA object CMakeFiles/darknet.dir/src/deconvolutional_kernels.cu.o
[ 90%] Building CUDA object CMakeFiles/dark.dir/src/convolutional_kernels.cu.o
[ 91%] Building CUDA object CMakeFiles/darknet.dir/src/dropout_layer_kernels.cu.o
[ 92%] Building CUDA object CMakeFiles/dark.dir/src/crop_layer_kernels.cu.o
/home/wjadmin/darknet/src/dropout_layer_kernels.cu(140): warning: variable "cur_scale" was declared but never referenced

/home/wjadmin/darknet/src/dropout_layer_kernels.cu(245): warning: variable "cur_scale" was declared but never referenced

/home/wjadmin/darknet/src/dropout_layer_kernels.cu(262): warning: variable "block_prob" was declared but never referenced

[ 92%] Building CUDA object CMakeFiles/darknet.dir/src/im2col_kernels.cu.o
[ 93%] Building CUDA object CMakeFiles/darknet.dir/src/maxpool_layer_kernels.cu.o
[ 94%] Building CUDA object CMakeFiles/darknet.dir/src/network_kernels.cu.o
/home/wjadmin/darknet/src/blas_kernels.cu: In function ‘void backward_shortcut_multilayer_gpu(int, int, int, int*, float**, float*, float*, float*, float*, int, float*, float**, WEIGHTS_NORMALIZATION_T)’:
/home/wjadmin/darknet/src/blas_kernels.cu:1130:5: warning: variable ‘step’ set but not used [-Wunused-but-set-variable]
     int step = 0;
     ^~~~
[ 95%] Building CUDA object CMakeFiles/dark.dir/src/deconvolutional_kernels.cu.o
[ 95%] Building CUDA object CMakeFiles/dark.dir/src/dropout_layer_kernels.cu.o
/home/wjadmin/darknet/src/network_kernels.cu(364): warning: variable "l" was declared but never referenced

/home/wjadmin/darknet/src/dropout_layer_kernels.cu(140): warning: variable "cur_scale" was declared but never referenced

/home/wjadmin/darknet/src/dropout_layer_kernels.cu(245): warning: variable "cur_scale" was declared but never referenced

/home/wjadmin/darknet/src/dropout_layer_kernels.cu(262): warning: variable "block_prob" was declared but never referenced

/home/wjadmin/darknet/src/network_kernels.cu: In function ‘float train_network_datum_gpu(network, float*, float*)’:
/home/wjadmin/darknet/src/network_kernels.cu:364:7: warning: variable ‘l’ set but not used [-Wunused-but-set-variable]
         layer l = net.layers[net.n - 1];
       ^
[ 96%] Building CUDA object CMakeFiles/dark.dir/src/im2col_kernels.cu.o
[ 96%] Building CUDA object CMakeFiles/dark.dir/src/maxpool_layer_kernels.cu.o
[ 97%] Building CUDA object CMakeFiles/dark.dir/src/network_kernels.cu.o
/home/wjadmin/darknet/src/network_kernels.cu(364): warning: variable "l" was declared but never referenced

/home/wjadmin/darknet/src/network_kernels.cu: In function ‘float train_network_datum_gpu(network, float*, float*)’:
/home/wjadmin/darknet/src/network_kernels.cu:364:7: warning: variable ‘l’ set but not used [-Wunused-but-set-variable]
         layer l = net.layers[net.n - 1];
       ^
[ 97%] Linking CXX executable darknet
[ 97%] Built target darknet
[ 98%] Linking CUDA device code CMakeFiles/dark.dir/cmake_device_link.o
[ 98%] Linking CXX shared library libdarknet.so
[ 98%] Built target dark
Scanning dependencies of target uselib
[ 99%] Building CXX object CMakeFiles/uselib.dir/src/yolo_console_dll.cpp.o
In file included from /home/wjadmin/darknet/src/yolo_console_dll.cpp:23:0:
/home/wjadmin/darknet/include/yolo_v2_class.hpp: In member function ‘void track_kalman_t::clear_old_states()’:
/home/wjadmin/darknet/include/yolo_v2_class.hpp:878:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if ((result_vec_pred[state_id].x > img_size.width) ||
/home/wjadmin/darknet/include/yolo_v2_class.hpp:879:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                     (result_vec_pred[state_id].y > img_size.height))
/home/wjadmin/darknet/include/yolo_v2_class.hpp: In member function ‘track_kalman_t::tst_t track_kalman_t::get_state_id(bbox_t, std::vector<bool>&)’:
/home/wjadmin/darknet/include/yolo_v2_class.hpp:899:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (size_t i = 0; i < max_objects; ++i)
                            ~~^~~~~~~~~~~~~
/home/wjadmin/darknet/include/yolo_v2_class.hpp: In member function ‘std::vector<bbox_t> track_kalman_t::predict()’:
/home/wjadmin/darknet/include/yolo_v2_class.hpp:989:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (size_t i = 0; i < max_objects; ++i)
                            ~~^~~~~~~~~~~~~
/home/wjadmin/darknet/include/yolo_v2_class.hpp: In member function ‘std::vector<bbox_t> track_kalman_t::correct(std::vector<bbox_t>)’:
/home/wjadmin/darknet/include/yolo_v2_class.hpp:1024:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (size_t i = 0; i < max_objects; ++i)
                            ~~^~~~~~~~~~~~~
/home/wjadmin/darknet/src/yolo_console_dll.cpp: In function ‘void draw_boxes(cv::Mat, std::vector<bbox_t>, std::vector<std::__cxx11::basic_string<char> >, int, int)’:
/home/wjadmin/darknet/src/yolo_console_dll.cpp:192:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             int max_width = (text_size.width > i.w + 2) ? text_size.width : (i.w + 2);
                              ~~~~~~~~~~~~~~~~^~~~~~~~~
/home/wjadmin/darknet/src/yolo_console_dll.cpp:201:62: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 int const max_width_3d = (text_size_3d.width > i.w + 2) ? text_size_3d.width : (i.w + 2);
                                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/wjadmin/darknet/src/yolo_console_dll.cpp:183:15: warning: unused variable ‘colors’ [-Wunused-variable]
     int const colors[6][3] = { { 1,0,1 },{ 0,0,1 },{ 0,1,1 },{ 0,1,0 },{ 1,1,0 },{ 1,0,0 } };
               ^~~~~~
[100%] Linking CXX executable uselib
[100%] Built target uselib
Install the project...
-- Install configuration: "Release"
-- Installing: /home/wjadmin/darknet/libdarknet.so
-- Set runtime path of "/home/wjadmin/darknet/libdarknet.so" to ""
-- Installing: /home/wjadmin/darknet/include/darknet/darknet.h
-- Installing: /home/wjadmin/darknet/include/darknet/yolo_v2_class.hpp
-- Installing: /home/wjadmin/darknet/uselib
-- Set runtime path of "/home/wjadmin/darknet/uselib" to ""
-- Installing: /home/wjadmin/darknet/darknet
-- Set runtime path of "/home/wjadmin/darknet/darknet" to ""
-- Installing: /home/wjadmin/darknet/share/darknet/DarknetTargets.cmake
-- Installing: /home/wjadmin/darknet/share/darknet/DarknetTargets-release.cmake
-- Installing: /home/wjadmin/darknet/share/darknet/DarknetConfig.cmake
-- Installing: /home/wjadmin/darknet/share/darknet/DarknetConfigVersion.cmake

I checked both the Cuda path and the nvcc path are exactly at /usr/local/cuda and /usr/local/cuda/bin/nvcc . And below is my nvcc -V info

(base) wjadmin@WJ2080Ti-002:~/darknet$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Fri_Feb__8_19:08:17_PST_2019
Cuda compilation tools, release 10.1, V10.1.105

Do I miss something?

How to fix this error? Thx

ForLynda commented 1 year ago

Did you solve this problem? I'm going through same problem..