zhangzengfei
2023-10-08 2cd1af13bc4e7aec4c85b9fe88db2d294af6468f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifdef __cplusplus
extern "C"
{
#endif
 
#include "cgpu.h"
 
#ifdef __cplusplus
}
#endif
 
#include "gpu/info.cpp"
#include "gpu/info.h"
 
int get_idle_gpu(const int mem_size)
{
    return gpu::getIdleGPU(mem_size);
}
 
char *get_gpu_info()
{
    return gpu::getGpuInfo();
}