Comments (11)
I was able to fix this by commenting and uncommenting some lines in my Makefile at line 395. I was able to compile with these lines:
#NVCC_GENCODE = -gencode=arch=compute_35,code=\"sm_35,compute_35\"
NVCC_GENCODE = -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\"
#NVCC_GENCODE = -gencode=arch=code=\"sm_20\" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\"
from ccminer-cryptonight.
After more research I found that the newest cuda version (9.0) doesn't support compute_20 anymore. This means that you have two options, disable the compute_20 target or install cuda version 8.0. If your GPU supports newer compute architectures you should use the newest cuda version and disable compute_20.
from ccminer-cryptonight.
from ccminer-cryptonight.
Leave the "-v", that worked for me:
-Xptxas "-v" $(NVCC_GENCODE) --maxrregcount=80 .........
from ccminer-cryptonight.
Just in case it helps someone, combo of both @pingiun suggestions got it compiling successfully on my machine (16.04 w/ GTX 780). In Makefile replace NVCC_GENCODE
block with :
NVCC_GENCODE = -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\"
and remove -abi=no
(preserve the -v
).
from ccminer-cryptonight.
@pingiun Unfortunately, that didn't work out for me. I'm now getting this error.
nvcc -g -O2 -I . -Xptxas "-abi=no -v" -gencode=arch=compute_30,code="sm_30,compute_30" -gencode=arch=compute_35,code="sm_35,compute_35" --maxrregcount=80 --ptxas-options=-v -I./compat/jansson -o cryptonight/cryptonight.o -c cryptonight/cryptonight.cu
ptxas error : Invalid value 'no' for option -abi.
ptxas warning : Too big maxrregcount value specified 80, will be ignored
ptxas fatal : Ptx assembly aborted due to errors
Makefile:1155: recipe for target 'cryptonight/cryptonight.o' failed
make[2]: *** [cryptonight/cryptonight.o] Error 255
make[2]: Leaving directory '/home/faraz/Downloads/ccminer-cryptonight-0.17'
Makefile:729: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/faraz/Downloads/ccminer-cryptonight-0.17'
Makefile:399: recipe for target 'all' failed
make: *** [all] Error 2
from ccminer-cryptonight.
I have the same problem.
from ccminer-cryptonight.
I've removed "-abi=no -v" from makefile, ran make again. Got this error:
ptxas fatal : Unknown option 'gencode'
Makefile:1155: recipe for target 'cryptonight/cryptonight.o' failed
make[2]: *** [cryptonight/cryptonight.o] Error 255
make[2]: Leaving directory '/home/faraz/Downloads/ccminer-cryptonight-0.17'
Makefile:729: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/faraz/Downloads/ccminer-cryptonight-0.17'
Makefile:399: recipe for target 'all' failed
make: *** [all] Error 2
from ccminer-cryptonight.
from ccminer-cryptonight.
in the file Makefile.am find each line that contains
or
after salsa_kernel.cu and replace the whole line with
I don't know how this got left in but it allow a clean compile.
then run
./autogen.sh
./build.sh
from ccminer-cryptonight.
Still getting this error,
make all-recursive
make[1]: Entering directory '/root/downloads/ccminer-cryptonight'
Making all in compat
make[2]: Entering directory '/root/downloads/ccminer-cryptonight/compat'
Making all in jansson
make[3]: Entering directory '/root/downloads/ccminer-cryptonight/compat/jansson'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/downloads/ccminer-cryptonight/compat/jansson'
make[3]: Entering directory '/root/downloads/ccminer-cryptonight/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/downloads/ccminer-cryptonight/compat'
make[2]: Leaving directory '/root/downloads/ccminer-cryptonight/compat'
make[2]: Entering directory '/root/downloads/ccminer-cryptonight'
nvcc -g -O2 -I . -Xptxas "-v" -gencode=arch=compute_30,code="sm_30,compute_30" -gencode=arch=compute_35,code="sm_35,compute_35" --maxrregcount=80 --ptxas-options=-v -I./compat/jansson -o cryptonight/cryptonight.o -c cryptonight/cryptonight.cu
/bin/bash: nvcc: command not found
Makefile:1156: recipe for target 'cryptonight/cryptonight.o' failed
make[2]: *** [cryptonight/cryptonight.o] Error 127
make[2]: Leaving directory '/root/downloads/ccminer-cryptonight'
Makefile:730: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/downloads/ccminer-cryptonight'
Makefile:400: recipe for target 'all' failed
make: *** [all] Error 2
from ccminer-cryptonight.
Related Issues (20)
- gtx 1080 ftw fatal: failed to allocate device memory for long state HOT 5
- Stratum Detected New Block HOT 4
- Simple question about threads
- Mining with Geforce 210 but minergate*com dashboard not show speed increase HOT 2
- GPU #0: FATAL: failed to allocate device memory for long state HOT 26
- error: ‘memcpy’ was not declared in this scope HOT 9
- Program wont run/start HOT 1
- nvcc Unsupported gpu architecture 'compute_20' HOT 1
- Miner failing after warning..screenshot HOT 2
- Debian 9 make error : /usr/bin/ld: final link failed: Nonrepresentable section on output HOT 2
- GTX 1070 very low hashrate
- cryptonight algorithm reports insanely high hashrate on compute_1.x
- /usr/bin/ld: cannot find -lcudart HOT 3
- Do not get any shares HOT 2
- GPU #0: FATAL: failed to allocate device memory for long state HOT 2
- Won't start properly HOT 1
- miner for my seed coin
- Stack Smashing Detected
- Please add new custom algorithm CryptoNight Heavy X
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccminer-cryptonight.