nicehash / nheqminer

Equihash miner for NiceHash
https://www.nicehash.com
MIT License
768 stars 583 forks source link

Use Tromp's CUDA Blake2b implementation #164

Open gndgnd opened 8 years ago

gndgnd commented 8 years ago

Hi,

why is the miner using the tromp_cpu b2b implementation ? According to the CMakeList, there is:

 # cuda tromp
    ../../cuda_tromp/cuda_tromp.hpp
    ../../cuda_tromp/cuda_tromp.cpp
    ../../cuda_tromp/eqcuda.hpp
    ../../cuda_tromp/equi_miner.cu
    ../../cpu_tromp/blake2/blake2bx.cpp
    )

Instead of using the blake2b.cu ?

montvid commented 8 years ago

Blake2b.cu is included in equi_miner.cu. open the file and see.

gndgnd commented 8 years ago

Hi montvid, thank you for your reply. I see that Blake2b.cu is included, but still the blake2 code heavily relies on tromp_cpu that needs at least SSE2. While this is OK on x86 machines, the code wont compile on eg. arm64. If the blake2 code would not obligatorily use x86 intrinsics, it would be great !