|
|
@ -225,6 +225,10 @@ static char current_block[37]; |
|
|
|
static char datestamp[40]; |
|
|
|
static char datestamp[40]; |
|
|
|
static char blockdate[40]; |
|
|
|
static char blockdate[40]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static char *opt_kernel = NULL; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum cl_kernel chosen_kernel; |
|
|
|
|
|
|
|
|
|
|
|
struct sigaction termhandler, inthandler; |
|
|
|
struct sigaction termhandler, inthandler; |
|
|
|
|
|
|
|
|
|
|
|
struct thread_q *getq; |
|
|
|
struct thread_q *getq; |
|
|
@ -503,6 +507,9 @@ static struct opt_table opt_config_table[] = { |
|
|
|
OPT_WITH_ARG("--intensity|-I", |
|
|
|
OPT_WITH_ARG("--intensity|-I", |
|
|
|
forced_int_1010, opt_show_intval, &scan_intensity, |
|
|
|
forced_int_1010, opt_show_intval, &scan_intensity, |
|
|
|
"Intensity of GPU scanning (-10 -> 10, default: dynamic to maintain desktop interactivity)"), |
|
|
|
"Intensity of GPU scanning (-10 -> 10, default: dynamic to maintain desktop interactivity)"), |
|
|
|
|
|
|
|
OPT_WITH_ARG("--kernel|-k", |
|
|
|
|
|
|
|
opt_set_charp, NULL, &opt_kernel, |
|
|
|
|
|
|
|
"Select kernel to use (poclbm or phatk - default: auto)"), |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
OPT_WITHOUT_ARG("--load-balance", |
|
|
|
OPT_WITHOUT_ARG("--load-balance", |
|
|
|
set_loadbalance, &pool_strategy, |
|
|
|
set_loadbalance, &pool_strategy, |
|
|
@ -2488,10 +2495,15 @@ static void *gpuminer_thread(void *userdata) |
|
|
|
bool requested = true; |
|
|
|
bool requested = true; |
|
|
|
uint32_t total_hashes = 0, hash_div = 1; |
|
|
|
uint32_t total_hashes = 0, hash_div = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (clState->hasBitAlign) |
|
|
|
switch (chosen_kernel) { |
|
|
|
queue_kernel_parameters = &queue_phatk_kernel; |
|
|
|
case KL_POCLBM: |
|
|
|
else |
|
|
|
|
|
|
|
queue_kernel_parameters = &queue_poclbm_kernel; |
|
|
|
queue_kernel_parameters = &queue_poclbm_kernel; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case KL_PHATK: |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
queue_kernel_parameters = &queue_phatk_kernel; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (opt_dynamic) { |
|
|
|
if (opt_dynamic) { |
|
|
|
/* Minimise impact on desktop if we want dynamic mode */ |
|
|
|
/* Minimise impact on desktop if we want dynamic mode */ |
|
|
@ -3233,6 +3245,16 @@ int main (int argc, char *argv[]) |
|
|
|
if (argc != 1) |
|
|
|
if (argc != 1) |
|
|
|
quit(1, "Unexpected extra commandline arguments"); |
|
|
|
quit(1, "Unexpected extra commandline arguments"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (opt_kernel) { |
|
|
|
|
|
|
|
if (strcmp(opt_kernel, "poclbm") && strcmp(opt_kernel, "phatk")) |
|
|
|
|
|
|
|
quit(1, "Invalid kernel name specified - must be poclbm or phatk"); |
|
|
|
|
|
|
|
if (!strcmp(opt_kernel, "poclbm")) |
|
|
|
|
|
|
|
chosen_kernel = KL_POCLBM; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
chosen_kernel = KL_PHATK; |
|
|
|
|
|
|
|
} else |
|
|
|
|
|
|
|
chosen_kernel = KL_NONE; |
|
|
|
|
|
|
|
|
|
|
|
if (total_devices) { |
|
|
|
if (total_devices) { |
|
|
|
if (total_devices > nDevs) |
|
|
|
if (total_devices > nDevs) |
|
|
|
quit(1, "More devices specified than exist"); |
|
|
|
quit(1, "More devices specified than exist"); |
|
|
|