KlausT / ccminer-cryptonight

Software for mining various cryptocoins, like Monero (pool mining only)
GNU General Public License v3.0
133 stars 30 forks source link

cuda error #55

Open aliceaia opened 7 years ago

aliceaia commented 7 years ago

unknown error cryptonight/cuda_cryptonight_core.cu line 221

cartesien commented 7 years ago

Hi KLAUST,

I tried to compile with your beta 2.06 source code, but it seems there are several problems : ./autogen.sh ./configure.sh i don't find the ./build.sh file as in prevuiouly v2.05 of your ccminer.

I an using nvOC v0019-1.4, so i am using a fresh ubuntu

user@nvOC0019-1.4:~/KTccminer-cryptonight/ccminer-cryptonight-2.06beta$ clear user@nvOC0019-1.4:~/KTccminer-cryptonight/ccminer-cryptonight-2.06beta$ ls aclocal.m4 ChangeLog config.sub cpuminer-config.h.in elist.h Makefile.in sha2.c AUTHORS compat configure crypto INSTALL miner.h stamp-h1 autogen.sh compat.h configure.ac cryptonight install-sh missing util.c autom4te.cache compile configure.sh cryptonight.c LICENSE NEWS ccminer.sln config.guess COPYING cryptonight.h LICENSE.txt README ccminer.vcxproj config.log cpu-miner.c cuda_helper.h Makefile README.md ccminer.vcxproj.filters config.status cpuminer-config.h depcomp Makefile.am README.txt user@nvOC0019-1.4:~/KTccminer-cryptonight/ccminer-cryptonight-2.06beta$ make make all-recursive make[1]: Entering directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta' Making all in compat make[2]: Entering directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[3]: Entering directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[2]: Leaving directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[2]: Entering directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta' gcc -DHAVE_CONFIG_H -I. -I/usr/local/cuda/include -msse2 -fopenmp -pthread -fno-strict-aliasing -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -g -O2 -MT ccminer-cpu-miner.o -MD -MP -MF .deps/ccminer-cpu-miner.Tpo -c -o ccminer-cpu-miner.o test -f 'cpu-miner.c' || echo './'cpu-miner.c cpu-miner.c:2118:1: fatal error: opening dependency file .deps/ccminer-cpu-miner.Tpo: Permission denied } ^ compilation terminated. Makefile:566: recipe for target 'ccminer-cpu-miner.o' failed make[2]: [ccminer-cpu-miner.o] Error 1 make[2]: Leaving directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta' Makefile:726: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta' Makefile:396: recipe for target 'all' failed make: [all] Error 2 user@nvOC0019-1.4:~/KTccminer-cryptonight/ccminer-cryptonight-2.06beta$ sudo make make all-recursive make[1]: Entering directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta' Making all in compat make[2]: Entering directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[3]: Entering directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[2]: Leaving directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[2]: Entering directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta' gcc -DHAVE_CONFIG_H -I. -I/usr/local/cuda/include -msse2 -fopenmp -pthread -fno-strict-aliasing -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -g -O2 -MT ccminer-cpu-miner.o -MD -MP -MF .deps/ccminer-cpu-miner.Tpo -c -o ccminer-cpu-miner.o test -f 'cpu-miner.c' || echo './'cpu-miner.c mv -f .deps/ccminer-cpu-miner.Tpo .deps/ccminer-cpu-miner.Po gcc -DHAVE_CONFIG_H -I. -I/usr/local/cuda/include -msse2 -fopenmp -pthread -fno-strict-aliasing -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -g -O2 -MT ccminer-util.o -MD -MP -MF .deps/ccminer-util.Tpo -c -o ccminer-util.o test -f 'util.c' || echo './'util.c mv -f .deps/ccminer-util.Tpo .deps/ccminer-util.Po gcc -DHAVE_CONFIG_H -I. -I/usr/local/cuda/include -msse2 -fopenmp -pthread -fno-strict-aliasing -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -g -O2 -MT ccminer-sha2.o -MD -MP -MF .deps/ccminer-sha2.Tpo -c -o ccminer-sha2.o test -f 'sha2.c' || echo './'sha2.c mv -f .deps/ccminer-sha2.Tpo .deps/ccminer-sha2.Po nvcc -g -O2 -I . -D_FORCE_INLINES -I/usr/local/cuda/include -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 --maxrregcount=128 --ptxas-options=-v -o cryptonight/cryptonight.o -c cryptonight/cryptonight.cu /bin/bash: nvcc: command not found Makefile:1152: recipe for target 'cryptonight/cryptonight.o' failed make[2]: [cryptonight/cryptonight.o] Error 127 make[2]: Leaving directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta' Makefile:726: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta' Makefile:396: recipe for target 'all' failed make: [all] Error 2 user@nvOC0019-1.4:~/KTccminer-cryptonight/ccminer-cryptonight-2.06beta$ sudo make install Making install in compat make[1]: Entering directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[2]: Entering directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[3]: Entering directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[2]: Leaving directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[1]: Leaving directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta/compat' make[1]: Entering directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta' nvcc -g -O2 -I . -D_FORCE_INLINES -I/usr/local/cuda/include -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_37,code=sm_37 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_52,code=sm_52 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_61,code=sm_61 --maxrregcount=128 --ptxas-options=-v -o cryptonight/cryptonight.o -c cryptonight/cryptonight.cu /bin/bash: nvcc: command not found Makefile:1152: recipe for target 'cryptonight/cryptonight.o' failed make[1]: [cryptonight/cryptonight.o] Error 127 make[1]: Leaving directory '/home/m1/KTccminer-cryptonight/ccminer-cryptonight-2.06beta' Makefile:726: recipe for target 'install-recursive' failed make: [install-recursive] Error 1

Please help if you want that i test it on my miner

KlausT commented 7 years ago

There has never been a build.sh here.

./autogen.sh
./configure.sh
make

should work, I think. But I don't use Linux, so I could be wrong. Looks like there's a problem with the CUDA Toolkit

cartesien commented 7 years ago

yes, I thought to make the make instead of build.sh. This build.sh was present in a previous version that I had retrieved from the nvOC thread on the bitcointalk forums.

Effectively I think the problem is with CUDA9 while I have not checked if it is present on nvOC. I think CUDA8 is installed but not version 9

Thank you for your answer anyway.

iWARR commented 6 years ago

Hi, KlausT

Same problem here on Windows [x64], "ccminer-cryptonight-206-x64-cuda9.zip" CUDA 9 is installed.

GPU0: the launch timed out and was terminated
D:/code/ccminer-cryptonight/cryptonight/cuda_cryptonight_core.cu line 221

(I don't have such path at all)

Something wrong with your compilations, I think.

KlausT commented 6 years ago

@iWARR Maybe it's the 2 second driver timeout from Windows. This can happen when you have a slow card. try --bfactor=7 or higher, or a smaller launch config

My binaries are working fine with my 1070

iWARR commented 6 years ago

@ KlausT

Yeah, you were right, --bfactor=8 worked for my slow GPU. And my CPU six times faster for cryptonight, as well.... :)

Thanks. Sorry for disturbing you.