File: gem_prw.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 (20 lines) | stat: -rw-r--r-- 678 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
# This outputs a graph of time(N), the time it takes to write 1<<N bytes in us.
# e.g. 0 1 2 4 8 16 32
# The last value is for 4M, convert that to MiB/s for comparison
#
# Ideally we want to run this per ring,
#	gem_exec_nop:rcs, gem_exec_nop:bcs, gem_exec_nop:vcs
# though for the time being just one will suffice

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

for j in read write; do
    for i in cpu gtt; do
        test_name="$test_name gem:p$j:$i"
        eval "gem:p$j:${i}_run() { sudo $IGT_BENCHMARKS/gem_prw -D $j -d $i -r \$1 ; }"
        eval "gem:p$j:${i}_process() { bc -l <<< \" 4*1000000 / \${@: -1} \" ; }"
    done
done

test_exec_time=1