|
125 | 125 | BINARY_OP_IMPL_DESTROY_CASE(OP_NAME, MOORE, moore) |
126 | 126 |
|
127 | 127 | #define BINARY_OP_IMPL(OP_NAME, OP_NAME_UPPER) \ |
128 | | - __C infiniStatus_t infiniopCreate##OP_NAME_UPPER##Descriptor( \ |
| 128 | + __INFINI_C infiniStatus_t infiniopCreate##OP_NAME_UPPER##Descriptor( \ |
129 | 129 | infiniopHandle_t handle, \ |
130 | 130 | infiniop##OP_NAME_UPPER##Descriptor_t *desc_ptr, \ |
131 | 131 | infiniopTensorDescriptor_t c_desc, \ |
|
137 | 137 | return INFINI_STATUS_DEVICE_TYPE_NOT_SUPPORTED; \ |
138 | 138 | } \ |
139 | 139 | } \ |
140 | | - __C infiniStatus_t infiniopGet##OP_NAME_UPPER##WorkspaceSize( \ |
| 140 | + __INFINI_C infiniStatus_t infiniopGet##OP_NAME_UPPER##WorkspaceSize( \ |
141 | 141 | infiniop##OP_NAME_UPPER##Descriptor_t desc, \ |
142 | 142 | size_t *size) { \ |
143 | 143 | switch (desc->device_type) { \ |
|
147 | 147 | } \ |
148 | 148 | return INFINI_STATUS_DEVICE_TYPE_NOT_SUPPORTED; \ |
149 | 149 | } \ |
150 | | - __C infiniStatus_t infiniop##OP_NAME_UPPER( \ |
| 150 | + __INFINI_C infiniStatus_t infiniop##OP_NAME_UPPER( \ |
151 | 151 | infiniop##OP_NAME_UPPER##Descriptor_t desc, \ |
152 | 152 | void *workspace, \ |
153 | 153 | size_t workspace_size, \ |
|
161 | 161 | return INFINI_STATUS_DEVICE_TYPE_NOT_SUPPORTED; \ |
162 | 162 | } \ |
163 | 163 | } \ |
164 | | - __C infiniStatus_t infiniopDestroy##OP_NAME_UPPER##Descriptor( \ |
| 164 | + __INFINI_C infiniStatus_t infiniopDestroy##OP_NAME_UPPER##Descriptor( \ |
165 | 165 | infiniop##OP_NAME_UPPER##Descriptor_t desc) { \ |
166 | 166 | switch (desc->device_type) { \ |
167 | 167 | BINARY_OP_IMPL_DESTROY_CASES(OP_NAME) \ |
|
242 | 242 | UNARY_OP_IMPL_DESTROY_CASE(OP_NAME, MOORE, moore) |
243 | 243 |
|
244 | 244 | #define UNARY_OP_IMPL(OP_NAME, OP_NAME_UPPER) \ |
245 | | - __C infiniStatus_t infiniopCreate##OP_NAME_UPPER##Descriptor( \ |
| 245 | + __INFINI_C infiniStatus_t infiniopCreate##OP_NAME_UPPER##Descriptor( \ |
246 | 246 | infiniopHandle_t handle, \ |
247 | 247 | infiniop##OP_NAME_UPPER##Descriptor_t *desc_ptr, \ |
248 | 248 | infiniopTensorDescriptor_t y_desc, \ |
|
253 | 253 | return INFINI_STATUS_DEVICE_TYPE_NOT_SUPPORTED; \ |
254 | 254 | } \ |
255 | 255 | } \ |
256 | | - __C infiniStatus_t infiniopGet##OP_NAME_UPPER##WorkspaceSize( \ |
| 256 | + __INFINI_C infiniStatus_t infiniopGet##OP_NAME_UPPER##WorkspaceSize( \ |
257 | 257 | infiniop##OP_NAME_UPPER##Descriptor_t desc, \ |
258 | 258 | size_t *size) { \ |
259 | 259 | switch (desc->device_type) { \ |
|
263 | 263 | } \ |
264 | 264 | return INFINI_STATUS_DEVICE_TYPE_NOT_SUPPORTED; \ |
265 | 265 | } \ |
266 | | - __C infiniStatus_t infiniop##OP_NAME_UPPER( \ |
| 266 | + __INFINI_C infiniStatus_t infiniop##OP_NAME_UPPER( \ |
267 | 267 | infiniop##OP_NAME_UPPER##Descriptor_t desc, \ |
268 | 268 | void *workspace, \ |
269 | 269 | size_t workspace_size, \ |
|
276 | 276 | return INFINI_STATUS_DEVICE_TYPE_NOT_SUPPORTED; \ |
277 | 277 | } \ |
278 | 278 | } \ |
279 | | - __C infiniStatus_t infiniopDestroy##OP_NAME_UPPER##Descriptor( \ |
| 279 | + __INFINI_C infiniStatus_t infiniopDestroy##OP_NAME_UPPER##Descriptor( \ |
280 | 280 | infiniop##OP_NAME_UPPER##Descriptor_t desc) { \ |
281 | 281 | switch (desc->device_type) { \ |
282 | 282 | UNARY_OP_IMPL_DESTROY_CASES(OP_NAME) \ |
|
0 commit comments