summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-30 11:20:54 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-30 15:43:57 +0100
commit19a62e088f5202026bdfde7a8af36598b69f8243 (patch)
tree153ba1a7743474a0b573a6693b36e5cb1354ec20 /test
parentfab3bc70a450d94104c96ddbe7fa6e6ace1bb8f8 (diff)
test/lowlevel-blt-bench: Update progress more frequently
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test')
-rw-r--r--test/lowlevel-blt-bench.c33
1 files changed, 25 insertions, 8 deletions
diff --git a/test/lowlevel-blt-bench.c b/test/lowlevel-blt-bench.c
index 7f6f524c..63f6815e 100644
--- a/test/lowlevel-blt-bench.c
+++ b/test/lowlevel-blt-bench.c
@@ -332,16 +332,24 @@ static void bench_source(struct test *t, enum target target, int op, int src)
{
double out, ref;
+ fprintf(stdout, "%28s with %s: ", source[src].name, ops[op].name);
+ fflush(stdout);
+
ref = _bench_source(&t->ref, target, op, src, 1000);
- if (ref < 0)
+ if (ref < 0) {
+ fprintf(stdout, "SKIP\n");
return;
+ }
+ fprintf(stdout, "ref=%f, ", ref);
+ fflush(stdout);
out = _bench_source(&t->out, target, op, src, 1000);
- if (out < 0)
+ if (out < 0) {
+ fprintf(stdout, "SKIP\n");
return;
+ }
- fprintf (stdout, "%28s with %s: ref=%f, out=%f\n",
- source[src].name, ops[op].name, ref, out);
+ fprintf(stdout, "out=%f\n", out);
}
static double _bench_mask(struct test_display *t, enum target target_type,
@@ -386,16 +394,25 @@ static void bench_mask(struct test *t, enum target target, int op, int src, int
{
double out, ref;
+ fprintf(stdout, "%28s In %28s with %s: ",
+ source[src].name, source[mask].name, ops[op].name);
+ fflush(stdout);
+
ref = _bench_mask(&t->ref, target, op, src, mask, 1000);
- if (ref < 0)
+ if (ref < 0) {
+ fprintf(stdout, "SKIP\n");
return;
+ }
+ fprintf(stdout, "ref=%f, ", ref);
+ fflush(stdout);
out = _bench_mask(&t->out, target, op, src, mask, 1000);
- if (out < 0)
+ if (out < 0) {
+ fprintf(stdout, "SKIP\n");
return;
+ }
- fprintf (stdout, "%28s In %28s with %s: ref=%f, out=%f\n",
- source[src].name, source[mask].name, ops[op].name, ref, out);
+ fprintf(stdout, "out=%f\n", out);
}
int main(int argc, char **argv)