On Thu, Apr 20, 2017 at 01:29:11PM +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx> > +static void > +run_workload(unsigned int id, struct workload *wrk, unsigned int repeat, > + enum intel_engine_id (*balance)(struct workload *wrk, > + struct w_step *w), > + unsigned int flags) > +{ > + struct timespec t_start, t_end; > + struct w_step *w; > + double t; > + int i, j; > + > + clock_gettime(CLOCK_MONOTONIC, &t_start); > + > + srand(t_start.tv_nsec); Let's supply the seed with the workload specification. And use a portable prng so we can be sure we can reproduce results from one system to the next. -Chris -- Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx