Profiling using cl events seems to be broken.
I'm creating a cl_event profile event with profile_event
Then calling clWaitForEvents:
clWaitForEvents however returns CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST.
I am making sure to construct the command queue with the CL_QUEUE_PROFILING_ENABLE property.
As noted, this happens on my RX480. It works fine on a CPU device, the code also works fine on Nvidia devices. It also used to work on (earlier) AMD GPU devices.
Could you please provide a reproducible test-case (host + kernel) that manifest the problem? Please also share other setup details such as OS, driver version etc.?
Btw, may I know why you think that the issue is related to profiling only? Is it only occurring if profiling is enabled?