[Piglit] [PATCH] Add OpenCL support

Eric Anholt eric at anholt.net
Thu Sep 6 09:16:11 PDT 2012

Blaž Tomažič <blaz.tomazic at gmail.com> writes:

> On tor, 2012-09-04 at 07:14 -0700, Tom Stellard wrote:
>> Some of the cl-util files contain some really long lines, especially
>> piglit-framework-cl-program.c:96-99.  You should go through and wrap some
>> of the longer lines at 80 characters to make them easier to read.
> I went through all the code and wrapped as much of it as possible to 80
> lines.
> The new fixed branch is now at:
>         git://github.com/blazt/piglit.git opencl-request-v2

I haven't read through everything, but I've looked at the docs and
browsed some commits and I like it.  I'd be happy to see it merged.

A few recommendations I'd give for further developent:

Add a bit of python too all_cl.tests to autodetect your .cl tests.  It's
irritating when writing tests to remember to add it, and you end up
mistyping a filename and not running all_cl.tests and pushing the code
with a broken all_cl.tests.  (This means losing nicely-formatted names
in the results, and replacing that with filenames.  I've been thinking
it would be good to add support to the framework for part of the test
result to be the name to report the result under, which would open the
way for a single test binary that tests a few small things, or
variations, and reports them separately)

Drop the "plain" thing in all_cl.tests.  It's an uninteresting artifact
of the class name that happens to do the work.

Always use concurrent testing when possible.  As you get more and more
tests, being able to light up all your cores for testing is really nice.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20120906/3a7e72c5/attachment.pgp>

More information about the Piglit mailing list