mirror of
https://github.com/GOSTSec/ccminer
synced 2025-01-11 07:17:53 +00:00
api: fix hwinfo gpus
This commit is contained in:
parent
84d7d926c9
commit
aa74aa33e2
5
api.cpp
5
api.cpp
@ -110,8 +110,11 @@ extern int device_map[8];
|
|||||||
extern char *device_name[8];
|
extern char *device_name[8];
|
||||||
extern int num_cpus;
|
extern int num_cpus;
|
||||||
|
|
||||||
|
// sysinfos.cpp
|
||||||
extern float cpu_temp(int);
|
extern float cpu_temp(int);
|
||||||
extern uint32_t cpu_clock(int);
|
extern uint32_t cpu_clock(int);
|
||||||
|
// cuda.cpp
|
||||||
|
int cuda_num_devices();
|
||||||
|
|
||||||
/***************************************************************/
|
/***************************************************************/
|
||||||
|
|
||||||
@ -271,7 +274,7 @@ static void cpuhwinfos()
|
|||||||
static char *gethwinfos(char *params)
|
static char *gethwinfos(char *params)
|
||||||
{
|
{
|
||||||
*buffer = '\0';
|
*buffer = '\0';
|
||||||
for (int i = 0; i < num_processors; i++)
|
for (int i = 0; i < cuda_num_devices(); i++)
|
||||||
gpuhwinfos(i);
|
gpuhwinfos(i);
|
||||||
cpuhwinfos();
|
cpuhwinfos();
|
||||||
return buffer;
|
return buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user