Browse Source

bflsc use getinfo chip parallelization if it is present

nfactor-troky
Kano 11 years ago
parent
commit
dfa849ab62
  1. 13
      driver-bflsc.c
  2. 1
      driver-bflsc.h

13
driver-bflsc.c

@ -818,6 +818,19 @@ reinit: @@ -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;

1
driver-bflsc.h

@ -59,6 +59,7 @@ enum driver_version { @@ -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

Loading…
Cancel
Save