1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-10 14:57:53 +00:00

api: one decimal is enough for intensity

and fix windows build... missing __func define
This commit is contained in:
Tanguy Pruvot 2015-01-24 11:25:45 +01:00
parent 26b51a557b
commit 3938dce740
7 changed files with 9 additions and 9 deletions

View File

@ -176,6 +176,7 @@ features.
>>> RELEASE HISTORY <<<
Jan. 24th 2015 v1.5.2
Allow per device intensity, example: -i 20,19.5
Add process CPU priority and affinity mask parameters
Intelligent duplicate shares check feature (enabled if needed)
api: Fan RPM (windows), Cuda threads count, linux kernel ver.

View File

@ -31,7 +31,6 @@
#include <sys/stat.h>
#include <sys/types.h>
#include "compat.h"
#include "miner.h"
#include "nvml.h"
@ -135,7 +134,7 @@ static void gpustatus(int thr_id)
card = device_name[gpuid];
snprintf(buf, sizeof(buf), "GPU=%d;BUS=%hd;CARD=%s;"
"TEMP=%.1f;FAN=%hu;RPM=%hu;FREQ=%d;KHS=%.2f;HWF=%d;I=%.2f;THR=%u|",
"TEMP=%.1f;FAN=%hu;RPM=%hu;FREQ=%d;KHS=%.2f;HWF=%d;I=%.1f;THR=%u|",
gpuid, cgpu->gpu_bus, card, cgpu->gpu_temp, cgpu->gpu_fan,
cgpu->gpu_fan_rpm, cgpu->gpu_clock, cgpu->khashes,
cgpu->hw_errors, cgpu->intensity, cgpu->throughput);
@ -891,4 +890,4 @@ void api_set_throughput(int thr_id, uint32_t throughput)
cgpu->intensity += ((float) (throughput-(1U << i)) / (1U << i));
}
}
}
}

View File

@ -40,7 +40,6 @@
#endif
#endif
#include "compat.h"
#include "miner.h"
#ifdef WIN32

View File

@ -41,6 +41,10 @@ static __inline int setpriority(int which, int who, int prio)
return -!SetThreadPriority(GetCurrentThread(), prio);
}
#ifdef _MSC_VER
#define __func__ __FUNCTION__
#endif
#endif /* WIN32 */
#endif /* __COMPAT_H__ */

View File

@ -21,10 +21,6 @@
#include "cuda_runtime.h"
#ifdef WIN32
#include "compat.h" // sleep
#endif
// CUDA Devices on the System
int cuda_num_devices()
{

View File

@ -51,6 +51,8 @@ void *alloca (size_t);
# endif
#endif
#include "compat.h"
#ifdef __INTELLISENSE__
/* should be in stdint.h but... */
typedef __int64 int64_t;

View File

@ -32,7 +32,6 @@
#include <netinet/in.h>
#include <netinet/tcp.h>
#endif
#include "compat.h"
#include "miner.h"
#include "elist.h"