Debian Codegraph @

media_driver/agnostic/gen11/codec/kernel_free/README.md

raw
1 ## DS and HME Kernel compile and convert it to .c
2
3 ### Step1: Building CM Compiler
4
5 1. Download or clone cm compiler
6
7 https://github.com/intel/cm-compiler
8
9 2. Build cmc following the steps in readme @https://github.com/intel/cm-compiler
10
11 3. Download or clone intel graphics comiler
12
13 https://github.com/intel/intel-graphics-compiler
14
15 4. Build igc following the steps in readme @ https://github.com/intel/intel-graphics-compiler
16
17 ### Step2: Building Kernels
18
19 1. Set envrionment variale (Set compiler path)
20
21 export PATH=$PATH:<cm_compiler_path>/include:<cm_compiler_path>/bin
22
23 2. run build.py to generate kernel binary
24
25 ### Step3: covert Kernels to .c Array file
26
27 1. run command to generate source files.
28
29 "KernelBinToSource -i commonkernel.krn -o media_driver/agnostic/gen11/codec/kernel/ -v igcodeckrn_g11 -index 14 -t 17"
30
31 please refer media_driver/agnostic/common/codec/kernel/codeckrnheader.h about the index and total number.