zhangzengfei
2023-11-28 3a706d3378aa3626501370352963883fd2783558
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();
}