Browse Source

Increase MAX_INTENSITY to 42.

Untested, since I do not have the hardware that supports such high a setting.

Requested by yellowz06 on Litecoin Forum:
https://forum.litecoin.net/index.php/topic,6925.msg54952.html#msg54952
nfactor-troky
Noel Maersk 11 years ago
parent
commit
533f16aeb1
  1. 4
      driver-opencl.c
  2. 5
      miner.h

4
driver-opencl.c

@ -536,7 +536,7 @@ char *set_intensity(char *arg) @@ -536,7 +536,7 @@ char *set_intensity(char *arg)
else {
gpus[device].dynamic = false;
val = atoi(nextptr);
if (val < MIN_INTENSITY || val > MAX_GPU_INTENSITY)
if (val < MIN_INTENSITY || val > MAX_INTENSITY)
return "Invalid value passed to set intensity";
tt = &gpus[device].intensity;
*tt = val;
@ -550,7 +550,7 @@ char *set_intensity(char *arg) @@ -550,7 +550,7 @@ char *set_intensity(char *arg)
else {
gpus[device].dynamic = false;
val = atoi(nextptr);
if (val < MIN_INTENSITY || val > MAX_GPU_INTENSITY)
if (val < MIN_INTENSITY || val > MAX_INTENSITY)
return "Invalid value passed to set intensity";
tt = &gpus[device].intensity;

5
miner.h

@ -1049,9 +1049,8 @@ extern bool add_pool_details(struct pool *pool, bool live, char *url, char *user @@ -1049,9 +1049,8 @@ extern bool add_pool_details(struct pool *pool, bool live, char *url, char *user
#define MIN_INTENSITY 8
#define MIN_INTENSITY_STR "8"
#define MAX_INTENSITY 20
#define MAX_INTENSITY_STR "20"
#define MAX_GPU_INTENSITY 20
#define MAX_INTENSITY 42
#define MAX_INTENSITY_STR "42"
extern bool hotplug_mode;
extern int hotplug_time;

Loading…
Cancel
Save