DeadSix27 / waifu2x-converter-cpp

Improved fork of Waifu2X C++ using OpenCL and OpenCV
MIT License
792 stars 86 forks source link

Enqueue ndrange error : -5 on Mali gpu #257

Open FerrahWolfeh opened 4 years ago

FerrahWolfeh commented 4 years ago

I'm trying to make a low power upscaler using the capabilities of the Mali-T760 gpu on a rockchip RK3288 arm processor The issue is that the utility runs ok using the NEON processor, but with opencl it gives the enqueue ndrange error : -5 Disabling this error makes waifu2x to instantly segfault when this error occurs

FerrahWolfeh commented 4 years ago

I inspected a little and narrowed down the problem to a CL_OUT_OF_RESOURCES error seems like loading the clEnqueueNDRangeKernel overflows the cl workspace limit and crashes this GPU