• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

README_media_vme.txtD23-Nov-20231.6 KiB6641

media_fill.gxaD23-Nov-20231.3 KiB4538

media_fill_gen8.asmD23-Nov-2023635 1211

media_vme.gxaD23-Nov-20232.8 KiB5250

README_media_vme.txt

1Step1: Building IGA (Intel Graphics Assembler)
2========================================================================
3
41. Download or clone IGC (Intel Graphics Compiler)
5
6   https://github.com/intel/intel-graphics-compiler.git
7
82. Chdir into 'intel-graphics-compiler' (or any other workspace folder of choice)
9
10   It should read the following folder strucutre:
11
12   workspace
13      |- visa
14      |- IGC
15      |- inc
16      |- 3d
17      |- skuwa
18
193. Chdir into IGA sub-component
20
21   cd visa/iga
22
234. Create build directory
24
25    mkdir build
26
275. Change into build directory
28
29    cd build
30
316. Run cmake
32
33   cmake ../
34
357. Run make to build IGA project
36
37   make
38
398. Get the output executable "iga64" in IGAExe folder
40
41   usage: ./iga64 OPTIONS ARGS
42   where OPTIONS:
43     -h     --help                     shows help on an option
44     -d     --disassemble              disassembles the input file
45     -a     --assemble                 assembles the input file
46     -n     --numeric-labels           use numeric labels
47     -p     --platform        DEVICE   specifies the platform (e.g. "GEN9")
48     -o     --output          FILE     specifies the output file
49
50   EXAMPLES:
51   ./iga64  file.gxa  -p=11 -a  -o file.krn
52
53Step2: Building ASM code
54========================================================================
551. Command line to convert asm code to binary:
56
57   iga64 media_vme.gxa -p=11 -a -o media_vme.krn
58
592. Pad 128 bytes zeros to the kernel:
60
61   dd if=/dev/zero bs=1 count=128 >> media_vme.krn
62
633. Generate hexdump:
64
65   hexdump -v  -e '4/4 "0x%08x " "\n"' media_vme.krn > media_vme.hex
66