1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-02-02 01:44:32 +00:00

api: fix hwinfo gpus

This commit is contained in:
Tanguy Pruvot 2014-11-23 10:50:25 +01:00
parent 84d7d926c9
commit aa74aa33e2

View File

@ -110,8 +110,11 @@ extern int device_map[8];
extern char *device_name[8];
extern int num_cpus;
// sysinfos.cpp
extern float cpu_temp(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)
{
*buffer = '\0';
for (int i = 0; i < num_processors; i++)
for (int i = 0; i < cuda_num_devices(); i++)
gpuhwinfos(i);
cpuhwinfos();
return buffer;