我要评分
获取效率
正确性
完整性
易理解

Command Parameter Description

The tool checks vectorizable code snippets and provides modification suggestions.

Command Function

Displays all command parameters used for vectorization check.

Syntax

devkit advisor vec-check -h

Example

Run the following command to query the parameter descriptions of all commands.

devkit advisor vec-check -h
The command output is as follows:
    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