1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-01 01:14:22 +00:00

bflsc use getinfo chip parallelization if it is present

This commit is contained in:
Kano 2013-10-18 10:42:43 +11:00
parent 4aa84abba5
commit dfa849ab62
2 changed files with 14 additions and 0 deletions

View File

@ -818,6 +818,19 @@ reinit:
break;
}
// Set parallelization based on the getinfo() response if it is present
if (sc_info->sc_devs[0].chips && strlen(sc_info->sc_devs[0].chips)) {
if (strstr(sc_info->sc_devs[0].chips, BFLSC_DI_CHIPS_PARALLEL)) {
sc_info->que_noncecount = QUE_NONCECOUNT_V2;
sc_info->que_fld_min = QUE_FLD_MIN_V2;
sc_info->que_fld_max = QUE_FLD_MAX_V2;
} else {
sc_info->que_noncecount = QUE_NONCECOUNT_V1;
sc_info->que_fld_min = QUE_FLD_MIN_V1;
sc_info->que_fld_max = QUE_FLD_MAX_V1;
}
}
sc_info->scan_sleep_time = BAS_SCAN_TIME;
sc_info->results_sleep_time = BFLSC_RES_TIME;
sc_info->default_ms_work = BAS_WORK_TIME;

View File

@ -59,6 +59,7 @@ enum driver_version {
#define BFLSC_DI_DEVICESINCHAIN "DEVICES IN CHAIN"
#define BFLSC_DI_CHAINPRESENCE "CHAIN PRESENCE MASK"
#define BFLSC_DI_CHIPS "CHIP PARALLELIZATION"
#define BFLSC_DI_CHIPS_PARALLEL "YES"
#define FULLNONCE 0x100000000ULL