Calculation Precision Analysis Functions
The
Command Function
Locates the precision differences of the Fortran, C, and C++ languages caused by x86 and Kunpeng instructions.
Syntax
Compilation and
1 | devkit advisor precision [-h | --help] {-instrument | --instrument} {-c COMMAND COMMANDS | --commands COMMANDS} {-p PROJECT | --project PROJECT} {-e ENTRY | --entry ENTRY} [-v VARIABLE | --variable VARIABLE] [-d DEPTH | --depth DEPTH] [-L | --loops] [-D DATABASE| --database DATABASE] [-b BLACK_LIST | --black-list BLACK_LIST] [-l {0,1,2,3} | --log-level {0,1,2,3}] [--set-timeout TIMEOUT] |
Log difference analysis:
1 | devkit advisor precision [-h | --help] {-analysis | --analysis} {-i INPUT_LOG | --input INPUT_LOG} [-o OUTPUT_PATH | --output OUTPUT_PATH] [-l {0,1,2,3} | --log-level {0,1,2,3}] [--set-timeout TIMEOUT] |
To use the calculation precision analysis tool, you need to perform compilation and instrumentation on the different platforms (Kunpeng and x86). After the instrumentation is complete, analyze log differences.
Parameter Description
Parameter |
Option |
Description |
|---|---|---|
-h/--help |
- |
(Optional) Obtains help information. |
-analysis/--analysis |
- |
(Mandatory) Log difference analysis mode. |
-i/--input |
- |
(Mandatory) Path to the log files or log file directories. The input sequence is Kunpeng logs first and then x86 logs. Example: "/home/kunpeng.log;/home/x86.log" or "/home/kunpeng/;/home/x86/" |
-o/--output |
- |
(Optional) Directory for storing analysis result files. The default directory is the current directory. |
-l/--log-level |
0/1/2/3 |
(Optional) Log level, which defaults to 1.
|
--set-timeout |
- |
(Optional) Timeout interval of a task, in minutes. If the execution duration exceeds the preset timeout interval, the task exits. By default, there is no timeout interval. The task will be executed until it is complete. |