---
title: kpccl_task_create
description: "创建kpccl task。"
url: https://www.hikunpeng.com/document/detail/zh/hpchistory/hpckit/develop2400/KunoengHPCKit_developer_032.html
sourcePath: /source/zh/hpchistory/hpckit/develop2400/KunoengHPCKit_developer_032.html
indexId: e713360b0ba14aa5d980c76facdf3fc69cb42e83b79c89d9d6b21e58c4a2f78f73
---
# kpccl_task_create

创建kpccl task。

#### 接口定义

kpccl_task_h kpccl_task_create();


#### 参数

无


#### 返回值

成功：返回创建的task

失败：返回nullptr


#### 示例

```
#include <stdio.h>
#include "kpccl.h"
int main()
{
kpccl_task_h task =
kpccl_task_create
();
kpccl_task_cleanup(task);
return 0;
}
```

上述示例演示了创建、清理一个task的流程。kpccl_task_create函数创建了一个可复用的task。
