昇腾社区首页
中文
注册

单算子性能仿真流水图

CAModel性能仿真支持设置仿真超时时间、设置运行blockdim数目等功能,详情参见CAModel性能仿真

  1. 执行如下命令进行CAModel性能仿真。
    ascendebug kernel --backend simulator --json-file ${op_config_json_file} --core-type ${core_type} --repo-type minimalist --block-num 1 --timeout 1200 

    命令参数

    参数含义

    取值说明

    --backend

    Kernel调测类型。

    性能仿真流水场景填写simulator。

    --json-file

    算子信息配置文件。

    具体参见输入配置中的json配置文件。

    --core-type

    算子类型。

    根据实际情况填写,可选值为{AiCore, MixCore, CubeCore, VectorCore, MixVectorCore},MixVectorCore为预留参数,开发者无需关注。本场景以AddCustom为例,设为VectorCore。

    --repo-type

    算子开发工程场景类型。

    核函数直调场景固定配置为minimalist。

    --block-num

    设置运行Kernel时起的核数。

    CAModel场景一般单核运行,设置为1。

    --timeout

    设置运行超时时间,单位秒级。

    CAModel运行时间比较长,一般设为1200s, 用户可根据实际情况修改。

  2. 查看CAModel性能仿真结果和流水图,具体示例可以参见“CAModel性能仿真 > 调测产物”。