uberchris / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

Does not see GPU #457

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, i goes from step to step:

root@Debian:~/Downloads/cpyrit-cuda-0.4.0# python setup.py build
svn: '.' is not a working copy
running build
running build_ext
Skipping rebuild of Nvidia CUDA kernel ...
Building modules...
building 'cpyrit._cpyrit_cuda' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/local/cuda/include -I/usr/include/python2.7 -c 
_cpyrit_cuda.c -o build/temp.linux-x86_64-2.7/_cpyrit_cuda.o -Wall 
-fno-strict-aliasing -DVERSION="0.4.0"
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro 
build/temp.linux-x86_64-2.7/_cpyrit_cuda.o -lcrypto -lcuda -lz -o 
build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_cuda.so
root@Debian:~/Downloads/cpyrit-cuda-0.4.0# python setup.py install
svn: '.' is not a working copy
running install
running build
running build_ext
Skipping rebuild of Nvidia CUDA kernel ...
Building modules...
running install_lib
copying build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_cuda.so -> 
/usr/local/lib/python2.7/dist-packages/cpyrit
running install_egg_info
Removing /usr/local/lib/python2.7/dist-packages/cpyrit_cuda-0.4.0.egg-info
Writing /usr/local/lib/python2.7/dist-packages/cpyrit_cuda-0.4.0.egg-info
root@Debian:~/Downloads/cpyrit-cuda-0.4.0# pyrit list_cores
Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

The following cores seem available...
#1:  'CPU-Core (SSE2)'
#2:  'CPU-Core (SSE2)'
#3:  'CPU-Core (SSE2)'
#4:  'CPU-Core (SSE2)'
#5:  'CPU-Core (SSE2)'
#6:  'CPU-Core (SSE2)'
#7:  'CPU-Core (SSE2)'
#8:  'CPU-Core (SSE2)'
root@Debian:~/Downloads/cpyrit-cuda-0.4.0# 

but it does not see any GPU cores.

root@Debian:~/Downloads/cpyrit-cuda-0.4.0# python -c 'from cpyrit import 
_cpyrit_cuda'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name _cpyrit_cuda

So, i can not find any issue how to correct reinstall python module extensions.

Thank you

Original issue reported on code.google.com by Nuller...@gmail.com on 5 Aug 2014 at 11:26

GoogleCodeExporter commented 9 years ago
you didnt happen to mention what video card your trying to use ( so we all know 
it can be used ) and your trying this on an extra out-dated version of the code 
... in the log you provided, it states that it skipped rebuilding the driver, 
it must have already been there to have skipped it, but it doesnt tell us that 
it did actually build it successfully, either way the python import command 
failed because the file was not where it expected it to be ... for a reason 
hard to establish from what you've given us ... 

Original comment by shaneper...@gmail.com on 21 Aug 2014 at 7:19

GoogleCodeExporter commented 9 years ago
Yes, thank you. I have already fixed the problem: the code was out-dated, i 
updated it and it's ok.

Original comment by Nuller...@gmail.com on 21 Aug 2014 at 3:02