From 19a62e088f5202026bdfde7a8af36598b69f8243 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 30 Jun 2014 11:20:54 +0100 Subject: test/lowlevel-blt-bench: Update progress more frequently Signed-off-by: Chris Wilson --- test/lowlevel-blt-bench.c | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) (limited to 'test') 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) -- cgit v1.2.3