Skip to content

Commit

Permalink
Bugfix: Capitalize "MHz" correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Dec 3, 2012
1 parent f05dbbe commit 97c4821
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ GPU only options:
--disable-gpu|-G Disable GPU mining even if suitable devices exist
--gpu-threads|-g <arg> Number of threads per GPU (1 - 10) (default: 2)
--gpu-dyninterval <arg> Set the refresh interval in ms for GPUs using dynamic intensity (default: 7)
--gpu-engine <arg> GPU engine (over)clock range in Mhz - one value, range and/or comma separated list (e.g. 850-900,900,750-850)
--gpu-engine <arg> GPU engine (over)clock range in MHz - one value, range and/or comma separated list (e.g. 850-900,900,750-850)
--gpu-fan <arg> GPU fan percentage range - one value, range and/or comma separated list (e.g. 25-85,85,65)
--gpu-map <arg> Map OpenCL to ADL device order manually, paired CSV (e.g. 1:0,2:1 maps OpenCL 1 to ADL 0, 2 to 1)
--gpu-memclock <arg> Set the GPU memory (over)clock in Mhz - one value for all or separate by commas for per card.
--gpu-memclock <arg> Set the GPU memory (over)clock in MHz - one value for all or separate by commas for per card.
--gpu-memdiff <arg> Set a fixed difference in clock speed between the GPU and memory in auto-gpu mode
--gpu-platform <arg> Select OpenCL platform ID to use for GPU mining
--gpu-powertune <arg> Set the GPU powertune percentage - one value for all or separate by commas for per card.
Expand Down Expand Up @@ -373,7 +373,7 @@ GPU 0: [124.2 / 191.3 Mh/s] [Q:212 A:77 R:33 HW:0 E:36% U:1.73/m]
Temp: 67.0 C
Fan Speed: 35% (2500 RPM)
Engine Clock: 960 MHz
Memory Clock: 480 Mhz
Memory Clock: 480 MHz
Vddc: 1.200 V
Activity: 93%
Powertune: 0%
Expand Down Expand Up @@ -625,7 +625,7 @@ Sets card 0 cutoff temperature to 95 and card 1 to 105.
--gpu-memdiff -125
This setting will modify the memory speed whenever the GPU clock speed is
modified by --auto-gpu. In this example, it will set the memory speed to
be 125 Mhz lower than the GPU speed. This is useful for some cards like the
be 125 MHz lower than the GPU speed. This is useful for some cards like the
6970 which normally don't allow a bigger clock speed difference.


Expand Down
6 changes: 3 additions & 3 deletions adl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ void change_gpusettings(int gpu)
wlogprint("(%d RPM)", fanspeed);
wlogprint("\n");
}
wlogprint("Engine Clock: %d MHz\nMemory Clock: %d Mhz\nVddc: %.3f V\nActivity: %d%%\nPowertune: %d%%\n",
wlogprint("Engine Clock: %d MHz\nMemory Clock: %d MHz\nVddc: %.3f V\nActivity: %d%%\nPowertune: %d%%\n",
engineclock, memclock, vddc, activity, powertune);
wlogprint("Fan autotune is %s (%d-%d)\n", ga->autofan ? "enabled" : "disabled",
gpus[gpu].min_fan, gpus[gpu].gpu_fan);
Expand All @@ -1307,7 +1307,7 @@ void change_gpusettings(int gpu)
change_autosettings(gpu);
} else if (!strncasecmp(&input, "e", 1)) {
get_enginerange(gpu, &imin, &imax);
wlogprint("Enter GPU engine clock speed (%d - %d Mhz)", imin, imax);
wlogprint("Enter GPU engine clock speed (%d - %d MHz)", imin, imax);
val = curses_int("");
if (val < imin || val > imax) {
wlogprint("Value is outside safe range, are you sure?\n");
Expand Down Expand Up @@ -1335,7 +1335,7 @@ void change_gpusettings(int gpu)
wlogprint("Failed to modify fan speed\n");
} else if (!strncasecmp(&input, "m", 1)) {
get_memoryrange(gpu, &imin, &imax);
wlogprint("Enter GPU memory clock speed (%d - %d Mhz)", imin, imax);
wlogprint("Enter GPU memory clock speed (%d - %d MHz)", imin, imax);
val = curses_int("");
if (val < imin || val > imax) {
wlogprint("Value is outside safe range, are you sure?\n");
Expand Down
2 changes: 1 addition & 1 deletion driver-cairnsmore.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static bool cairnsmore_init(struct thr_info *thr)
info->dclk.freqM =
info->dclk.freqMDefault = CAIRNSMORE1_DEFAULT_CLOCK / 2.5;
cairnsmore_send_cmd(cm1->device_fd, 0, info->dclk.freqM);
applog(LOG_WARNING, "%s %u: Frequency set to %u Mhz (range: %u-%u)",
applog(LOG_WARNING, "%s %u: Frequency set to %u MHz (range: %u-%u)",
cm1->api->name, cm1->device_id,
CAIRNSMORE1_DEFAULT_CLOCK, CAIRNSMORE1_MINIMUM_CLOCK, CAIRNSMORE1_MAXIMUM_CLOCK
);
Expand Down
4 changes: 2 additions & 2 deletions driver-modminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ modminer_fpga_init(struct thr_info *thr)
applog(LOG_WARNING, "%s %u.%u: Failed to set desired initial frequency of %u", modminer->api->name, modminer->device_id, fpgaid, MODMINER_DEFAULT_CLOCK);
}
state->dclk.freqMDefault = state->dclk.freqM;
applog(LOG_WARNING, "%s %u.%u: Frequency set to %u Mhz (range: %u-%u)", modminer->api->name, modminer->device_id, fpgaid, state->dclk.freqM * 2, MODMINER_MINIMUM_CLOCK, state->dclk.freqMaxM * 2);
applog(LOG_WARNING, "%s %u.%u: Frequency set to %u MHz (range: %u-%u)", modminer->api->name, modminer->device_id, fpgaid, state->dclk.freqM * 2, MODMINER_MINIMUM_CLOCK, state->dclk.freqMaxM * 2);

mutex_unlock(&modminer->device_mutex);

Expand Down Expand Up @@ -518,7 +518,7 @@ static void modminer_get_temperature(struct cgpu_info *modminer, struct thr_info
state->last_cutoff_reduced = now;
int oldFreq = state->dclk.freqM;
if (modminer_reduce_clock(thr, false))
applog(LOG_NOTICE, "%s %u.%u: Frequency %s from %u to %u Mhz (temp: %d)",
applog(LOG_NOTICE, "%s %u.%u: Frequency %s from %u to %u MHz (temp: %d)",
modminer->api->name, modminer->device_id, fpgaid,
(oldFreq > state->dclk.freqM ? "dropped" : "raised "),
oldFreq * 2, state->dclk.freqM * 2,
Expand Down
2 changes: 1 addition & 1 deletion driver-opencl.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ void manage_gpu(void)
if (engineclock != -1)
tailsprintf(logline, "E: %d MHz ", engineclock);
if (memclock != -1)
tailsprintf(logline, "M: %d Mhz ", memclock);
tailsprintf(logline, "M: %d MHz ", memclock);
if (vddc != -1)
tailsprintf(logline, "V: %.3fV ", vddc);
if (activity != -1)
Expand Down
2 changes: 1 addition & 1 deletion dynclock.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void dclk_prepare(struct dclk_data *data)

void dclk_msg_freqchange(const char *repr, int oldFreq, int newFreq, const char *tail)
{
applog(LOG_NOTICE, "%s: Frequency %s from %u to %u Mhz%s",
applog(LOG_NOTICE, "%s: Frequency %s from %u to %u MHz%s",
repr,
(oldFreq > newFreq ? "dropped" : "raised "),
oldFreq, newFreq,
Expand Down
2 changes: 1 addition & 1 deletion libblkmaker
Submodule libblkmaker updated from b86d12 to ca3cf0
2 changes: 1 addition & 1 deletion libztex.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ int libztex_setFreq(struct libztex_device *ztex, uint16_t freq) {
}
ztex->dclk.freqM = freq;
if (oldfreq > ztex->dclk.freqMaxM)
applog(LOG_WARNING, "%s: Frequency set to %u Mhz (range: %u-%u)",
applog(LOG_WARNING, "%s: Frequency set to %u MHz (range: %u-%u)",
ztex->repr,
(unsigned)(ztex->freqM1 * (ztex->dclk.freqM + 1)),
(unsigned)ztex->freqM1,
Expand Down
6 changes: 3 additions & 3 deletions miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ static struct opt_table opt_config_table[] = {
#ifdef HAVE_ADL
OPT_WITH_ARG("--gpu-engine",
set_gpu_engine, NULL, NULL,
"GPU engine (over)clock range in Mhz - one value, range and/or comma separated list (e.g. 850-900,900,750-850)"),
"GPU engine (over)clock range in MHz - one value, range and/or comma separated list (e.g. 850-900,900,750-850)"),
OPT_WITH_ARG("--gpu-fan",
set_gpu_fan, NULL, NULL,
"GPU fan percentage range - one value, range and/or comma separated list (e.g. 0-85,85,65)"),
Expand All @@ -1057,7 +1057,7 @@ static struct opt_table opt_config_table[] = {
"Map OpenCL to ADL device order manually, paired CSV (e.g. 1:0,2:1 maps OpenCL 1 to ADL 0, 2 to 1)"),
OPT_WITH_ARG("--gpu-memclock",
set_gpu_memclock, NULL, NULL,
"Set the GPU memory (over)clock in Mhz - one value for all or separate by commas for per card"),
"Set the GPU memory (over)clock in MHz - one value for all or separate by commas for per card"),
OPT_WITH_ARG("--gpu-memdiff",
set_gpu_memdiff, NULL, NULL,
"Set a fixed difference in clock speed between the GPU and memory in auto-gpu mode"),
Expand Down Expand Up @@ -5910,7 +5910,7 @@ static void *watchdog_thread(void __maybe_unused *userdata)
float temp = 0, vddc = 0;

if (gpu_stats(gpu, &temp, &engineclock, &memclock, &vddc, &activity, &fanspeed, &fanpercent, &powertune))
applog(LOG_DEBUG, "%.1f C F: %d%%(%dRPM) E: %dMHz M: %dMhz V: %.3fV A: %d%% P: %d%%",
applog(LOG_DEBUG, "%.1f C F: %d%%(%dRPM) E: %dMHz M: %dMHz V: %.3fV A: %d%% P: %d%%",
temp, fanpercent, fanspeed, engineclock, memclock, vddc, activity, powertune);
}
#endif
Expand Down

0 comments on commit 97c4821

Please sign in to comment.