ganyc717 / Darknet-On-OpenCL

Darknet On OpenCL
MIT License
100 stars 44 forks source link

opencl execution error, code -11 -11 #13

Open Davcg5 opened 6 years ago

Davcg5 commented 6 years ago

When I run ./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg

The output is this loading weights from yolov3.weights...Done! im2col_kernels.cl build log: 2:36:18: warning: '/' within block comment //data_col_ptr = data_im_ptr[ii * width + jj]; ^

opencl execution error, code -11 -11 terminate called after throwing an instance of 'std::runtime_error' what(): OpenCL error, code: -11 Abortado (`core' generado)

colorfuldarkgray commented 5 years ago

Try executing from Windows PowerShell!

tylertroy commented 4 years ago

It could be related to the version of OpenCL supplied by your package manager. As discussed in this issue, you might have to compile an earlier version from source.

https://github.com/HPCE/hpce-2018-cw3/issues/53#issue-269312822

road2programmer commented 3 years ago

Could anyone solve this issue and can this person give us some advice, please?

colorfuldarkgray commented 3 years ago

Could anyone solve this issue and can this person give us some advice, please?

I would suggest you to train using original PJReddie's or AlexeyAB's Darknet, on Linux. For inference you may try OpenCV´s Deep Neural Network module.

gidesa commented 2 years ago

The error code -11 is CL_BUILD_PROGRAM_FAILURE. This error caused because original blas_kernels_2.cl is wrong. I correct two lines: error[i] = (t) ? -log(p) : 0; modified in: error[i] = (t > 0) ? -log(p) : 0;

    error[i] = ( truth[i]) ? -pred[i] : pred[i];

modified in:
error[i] = ( truth[i] > 0) ? -pred[i] : pred[i];

More, I add in file cl_warpper.cpp code to print the OpencCL compilation errors. Attached the two corrected files. corrected.zip