sowson/darknet

How to fix CL_INVALID_WORK_ITEM_SIZE error

trriger opened this issue · 7 comments

When I tried to run detector,the program printed an error message. And my OpenCL device is GPU which is named Mail-T860.
How can I fix this error.
image

This is my debug result. It seems that the global item is to large.
image

can you try yolov2.cfg or yolov3-tiny.cfg? my exp. with Asus Tinker Board S showed me a vram limitation is a reason. thx!

Thank you for your reply.
I just try use yolov3-tiny.cfg, but the same error occured.
Is there another solution to this problem?
image

ok, let me try to answer in 99% it is because of clCreateBuffer usage... now, please navigate to the "src/opencl.c" file and look for 2 invocations of the mentioned method, keep only CL_MEM_READ_WRITE flag and make replace x_gpu.ptr argument as NULL, rebuild and it should help, however, only usage not training will work with this change, you may also if works make it in the "#ifdef ARM" section to others who have this issue as a pull request ;-).

Pardon my asking, but is this parameter changed to NULL. I try to rerun the program, but the program has the same error.
image

please pull the latest commit all will be fine :D.
Screen Shot 2021-08-22 at 14 44 47

The latest commit runs successfully. I sincerely appreciate your help.