---
title: 函数：stop
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/runtimeapi/aclpythondevg_01_0853.html
sourcePath: /source/zh/canncommercial/900/API/runtimeapi/aclpythondevg_01_0853.html
indexId: 5a9041dc0a2c4e1e8e5c9fc8056c51da993dea9fcf62125f00f00e555f1f9c8f71
---
# 函数：stop

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas 350 加速卡 | √ |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 训练系列产品 | √ |
| Atlas 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | √ |


#### 功能说明

停止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接口。
