昇腾社区首页
中文
注册

函数:stop

产品支持情况

产品

是否支持

Atlas A3 训练系列产品 / Atlas A3 推理系列产品

Atlas A2 训练系列产品 / Atlas 800I A2 推理产品 /A200I A2 Box 异构组件

Atlas 训练系列产品

Atlas 推理系列产品

Atlas 200I/500 A2 推理产品

Atlas 200/300/500 推理产品

功能说明

停止Profiling数据采集。

函数原型

  • C函数原型
    1
    aclError aclprofStop(const aclprofConfig *profilerConfig)
    
  • python函数
    1
    ret = acl.prof.stop(profiler_config)
    

参数说明

参数名

说明

profiler_config

int,指定停止Profiling数据采集的配置的指针地址。

acl.prof.start接口中的aclprofConfig类型数据保持一致。

返回值说明

返回值

说明

ret

int,错误码。

  • 返回0表示成功。
  • 返回其它值表示失败。

约束说明

acl.prof.start接口配对使用,先调用acl.prof.start接口再调用acl.prof.stop接口。

资源参考

接口调用示例,参见Profiling性能数据采集