swiglu.h 1.27 KB
Newer Older
PanZezhong's avatar
PanZezhong committed
1
2
#ifndef __INFINIOP_SWIGLU_API_H__
#define __INFINIOP_SWIGLU_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 *infiniopSwiGLUDescriptor_t;
PanZezhongQY's avatar
PanZezhongQY committed
7

8
__INFINI_C __export infiniStatus_t infiniopCreateSwiGLUDescriptor(infiniopHandle_t handle,
PanZezhong's avatar
PanZezhong committed
9
10
11
12
                                                           infiniopSwiGLUDescriptor_t *desc_ptr,
                                                           infiniopTensorDescriptor_t c_desc,
                                                           infiniopTensorDescriptor_t a_desc,
                                                           infiniopTensorDescriptor_t b_desc);
PanZezhongQY's avatar
PanZezhongQY committed
13

14
__INFINI_C __export infiniStatus_t infiniopGetSwiGLUWorkspaceSize(infiniopSwiGLUDescriptor_t desc, size_t *size);
15

16
__INFINI_C __export infiniStatus_t infiniopSwiGLU(infiniopSwiGLUDescriptor_t desc,
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

24
__INFINI_C __export infiniStatus_t infiniopDestroySwiGLUDescriptor(infiniopSwiGLUDescriptor_t desc);
PanZezhongQY's avatar
PanZezhongQY committed
25
26

#endif