Brano76 / truecrack

Automatically exported from code.google.com/p/truecrack
GNU General Public License v3.0
0 stars 0 forks source link

Cuda.o Error 255 / unsupported gpu architecture 'compute_30' during installation #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi there (i'm german...sorry for the english ;-)),
i got an error during the setup of truecrack with an GTX 580.
I'm working about 5h on this problem.
Previously i installed the nvidia driver from the nvidia homepage.
Then Nvidia Cuda 5.5. nvcc --version shows me:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2011 NVIDIA Corporation
Built on Thu_May_12_11:09:45_PDT_2011
Cuda compilation tools, release 4.0, V0.2.1221
Why Version 4.0? I hope this is allright.

In the system control the computer shows me the right Graphiccard, since i 
installed:
apt-get install mesa-utils

What steps will reproduce the problem?
1.
~/Downloads/truecrack$ sudo make install
Making install in src
make[1]: Betrete Verzeichnis '/home/joshua/Downloads/truecrack/src'
make[2]: Betrete Verzeichnis '/home/joshua/Downloads/truecrack'
make[2]: Verlasse Verzeichnis '/home/joshua/Downloads/truecrack'
cat Cuda/Core.cu > Cuda.cu 
cat Cuda/Pkcs5.cu >> Cuda.cu
cat Cuda/Aes.cu >> Cuda.cu
cat Cuda/Serpent.cu >> Cuda.cu
cat Cuda/Twofish.cu >> Cuda.cu
cat Cuda/Crypto.cu >> Cuda.cu
cat Cuda/Xts.cu >> Cuda.cu
cat Cuda/Rmd160.alternative.cu >> Cuda.cu
cat Cuda/Sha2.cu >> Cuda.cu
cat Cuda/Whirlpool.cu >> Cuda.cu
nvcc -c Cuda.cu -g -I./Common/ -I./Crypto/ -I./Cuda/ -I./Main/ -I./ 
-I/usr/local/cuda/include/   -D_GPU_ -gencode arch=compute_10,code=sm_10 
-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 
-gencode arch=compute_35,code=sm_35 -ftz=true -use_fast_math --opencc-options 
-OPT:Olimit=0  -o Cuda.o
nvcc fatal   : Unsupported gpu architecture 'compute_30'
make[1]: *** [Cuda.o] Fehler 255
make[1]: Verlasse Verzeichnis '/home/joshua/Downloads/truecrack/src'
make: *** [install-recursive] Fehler 1
joshua@joshua-desktop:~/Downloads/truecrack$ 
joshua@joshua-desktop:~/Downloads/truecrack$ sudo make install
Making install in src
make[1]: Betrete Verzeichnis '/home/joshua/Downloads/truecrack/src'
make[2]: Betrete Verzeichnis '/home/joshua/Downloads/truecrack'
make[2]: Verlasse Verzeichnis '/home/joshua/Downloads/truecrack'
cat Cuda/Core.cu > Cuda.cu 
cat Cuda/Pkcs5.cu >> Cuda.cu
cat Cuda/Aes.cu >> Cuda.cu
cat Cuda/Serpent.cu >> Cuda.cu
cat Cuda/Twofish.cu >> Cuda.cu
cat Cuda/Crypto.cu >> Cuda.cu
cat Cuda/Xts.cu >> Cuda.cu
cat Cuda/Rmd160.alternative.cu >> Cuda.cu
cat Cuda/Sha2.cu >> Cuda.cu
cat Cuda/Whirlpool.cu >> Cuda.cu
nvcc -c Cuda.cu -g -I./Common/ -I./Crypto/ -I./Cuda/ -I./Main/ -I./ 
-I/usr/local/cuda/include/   -D_GPU_ -gencode arch=compute_10,code=sm_10 
-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 
-gencode arch=compute_35,code=sm_35 -ftz=true -use_fast_math --opencc-options 
-OPT:Olimit=0  -o Cuda.o
nvcc fatal   : Unsupported gpu architecture 'compute_30'
make[1]: *** [Cuda.o] Fehler 255
make[1]: Verlasse Verzeichnis '/home/joshua/Downloads/truecrack/src'
make: *** [install-recursive] Fehler 1
joshua@joshua-desktop:~/Downloads/truecrack$

What is the expected output? What do you see instead?
- That i can install truecrack
- see above

What version of the product are you using? On what operating system?
- Ubuntu 12.04 64-Bit
- Truecrack 3.5

I hope you can help me.
Many thanks in advance!

Original issue reported on code.google.com by bastian.jordan507 on 3 Sep 2013 at 9:03

GoogleCodeExporter commented 9 years ago
Ok. The problem is related the compute capability flag in the make procedure. 
Your board GTX580 supports only the compute capability 2.0. So you must edit 
the src/Makefile.am and replace the line:
GENCODE_FLAGS=  $(GENCODE_SM10) $(GENCODE_SM20) $(GENCODE_SM30)
with the new line:
GENCODE_FLAGS=  $(GENCODE_SM20)
then redo the ./configure and make.

Sorry for the problem.

Original comment by luck87 on 5 Sep 2013 at 8:14

GoogleCodeExporter commented 9 years ago
Hi, sorry to disturb, but I did as instructed and changed the GENCODE_FLAGS 
line, but am still receiving the same "compute_30" error.

I'm using the same nvcc version. The output is as follows.

make  all-recursive
make[1]: Entering directory `/home/michael/Downloads/truecrack'
Making all in src
make[2]: Entering directory `/home/michael/Downloads/truecrack/src'
make[3]: Entering directory `/home/michael/Downloads/truecrack'
make[3]: Leaving directory `/home/michael/Downloads/truecrack'
cat Cuda/Core.cu > Cuda.cu 
cat Cuda/Pkcs5.cu >> Cuda.cu
cat Cuda/Aes.cu >> Cuda.cu
cat Cuda/Serpent.cu >> Cuda.cu
cat Cuda/Twofish.cu >> Cuda.cu
cat Cuda/Crypto.cu >> Cuda.cu
cat Cuda/Xts.cu >> Cuda.cu
cat Cuda/Rmd160.alternative.cu >> Cuda.cu
cat Cuda/Sha2.cu >> Cuda.cu
cat Cuda/Whirlpool.cu >> Cuda.cu
nvcc -c Cuda.cu -g -I./Common/ -I./Crypto/ -I./Cuda/ -I./Main/ -I./ 
-I/usr/local/cuda/include/   -D_GPU_ -gencode arch=compute_10,code=sm_10 
-gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 
-gencode arch=compute_35,code=sm_35 -ftz=true -use_fast_math --opencc-options 
-OPT:Olimit=0  -o Cuda.o
make[2]: Leaving directory `/home/michael/Downloads/truecrack/src'
make[1]: Leaving directory `/home/michael/Downloads/truecrack'

I'm running Ubuntu 12.04.3 64 bit, and attempting to use Truecrack 3.5

Thank you for your time.

Original comment by oomunch...@gmail.com on 23 Dec 2013 at 11:50

GoogleCodeExporter commented 9 years ago
You must set only the compute architecture supported by your nvidia board:  
GTX580 supportes 2.0 and doesn't support 3.0/3.5 
http://en.wikipedia.org/wiki/CUDA
You can use only che flags:  -gencode arch=compute_20,code=sm_20

Original comment by luck87 on 24 Dec 2013 at 3:24