sowson / darknet

Darknet on OpenCL Convolutional Neural Networks on OpenCL on Intel & NVidia & AMD & Mali GPUs for macOS & GNU/Linux & Windows & FreeBSD
http://pjreddie.com/darknet/
Other
187 stars 31 forks source link

An error occurred while compiling the program with OpenMP. #61

Closed trriger closed 3 years ago

trriger commented 3 years ago

Platform: Rock Pi 4C with RK3399 OS: Ubuntu 20.04 Tools: GCC 9.3.0 with OpenMP

The error message is shown below. I think that the error may be due to the definition of GPU.

./src/network.c: In function 'get_network_output_layer_gpu':
./src/network.c:647:63: warning: implicit declaration of function 'opencl_pull_array' [-Wimplicit-function-declaration]
  647 |     if(l.type != REGION && l.type != YOLO && l.type != YOLO4) opencl_pull_array(l.output_gpu, l.output, l.outputs*l.batch);
      |                                                               ^~~~~~~~~~~~~~~~~
./src/network.c:647:83: error: 'layer' {aka 'struct layer'} has no member named 'output_gpu'; did you mean 'output_avg'?
  647 |     if(l.type != REGION && l.type != YOLO && l.type != YOLO4) opencl_pull_array(l.output_gpu, l.output, l.outputs*l.batch);
      |                                                                                   ^~~~~~~~~~
      |                                                                                   output_avg
compilation terminated due to -Wfatal-errors.
make: *** [Makefile:147: obj/network.o] Error 1
make: *** Waiting for unfinished jobs....

image

The next picture is the config of Makefile. image

sowson commented 3 years ago

@trriger, can you please try the latest commit by pull repository? Thanks!

sowson commented 3 years ago

@trriger can we close this issue?

trriger commented 3 years ago

Yes, The latest version of the program runs normally. Thanks!