File: gem_blt.test

package info (click to toggle)
intel-gpu-tools 2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 62,024 kB
  • sloc: xml: 769,439; ansic: 348,692; python: 8,307; yacc: 2,781; perl: 1,196; sh: 1,178; lex: 487; asm: 227; makefile: 27; lisp: 11
file content (42 lines) | stat: -rw-r--r-- 1,088 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
test_exec_time=2

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

while read size batch label; do
    name="gem:blt:copy:${label}"
    test_name="$test_name $name"
    eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_blt -r \$1 -s $size -b $batch; }"
done<<SIZES
4096	1	4KiBx1
4096	16	4KiBx16
4096	64	4KiBx64
4096	256	4KiBx256
4096	1024	4KiBx1024
131072	1	128KiBx1
131072	16	128KiBx16
131072	64	128KiBx64
131072	256	128KiBx256
131072	1024	128KiBx1024
4194304	1	4MiBx1
4194304	32	4MiBx32
4194304	1024	4MiBx1024
SIZES

while read size label; do
    name="gem:blt:copy:${label}:sync"
    test_name="$test_name $name"
    eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_blt -S -r \$1 -s $size -b 1 ; }"

    name="gem:blt:copy:${label}:forked"
    test_name="$test_name $name"
    eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_blt -f -S -r \$1 -s $size -b 1 ; }"

    name="gem:blt:copy:${label}:raw"
    test_name="$test_name $name"
    eval "${name}_run() { sudo $IGT_BENCHMARKS/gem_blt -C -r \$1 -s $size -b 1 ; }"
done<<SIZES
4096	4KiB
131072	128KiB
4194304	4MiB
SIZES