djm34 / ccminer-msvc2015

ccminer updated to the latest version of visual studio (2015)
GNU General Public License v3.0
33 stars 25 forks source link

build.sh is missing #21

Closed MoinFaraz closed 6 years ago

MoinFaraz commented 6 years ago

I'm on Ubuntu 16.04 and there's no build.sh inside unzipped archive. The instructions says to ./autogen.sh and ./configure which I did without any issues, but later it ended up with an error when doing ./build.sh

I've looked into it and found there's no build.sh file under unzipped directory?

bash: ./build.sh: No such file or directory

djm34 commented 6 years ago

Hmm... how did you do build.sh if there isn't any ? :) I removed build.sh from that release. The correct procedure is, for that release ./autogen.sh ./configure make.

MoinFaraz commented 6 years ago

Okay, make ended up with this error:

make-error

djm34 commented 6 years ago

are you using cuda 9 ? If yes you should remove scrypt. This one doesn't compile with cuda 9 (or use cuda 8)

MoinFaraz commented 6 years ago

Yes, I'm using Cuda 9. Sorry, how do I go about removing scrypt?

ghost commented 6 years ago
nvcc fatal   : Unsupported gpu architecture 'compute_60'
make[2]: *** [cuda_groestlcoin.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/ccminer-ccminer.Tpo .deps/ccminer-ccminer.Po
mv -f .deps/ccminer-groestlcoin.Tpo .deps/ccminer-groestlcoin.Po
mv -f .deps/ccminer-cuda.Tpo .deps/ccminer-cuda.Po
mv -f .deps/ccminer-myriadgroestl.Tpo .deps/ccminer-myriadgroestl.Po
make[2]: Leaving directory `/root/ccminer'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/ccminer'
make: *** [all] Error 2

using nvidia/cuda:7.5-devel-ubuntu14.04 as the build environment.

djm34 commented 6 years ago

you can't compile with compute_60 with cuda 7.5, you need to either use cuda 8 or higher or use compute_52 or 50

ghost commented 6 years ago

Using nvidia/cuda:8.0-devel-ubuntu16.04 or removing nvcc_ARCH += -gencode=arch=compute_60,code=\"sm_60,compute_60\" worked. How to remove scrypt to compile against nvidia/cuda:9.0-devel-ubuntu16.04?