[Intel-gfx] [PATCH i-g-t 09/10] gem_wsim: Implement device selection
Chris Wilson
chris at chris-wilson.co.uk
Wed Jun 17 17:09:00 UTC 2020
Quoting Tvrtko Ursulin (2020-06-17 17:01:19)
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>
> New command line options -L and -D <device> can respectively be used to
> list and select a GPU when more than one is present.
>
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> ---
> benchmarks/gem_wsim.c | 62 +++++++++++++++++++++++++++++++------------
> 1 file changed, 45 insertions(+), 17 deletions(-)
>
> diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c
> index 96ee923fb699..ca07b670bd42 100644
> --- a/benchmarks/gem_wsim.c
> +++ b/benchmarks/gem_wsim.c
> @@ -43,6 +43,7 @@
> #include <pthread.h>
> #include <math.h>
>
> +#include "igt_device_scan.h"
> #include "intel_chipset.h"
> #include "intel_reg.h"
> #include "drm.h"
> @@ -2593,7 +2594,9 @@ static void print_help(void)
> " -S Synchronize the sequence of random batch durations between\n"
> " clients.\n"
> " -d Sync between data dependencies in userspace.\n"
> -" -f <scale> Scale factor for batch durations."
> +" -f <scale> Scale factor for batch durations.\n"
> +" -L List GPUs.\n"
> +" -D <gpu> One of the GPUs from -L."
This is unlike you, I was expecting a range!
-Chris
More information about the Intel-gfx
mailing list