and fix windows build... missing __func define
@ -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.
@ -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);
@ -40,7 +40,6 @@
#endif
#ifdef WIN32
@ -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 /* WIN32 */
#endif /* __COMPAT_H__ */
@ -21,10 +21,6 @@
#include "cuda_runtime.h"
#include "compat.h" // sleep
// CUDA Devices on the System
int cuda_num_devices()
{
@ -51,6 +51,8 @@ void *alloca (size_t);
# endif
#ifdef __INTELLISENSE__
/* should be in stdint.h but... */
typedef __int64 int64_t;
@ -32,7 +32,6 @@
#include <netinet/in.h>
#include <netinet/tcp.h>
#include "elist.h"