[Mesa-dev] [PATCH] clover: Cache serialized binaries

Francisco Jerez currojerez at riseup.net
Sun Jun 15 04:08:14 PDT 2014


Tom Stellard <thomas.stellard at amd.com> writes:

> We were serializing the binaries once when clGetProgramInfo was called
> with CL_PROGRAM_BINARY_SIZES and then again when it was called with
> CL_PROGRAM_BINARIES.  This was slowing down some OpenCV tests which were
> building binary kernel caches.
>
> This improves the run-time of OpenCV's OCL_ImgProc/CvtColor8u.*
> test from 7 minutes to 1 minute.
> ---

Can you give the attached two patches a try?  I'm curious to see if they
have a comparable effect -- If they do I'd prefer to fix the underlying
object rather than caching binaries in serialized form.

Thanks.

>[...]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-clover-Optimize-module-serialization-for-vectors-of-.patch
Type: text/x-diff
Size: 1853 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140615/12989ede/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-clover-Calculate-the-serialized-size-of-a-module-eff.patch
Type: text/x-diff
Size: 3547 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140615/12989ede/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140615/12989ede/attachment.sig>


More information about the mesa-dev mailing list