---
title: kpccl_get_num_executors
description: "获取kpccl executor数量。"
url: https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop2400/KunoengHPCKit_developer_019.html
sourcePath: /source/zh/hpchistory/hpckit/develop2400/KunoengHPCKit_developer_019.html
indexId: a0975fcd9c0421f4c2590c8aab951cb22f4c1c7264b3ffc8cce7dc832f893e0c73
---
# kpccl_get_num_executors

获取kpccl executor数量。

#### 接口定义

int kpccl_get_num_executors();


#### 参数

无


#### 返回值

返回kpccl executor 数量。


#### 示例

```
#include <stdio.h>
#include "kpccl.h"
int main()
{
int num =
kpccl_get_num_executors
();
printf("kpccl executor number = %d\n", num);
return 0;
}
```

运行结果如下。

```
kpccl executor number = 128
```

上述示例打印了executor执行器的总数；运行结果以实际为准，上述结果仅供参考。
