ganyc717 / Darknet-On-OpenCL

Darknet On OpenCL
MIT License
100 stars 44 forks source link

OpenCL execution Error -13 (CL_MISALIGNED_SUB_BUFFER_OFFSET) on AMD GPU #23

Closed rsaxvc closed 4 years ago

rsaxvc commented 4 years ago

Hello, it appears my AMD RX580s require sub-buffers be aligned to 2048, but in forward_yolo_layer_gpu(), it appears to walk the arrays according to the network size/configuration, which may not be aligned to 2048, causing the error.

rsaxvc commented 4 years ago

Oops, this is a duplicate of #6