Checking Matricization
The matricization check function checks matricizable code fragments and provides modification suggestions.
Command Function
Checks matricizable code snippets.
Syntax
devkit advisor matrix-check [-h | --help] {-i INPUT_PATH | --input INPUT_PATH} [-s SCAN_DIR | --scan-dir SCAN_DIR] [(-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,html,csv} | --report-type {all,html,csv}] {-p {sme,domain} | --optimization {sme,domain}} [-m {compute,memory_access,communication} | --module {compute,memory_access,communication}] [-l {0,1,2,3} | --log-level {0,1,2,3}] [--set-timeout TIMEOUT]
Parameter Description
Example
In this example, the source code in the /home/test_code/data directory is scanned, the build tool is make, the build command is make, and the matricization optimization methods are sme and domain. Replace the example parameter values with the actual ones.
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 |
The following information is displayed and a report is generated:
Executing matricization check task, please wait...
Current progress: ################################# [100%]
Scanned time: 2025/04/08 11:43:59
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 suggestions.
For the details information, please check:
/home/out/matrix-check_20250408114359_7fda.html
/home/out/matrix-check_20250408114359_7fda.csv
After the project analysis is complete, additional optimization files are generated in /home/out/matrix-check_20250408114359_7fda
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
Output Report
Parameter |
Description |
|---|---|
Configuration |
Displays the software source file path. |
Source File to Be Modified |
Displays information such as the path to the source file that needs to be modified. |
Parent topic: Affinity Analyzer
