gcode-mirror / truecrack

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

no CUDA-capable device is detected in Cuda.cu at line 283 #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install Ubuntu 14.04 LTS
2.Install Latest updates
3.Install Nvidia Toolkit from Repository
4.Download and install truecrack

Here is where it seems to get weird

If I ./configure it builds and gives no errors However when I go to run 
truecrack it give me the following error

Memory initialization...
no CUDA-capable device is detected in Cuda.cu at line 283

Unfortunately I have not run Cuda from linux before but it appears my cuda 
install path is "/usr/lib/nvidia-cuda-toolkit" not "/usr/local/cuda-5.0"

What is the expected output? What do you see instead? I have tried installing 
Cuda 5.0 but it seems to break my system

Current system specs
AMD FX(tm)-8350 Eight-Core Processor × 8 
Memory 15.5 GiB
Gallium 0.4 on NVF1
OS Ubuntu 14.04 LTS x64
Video card 780 GTX SLI (I understand that only one will be used)

Here is the variables I added to my bashrc file

#CUDA
export CUDA_HOME=/usr/lib/nvidia-cuda-toolkit/bin 
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64 

PATH=${CUDA_HOME}/bin:${PATH} 
export PATH

here is my configure log
donald@ubuntu-desktop:~/Downloads/App-Install/truecrack$ ./configure 
--with-cuda=/usr/lib/nvidia-cuda-toolkit
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for main in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for memory.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking for unistd.h... (cached) yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
checking for pow... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for cudaMalloc in -lcudart... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands

here is my make log

donald@ubuntu-desktop:~/Downloads/App-Install/truecrack$ make
make  all-recursive
make[1]: Entering directory `/home/donald/Downloads/App-Install/truecrack'
Making all in src
make[2]: Entering directory `/home/donald/Downloads/App-Install/truecrack/src'
make[3]: Entering directory `/home/donald/Downloads/App-Install/truecrack'
make[3]: Leaving directory `/home/donald/Downloads/App-Install/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
/usr/lib/nvidia-cuda-toolkit/bin/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 warning : Option '--opencc-options (-Xopencc)' is obsolete and ignored, 
when targeting compute_20, sm_20, or higher
./Cuda/Aeskey.cu(186): warning: a __host__ function("aes_encrypt_key256") 
redeclared with __device__, hence treated as a __host__ __device__ function

./Cuda/Aeskey.cu(509): warning: a __host__ function("aes_decrypt_key256") 
redeclared with __device__, hence treated as a __host__ __device__ function

./Cuda/Aescrypt.cu(113): warning: a __host__ function("aes_encrypt") redeclared 
with __device__, hence treated as a __host__ __device__ function

./Cuda/Aescrypt.cu(250): warning: a __host__ function("aes_decrypt") redeclared 
with __device__, hence treated as a __host__ __device__ function

./Cuda/Aeskey.cu(186): warning: a __host__ function("aes_encrypt_key256") 
redeclared with __device__, hence treated as a __host__ __device__ function

./Cuda/Aeskey.cu(509): warning: a __host__ function("aes_decrypt_key256") 
redeclared with __device__, hence treated as a __host__ __device__ function

./Cuda/Aescrypt.cu(113): warning: a __host__ function("aes_encrypt") redeclared 
with __device__, hence treated as a __host__ __device__ function

./Cuda/Aescrypt.cu(250): warning: a __host__ function("aes_decrypt") redeclared 
with __device__, hence treated as a __host__ __device__ function

./Cuda/Aeskey.cu(186): warning: a __host__ function("aes_encrypt_key256") 
redeclared with __device__, hence treated as a __host__ __device__ function

./Cuda/Aeskey.cu(509): warning: a __host__ function("aes_decrypt_key256") 
redeclared with __device__, hence treated as a __host__ __device__ function

./Cuda/Aescrypt.cu(113): warning: a __host__ function("aes_encrypt") redeclared 
with __device__, hence treated as a __host__ __device__ function

./Cuda/Aescrypt.cu(250): warning: a __host__ function("aes_decrypt") redeclared 
with __device__, hence treated as a __host__ __device__ function

./Cuda/Aeskey.cu(186): warning: a __host__ function("aes_encrypt_key256") 
redeclared with __device__, hence treated as a __host__ __device__ function

./Cuda/Aeskey.cu(509): warning: a __host__ function("aes_decrypt_key256") 
redeclared with __device__, hence treated as a __host__ __device__ function

./Cuda/Aescrypt.cu(113): warning: a __host__ function("aes_encrypt") redeclared 
with __device__, hence treated as a __host__ __device__ function

./Cuda/Aescrypt.cu(250): warning: a __host__ function("aes_decrypt") redeclared 
with __device__, hence treated as a __host__ __device__ function

./Cuda.cu(543): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(550): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(543): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(550): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(543): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(550): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(543): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(550): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(753): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(767): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(753): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(767): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(901): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(915): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(901): Warning: Cannot tell what pointer points to, assuming global 
memory space
./Cuda.cu(915): Warning: Cannot tell what pointer points to, assuming global 
memory space
/usr/lib/nvidia-cuda-toolkit/bin/nvcc -c -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 Main/Core.c -o Core.o
Main/Core.c: In function ‘core_dictionary’:
Main/Core.c:223:5: warning: format ‘%d’ expects argument of type ‘int’, 
but argument 4 has type ‘long long int’ [-Wformat=]
     printf("--- Performance: %g p/s, time: %.2g s, passwords: %d \n",block_size/(time/1000),time/1000,block_size);
     ^
Main/Core.c: In function ‘core_charset’:
Main/Core.c:374:7: warning: format ‘%d’ expects argument of type ‘int’, 
but argument 4 has type ‘long long int’ [-Wformat=]
       printf("--- Performance: %g p/s, time: %.2g s, passwords: %d \n",block_size/(time/1000),time/1000,block_size);
       ^
/usr/lib/nvidia-cuda-toolkit/bin/nvcc -c -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 Main/Charset.c -o Charset.o
/usr/lib/nvidia-cuda-toolkit/bin/nvcc -c -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 Main/Utils.c -o Utils.o
/usr/lib/nvidia-cuda-toolkit/bin/nvcc -c -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 Main/Main.c -o Main.o
Main/Main.c: In function ‘print_usage’:
Main/Main.c:45:3: warning: too many arguments for format [-Wformat-extra-args]
   , program_name, program_name, program_name, program_name);
   ^
/usr/lib/nvidia-cuda-toolkit/bin/nvcc -c -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 Common/Volumes.c -o Volumes.o
/usr/lib/nvidia-cuda-toolkit/bin/nvcc -c -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 Common/Crc.c -o Crc.o
/usr/lib/nvidia-cuda-toolkit/bin/nvcc -c -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 Common/Endian.c -o Endian.o
/usr/lib/nvidia-cuda-toolkit/bin/nvcc -o truecrack Cuda.o Volumes.o Crc.o 
Endian.o  Core.o Charset.o Utils.o Main.o  -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 -lm -O3 
make[2]: Leaving directory `/home/donald/Downloads/App-Install/truecrack/src'
make[2]: Entering directory `/home/donald/Downloads/App-Install/truecrack'
make[2]: Leaving directory `/home/donald/Downloads/App-Install/truecrack'
make[1]: Leaving directory `/home/donald/Downloads/App-Install/truecrack'
donald@ubuntu-desktop:~/Downloads/App-Install/truecrack$ sudo make install
Making install in src
make[1]: Entering directory `/home/donald/Downloads/App-Install/truecrack/src'
make[2]: Entering directory `/home/donald/Downloads/App-Install/truecrack'
make[2]: Leaving directory `/home/donald/Downloads/App-Install/truecrack'
make[2]: Entering directory `/home/donald/Downloads/App-Install/truecrack/src'
make[3]: Entering directory `/home/donald/Downloads/App-Install/truecrack'
make[3]: Leaving directory `/home/donald/Downloads/App-Install/truecrack'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /usr/bin/install -c truecrack '/usr/local/bin'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/donald/Downloads/App-Install/truecrack/src'
make[1]: Leaving directory `/home/donald/Downloads/App-Install/truecrack/src'
make[1]: Entering directory `/home/donald/Downloads/App-Install/truecrack'
make[2]: Entering directory `/home/donald/Downloads/App-Install/truecrack'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share" || /bin/mkdir -p "/usr/local/share"
 /usr/bin/install -c -m 644 cudalt.py autogen.sh '/usr/local/share'
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
 /usr/bin/install -c -m 644 truecrack.1 '/usr/local/share/man/man1'
make[2]: Leaving directory `/home/donald/Downloads/App-Install/truecrack'
make[1]: Leaving directory `/home/donald/Downloads/App-Install/truecrack'

Original issue reported on code.google.com by MatrixAn...@gmail.com on 6 Jun 2015 at 5:54