-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nvcc fatal : Unsupported gpu architecture 'compute_20' #28
Comments
I have the same problem. |
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\" |
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. |
@pingiun Unfortunately, that didn't work out for me. I'm now getting this error.
|
I had this too, and just removed the -abi option from the Makefile to solve it.
…-------- Original Message --------
On Nov 1, 2017, 22:11, Faraz Moin wrote:
***@***.***(https://github.com/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
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#28 (comment)), or [mute the thread](https://github.com/notifications/unsubscribe-auth/ABgO1EXA0M-fiZj8fDyjoaxEy9A0A1qiks5syN6IgaJpZM4QCSiX).
|
I've removed "-abi=no -v" from makefile, ran make again. Got this error:
|
Can't see what is the problem now. But you can try another miner instead, xmr-stak-nvidia for example
… -------- Original Message --------
Subject: Re: [tsiv/ccminer-cryptonight] nvcc fatal : Unsupported gpu architecture 'compute_20' (#28)
Local Time: November 1, 2017 10:22 PM
UTC Time: November 1, 2017 9:22 PM
From: ***@***.***
To: tsiv/ccminer-cryptonight ***@***.***>
Jelle Besseling ***@***.***>, Mention ***@***.***>
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
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#28 (comment)), or [mute the thread](https://github.com/notifications/unsubscribe-auth/ABgO1PwL3H67o7tDUo-CYU34DtglWiBKks5syOEQgaJpZM4QCSiX).
|
Leave the "-v", that worked for me: -Xptxas "-v" $(NVCC_GENCODE) --maxrregcount=80 ......... |
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 = -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" and remove |
in the file Makefile.am find each line that contains 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 |
Still getting this error, make all-recursive |
I've got no issues in ./autogen.sh and ./configure
Only when I make, I get this error
`nvcc -g -O2 -I . -Xptxas "-abi=no -v" -gencode=arch=compute_20,code="sm_20,compute_20" -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
nvcc fatal : Unsupported gpu architecture 'compute_20'
Makefile:1155: recipe for target 'cryptonight/cryptonight.o' failed
make[2]: *** [cryptonight/cryptonight.o] Error 1
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
`
The text was updated successfully, but these errors were encountered: