[Beignet] Combine Loads from __constant space

Tony Moore tonywmnix at gmail.com
Tue Nov 25 14:44:52 PST 2014


Another question I had about __constant, was there seems to be no limit.
I'm using __constant for every read-only parameter now totalling 1500Kb and
this test now runs in 32ms. So, is there a limit? Is this method reliable?
Can driver do this implicitly on all read-only buffers?
thanks

On Tue Nov 25 2014 at 2:11:26 PM Tony Moore <tonywmnix at gmail.com> wrote:

> Hello,
> I notice that reads are not being combined when I use __constant on a
> read-only kernel buffer. Is this something that can be improved?
>
> In my kernel there are many loads from a read-only data structure. When I
> use the __global specifier for the memory space I see a total of 33 send
> instructions and a runtime of 81ms. When I use the __constant specifier, I
> see 43 send instructions and a runtime of 40ms. I'm hoping that combining
> the loads could improve performance further.
>
> thanks!
> tony
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20141125/5fe60e3a/attachment.html>


More information about the Beignet mailing list