You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current way of initializing the shadow buffers associated with program scope variables is quite slow as it uses only a single work-item. It also uses memcpy for zero initialized objects although it could use memset which might be a bit faster.
The better way should be to generate memcpy and fillbuffer CL/LZ commands instead of calling the shadow kernel as they might in the end use DMA engines, if available on the platform.
The current way of initializing the shadow buffers associated with program scope variables is quite slow as it uses only a single work-item. It also uses memcpy for zero initialized objects although it could use memset which might be a bit faster.
The better way should be to generate memcpy and fillbuffer CL/LZ commands instead of calling the shadow kernel as they might in the end use DMA engines, if available on the platform.