矩阵化检查
矩阵化检查功能用于对可矩阵化片段进行检查,并提供矩阵化修改建议。
命令功能
对可矩阵化片段进行检查。
命令格式
1 | devkit advisor matrix-check [-h | --help] {-i INPUT_PATH | --input INPUT_PATH} [-s scan_file_path | --scan-dir scan_file_path] [(-b {make,cmake} | --build-tool {make,cmake}) & (-c COMMAND | --cmd COMMAND)] | [-j COMPILE_JSON_PATH | --compile-command-json COMPILE_JSON_PATH] [-o OUTPUT_PATH | --output OUTPUT_PATH] [-r {all,json,html,csv} | --report-type {all,json,html,csv}] [-l {0,1,2,3} | --log-level {0,1,2,3}] {-p {sme,domain} | --optimization {sme,domain}} [-m {compute,memory_access,communication} | --module {compute,memory_access,communication}] [--set-timeout TIMEOUT] |
参数说明
使用示例
此处以扫描“/home/test_code/data”路径下源码,且构建工具为make,构建命令为make,矩阵化优化方式为SME矩阵化和领域优化为例,请根据实际情况进行修改。
1 | devkit advisor matrix-check -i /home/test_code/data -c make -b make -o /home/out/ -p domain,sme -m compute,memory_access,communication |
返回信息如下,并输出报告。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | Scanned time: 2024/06/12 02:18:35 Configuration: Scan source code path: /home/test_code/data Generate report path: /home/out Generate report type: all Task Timeout Interval: The timeout period is not set. Log level: info Summary: Scanned 11 files, there are 50 sugguestions. For the details information, please check: /home/out/matrix-check_20240612021835_2d68.html /home/out/matrix-check_20240612021835_2d68.csv After the project analysis is complete, additional optimization files are generated in /home/out/matrix-check_20240612021835_2d68 Download the optimization files and adapt the project build files. Adapt the project build files to the FFT-SME library, which is located in /home/out/fftm.zip |
输出报告说明
参数 |
说明 |
---|---|
配置信息 |
显示软件源码文件存放路径。 |
需要修改的源码文件 |
显示存在矩阵化问题,并需要进行修改的源码文件路径等相关信息。 |
父主题: 亲和分析