decred / gominer

Go (golang) based GPU miner for Decred.
GNU General Public License v3.0
160 stars 80 forks source link

Initial support for cuda mining. #81

Closed jcvernaleo closed 8 years ago

jcvernaleo commented 8 years ago

Modelled partly after ccminer.

Contains work by jrick and jcv.

jcvernaleo commented 8 years ago

Fixed the spelling issue.

jolan commented 8 years ago

Looks good and works fine. Time to get it in I guess.

OK

tpruvot commented 8 years ago

in cudevice.go, you should add both cuda default locations :

-L/opt/cuda/lib64 -L/usr/local/cuda/lib64

jcvernaleo commented 8 years ago

Thanks @tpruvot. We'll add that when we add in path's for building on windows and hopefully Ubuntu.

tpruvot commented 8 years ago

cuda setup is available in .run packages like device drivers and works on most linux distributions

default path in this setup is /usr/local/cuda-[7.5] with a symlink question to /usr/local/cuda

Its not just for ubuntu ;) just not Arch

jcvernaleo commented 8 years ago

Actually at least on my ubuntu box it puts it in a different place than the default. So we will need it in 4 places I think (default, arch, ubuntu, and windows).

tpruvot commented 8 years ago

its maybe possible to get the linux toolkit path from ldconfig -p or just which nvcc