Affinity Analyzer Functions
The tool checks software code to improve code quality and memory access performance.
- When multiple modules are running concurrently, only one log level can be set at the same time.
- If you move the tool to another location after you have already used the tool, a log configuration file read error occurs. You need to reinstall the tool or move the tool to its original installation location.
Prerequisites
- You have installed the Affinity Analyzer tool. For details, see Installing the Tool.
- If you have installed the tool using a compressed package, decompress the package and switch to the tool directory. Then run the command in ./ mode, for example, ./devkit advisor -v. If you have installed the tool using an RPM package, run devkit advisor -v. This section uses an RPM package as an example.
Command Function
Displays the help information about affinity analysis tasks.
Syntax
1 | devkit advisor -h |
Example
Run the following command to query all the parameter descriptions:
1 | devkit advisor -h |
Command output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Usage: devkit advisor [-h|--help] TASK [ARGS] The most commonly used devkit advisor sub tasks are: run-mode Run the 64-bit running mode check task. addr-align Run the address alignment of the structure task. cacheline Run the cache line alignment check task. bc-gen Run the bc file generation task. mm-check Run the memory mode check task. vec-check Run the vectorization check task. affi-check Run the affinity check task. matrix-check Run the matricization check task. dr-check Run the data race check task. precision Run the precision analysis task. knet Run the K-NET analysis tools task. See 'devkit advisor TASK -h/--help' for more information on a specific task. |
Function |
Description |
|---|---|
run-mode |
|
addr-align |
|
bc-gen |
BC file generation |
mm-check |
Static memory consistency check |
vec-check |
Vectorization check |
matrix-check |
Matricization check |
affi-check |
Build affinity |
cacheline |
|
dr-check |
Dynamic memory consistency check |
precision |
Calculation precision analysis |
knet |
Link latency detection |
Parent topic: Affinity Analyzer