tromp / cuckoo

a memory-bound graph-theoretic proof-of-work system
Other
822 stars 173 forks source link

where is indexesE[2] used? #83

Closed zkh2018 closed 5 years ago

zkh2018 commented 5 years ago

https://github.com/tromp/cuckoo/blob/7d69e764f1babc4cc07aa74759a52175715b1ba5/src/cuckaroo/mean.cu#L482

hi, tromp, I can not understand this code: the indexesE[2] never used after round1, how did you know the bucket size after bufferB + sizeB/NB?

zkh2018 commented 5 years ago

I think i understand this code "for (int i = 0; i < NP; i++, src += NX2 * maxIn, srcIdx += NX2) {".