add.h 1.17 KB
Newer Older
PanZezhong's avatar
PanZezhong committed
1
2
#ifndef __INFINIOP_ADD_API_H__
#define __INFINIOP_ADD_API_H__
PanZezhongQY's avatar
PanZezhongQY committed
3

PanZezhong's avatar
PanZezhong committed
4
#include "../operator_descriptor.h"
PanZezhongQY's avatar
PanZezhongQY committed
5

6
typedef struct InfiniopDescriptor *infiniopAddDescriptor_t;
PanZezhongQY's avatar
PanZezhongQY committed
7

PanZezhong's avatar
PanZezhong committed
8
9
10
11
12
__C __export infiniStatus_t infiniopCreateAddDescriptor(infiniopHandle_t handle,
                                                        infiniopAddDescriptor_t *desc_ptr,
                                                        infiniopTensorDescriptor_t c,
                                                        infiniopTensorDescriptor_t a,
                                                        infiniopTensorDescriptor_t b);
PanZezhongQY's avatar
PanZezhongQY committed
13

PanZezhong's avatar
PanZezhong committed
14
15
__C __export infiniStatus_t infiniopGetAddWorkspaceSize(infiniopAddDescriptor_t desc, size_t *size);

PanZezhong's avatar
PanZezhong committed
16
__C __export infiniStatus_t infiniopAdd(infiniopAddDescriptor_t desc,
PanZezhong's avatar
PanZezhong committed
17
18
                                        void *workspace,
                                        size_t workspace_size,
PanZezhong's avatar
PanZezhong committed
19
20
21
22
                                        void *c,
                                        void const *a,
                                        void const *b,
                                        void *stream);
PanZezhongQY's avatar
PanZezhongQY committed
23

PanZezhong's avatar
PanZezhong committed
24
__C __export infiniStatus_t infiniopDestroyAddDescriptor(infiniopAddDescriptor_t desc);
PanZezhongQY's avatar
PanZezhongQY committed
25
26

#endif