tuxcanfly / hs-miner-old

Other
0 stars 0 forks source link

blake2b_iv optimization #20

Open tynes opened 4 years ago

tynes commented 4 years ago

See this code here: https://github.com/maltese/zcash-cuda-miner/blob/6bc2fefcd880ed3ccd3449a736f6f57065d7509e/blake2b.cu#L83

Instead of always referencing global constant memory on the gpu, it seems like they copy it once and then use that copy. Just initializing the blake2b context will cause a bunch of global memory reads. Could the ivs be hardcoded in as ints?