命令参数说明
向量化检查功能用于对可向量化片段进行检查,并提供向量化修改建议。
命令功能
查看向量化检查所有命令参数。
命令格式
devkit advisor vec-check -h
使用实例
执行以下命令,查看所有命令参数说明。
devkit advisor vec-check -h
返回信息如下:
OVERVIEW Run this command to check vectorizable code fragments and provide modification suggestions. USAGE devkit advisor vec-check {-i INPUT_PATH | --input INPUT_PATH}{-f BC_PATH| --bc-file BC_PATH} [-c COMMAND | --cmd COMMAND][-p {clang,gcc} | --compiler {clang,gcc}][-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}] [--set-timeout TIMEOUT] [--sve-enable {true,false}] OPTIONS -i, --input INPUT_PATH [Mandatory option] Specifies the folder path of the source code to be scanned. -f, --bc-file BC_PATH [Mandatory option] Specifies the folder path of the bc file to be scanned. For the detail, please refer to the following document: 'https://www.hikunpeng.com/document/detail/zh/kunpengdevps/userguide/usermanual/DevKit_Affinity_0018.html'. -c, --cmd COMMAND [Mandatory option] Specifies the build command of the source code. -o, --output OUTPUT_PATH Specify the path for storing the scan report and the file name. By default, the file is stored in the current path(pwd) and its name is in the format of function name_timestamp. -p, --compiler {clang,gcc} Specifies the compiler used for compiling source code. The default value is clang. -l, --log-level {0,1,2,3} Specifies the log level of the current task, 0(DEBUG) | 1(INFO) | 2(WARNING) | 3(ERROR). The default value is 1(INFO). -r, --report-type {all,json,html,csv} Specify the report type for the scan report. The default value is all. --set-timeout <min> Specifies the timeout period of a task. By default, the timeout period is not set. --sve-enable Enable SVE. SVE is a variable-length vectorized instruction introduced after ARMv8a to enhance binary code portability so that it can run on a wider SIMD unit. EXAMPLE # Scan a project and generate scanning reports. devkit advisor vec-check -i /home/porting/cplusproject -f /home/advisor/bc_file -c 'make' -p gcc
父主题: 向量化检查