hi,All,
我在编写openCL时调用clEnqueueMapBuffer,在其中blocking_map 是CL_TRUE,event_wait_list以及num_events_in_wait_list 都是NULL。却出现了CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST的错误,我查了一下引起该错误的原因是:
CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST if the map operation is blocking and the execution status of any of the events in event_wait_list is a negative integer value.
event_wait_list
但我的event_wait_list是NULL,根本没有值。该问题主要出现在mali-t760 上,而adreno 以及桌面GPU都没有出现类似的问题。不知是不是驱动bug?
Thx,
Phenix.
Hi Phenix,
I haven't encounter such kind of error before, I write a simple test, and run it on T760 and T604, both platforms cannot reproduce your problem. Would you please tell me how you create the buffer, and how you call clEnqueueMapBuffer, that would help me to locate the problem. Also, please tell me which driver version you are using. Thanks.
For clEnqueueMapBuffer(), please change the value of num_events_in_wait_list to 0, as the parameter type is cl_int, otherwise you'll get a warning.
BR,
Sheri
Hi Sheri
How to check arm mali driver version ?
Thanks
Pingyi
Hi Sheri,
In common, in what situation will cause an CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST error ?
Thanks,
Phenix
Hi Pingyi,
You can get driver version by the following command:
strings libGLES_mali.so | grep ".*Midgard-\""
libGLES_mali.so should be in /system/lib/egl or /system/vendor/lib/egl on the device.
Frank