mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-19 05:46:25 +00:00
benchmarks/gem_latency: Report throughput
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
691b76a84b
commit
5715089c51
@ -6,7 +6,7 @@ sudo -n true || return 1
|
|||||||
|
|
||||||
__gem:dispatch__() {
|
__gem:dispatch__() {
|
||||||
for (( c=0; c<$1; c++ )); do
|
for (( c=0; c<$1; c++ )); do
|
||||||
sudo $IGT_BENCHMARKS/gem_latency -t 2 -n $2 -p $3 -f 1 $4
|
sudo $IGT_BENCHMARKS/gem_latency -t 2 -n $2 -p $3 -f $4
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -14,20 +14,20 @@ __gem:dispatch__() {
|
|||||||
for n in 0 1 2 4 8 16 32 64 128 256 512 1024; do
|
for n in 0 1 2 4 8 16 32 64 128 256 512 1024; do
|
||||||
name="gem:exec:latency:$n"
|
name="gem:exec:latency:$n"
|
||||||
test_name="$test_name $name"
|
test_name="$test_name $name"
|
||||||
eval "${name}_run() { __gem:dispatch__ \$1 $n 1 ; } "
|
eval "${name}_run() { __gem:dispatch__ \$1 $n 1 1 ; } "
|
||||||
done
|
|
||||||
|
|
||||||
for n in 0 1 2 4 8 16 32 64 128 256 512 1024; do
|
|
||||||
name="gem:parser:latency:$n"
|
|
||||||
test_name="$test_name $name"
|
|
||||||
eval "${name}_run() { __gem:dispatch__ \$1 $n 1 -C ; } "
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Measure the execution delay vs contention, just for fun
|
# Measure the execution delay vs contention, just for fun
|
||||||
for p in 1 2 4 8 16 32 64 128 256 512 1024; do
|
for p in 1 2 4 8 16 32 64 128 256 512 1024; do
|
||||||
name="gem:latency:dispatch:$p"
|
name="gem:latency:dispatch:$p"
|
||||||
test_name="$test_name $name"
|
test_name="$test_name $name"
|
||||||
eval "${name}_run() { __gem:dispatch__ \$1 0 $p ; } "
|
eval "${name}_run() { __gem:dispatch__ \$1 0 $p 1 ; } "
|
||||||
|
done
|
||||||
|
|
||||||
|
for p in 1 2 4 8 16 32 64 128 256 512 1024; do
|
||||||
|
name="gem:throughput:dispatch:$p"
|
||||||
|
test_name="$test_name $name"
|
||||||
|
eval "${name}_run() { __gem:dispatch__ \$1 8 $p 5 ; } "
|
||||||
done
|
done
|
||||||
|
|
||||||
# Measure the wakeup delay (each wakeup should be uncontended)
|
# Measure the wakeup delay (each wakeup should be uncontended)
|
||||||
|
@ -540,6 +540,9 @@ static int run(int seconds,
|
|||||||
case 4:
|
case 4:
|
||||||
printf("%f\n", cpu_time(&rused) / complete);
|
printf("%f\n", cpu_time(&rused) / complete);
|
||||||
break;
|
break;
|
||||||
|
case 5:
|
||||||
|
printf("%d\n", complete);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user