handle.h 439 Bytes
Newer Older
PanZezhongQY's avatar
PanZezhongQY committed
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef __INFINIOP_HANDLE__
#define __INFINIOP_HANDLE__

#include "../infinicore.h"
#include "./status.h"

typedef struct InfiniopHandle {
    infiniDevice_t device;
    int device_id;
} InfiniopHandle;

typedef InfiniopHandle *infiniopHandle_t;

14
__C __export infiniopStatus_t infiniopCreateHandle(infiniopHandle_t *handle_ptr, infiniDevice_t device);
PanZezhongQY's avatar
PanZezhongQY committed
15
16
17
18

__C __export infiniopStatus_t infiniopDestroyHandle(infiniopHandle_t handle);

#endif