---
title: kpccl_get_executor_num
description: "获取当前执行该函数的kpccl executor编号。"
url: https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop2400/KunoengHPCKit_developer_020.html
sourcePath: /source/zh/hpchistory/hpckit/develop2400/KunoengHPCKit_developer_020.html
indexId: 48423cc623ebab3c2515d1de52dfcfe3716096a2fac74baeebb31b3bb189879f73
---
# kpccl_get_executor_num

获取当前执行该函数的kpccl executor编号。

#### 接口定义

int kpccl_get_executor_num();


#### 参数

无。


#### 返回值

返回当前执行该函数的kpccl executor编号。


#### 示例

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

运行结果如下。

```
current kpccl executor id = 0
```

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