File: gem_exec_ctx.test

package info (click to toggle)
intel-gpu-tools 2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 63,360 kB
  • sloc: xml: 781,458; ansic: 360,567; python: 8,336; yacc: 2,781; perl: 1,196; sh: 1,177; lex: 487; asm: 227; lisp: 35; makefile: 30
file content (25 lines) | stat: -rw-r--r-- 898 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This outputs a graph of time(N), the us it takes to execute N empty batches
# performing the associated context operation each time.
# e.g. 110 59 34 22 16 13 11 10 10 10 9 4 1.4 1.4 1.2 0.9 0.8
# As a summary, print the number of nop/s (so that it matches the bigger is
# better motif of fps).

[ -e $IGT_BENCHMARKS/gem_exec_ctx ] || return 1
sudo -n true || return 1

for i in nop default switch create; do
    name="gem:exec:ctx:$i:single"
    test_name="$test_name $name"
    eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_exec_ctx -s -b $i -r \$1 ; }"

    name="gem:exec:ctx:$i:forked"
    test_name="$test_name $name"
    eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_exec_ctx -f -s -b $i -r \$1 ; }"

    name="gem:exec:ctx:$i:continuous"
    test_name="$test_name $name"
    eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_exec_ctx -b $i -r \$1 ; }"
done

test_exec_time=3
test_invert=1