rdavydov / pyrit

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

cpyrit_cuda 'host-compilation' nvcc error / no GPU #303

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Fresh install of ubutnu 
2. Fresh install of Cuda-toolkit
3. Pyrit cuda install

Errors in Cuda install. 

What is the expected output? What do you see instead?

grantsales@ubuntu:~/Hacks/pyrit_svn/cpyrit_cuda$ sudo python setup.py build
running build
running build_ext
Compiling CUDA module using nvcc 3.2, V0.2.1221...
Executing '/usr/local/cuda/bin/nvcc -m32 --host-compilation C -Xcompiler 
"-fPIC" --ptx ./_cpyrit_cudakernel.cu'
nvcc warning : option 'host-compilation' has been deprecated and is ignored
Building modules...
building 'cpyrit._cpyrit_cuda' extension
creating build
creating build/temp.linux-i686-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/local/cuda/include -I/usr/include/python2.6 -c 
_cpyrit_cuda.c -o build/temp.linux-i686-2.6/_cpyrit_cuda.o -Wall 
-fno-strict-aliasing -DVERSION="0.4.1-dev (svn r308)"
creating build/lib.linux-i686-2.6
creating build/lib.linux-i686-2.6/cpyrit
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
build/temp.linux-i686-2.6/_cpyrit_cuda.o -lcrypto -lcuda -lz -o 
build/lib.linux-i686-2.6/cpyrit/_cpyrit_cuda.so

What version of the product are you using? On what operating system?

Pyrit SVN r308
Ubuntu 10.04 32 bit desktop (2.6.32-32-generic)
Cuda Toolkit 3.2.16 32 bit
Nvidia Drivers 3.2 32 bit
Asus GTX 560TI

Please provide any additional information below.

pyrit will only show my two cpu cores no GPU.

i had to install the nvidia dev drivers with the following command
sudo sh devdriver_3.2_linux_32_260.19.26.run -k $(uname -r)

I think I am missing a utility that the installer is looking for just not sure 
what to install or upgrade. Could also be an issue with the newer svn version. 
I'll try rolling back to 4.0 and see if that works. 

Original issue reported on code.google.com by GrantWSa...@gmail.com on 29 Apr 2011 at 7:13

GoogleCodeExporter commented 8 years ago
This turned out to be a driver issue. 

The standard Nvidia cuda driver for Ubuntu 10.04 was unable to find "nvidia.ko" 
but was still able to be installed with a work around. This work around is the 
error. 

Downloading the new 270 driver and installed without the nvidia.ko error and I 
was also able to install nvidia cuda toolkit 3.2 without any errors. Pyrit was 
then able to work. However pyrit still shows the nvcc warning but installed ok. 
GPU is now able to be seen by pyrit. 

I think this can be closed. 

I can post a link to the driver download if you'd like. 

Version: 270.41.06 Certified
Release Date:2011.04.20
Operating System:Linux
Language:English (U.S.)
File Size:29.1 MB 

Original comment by GrantWSa...@gmail.com on 5 May 2011 at 12:03

GoogleCodeExporter commented 8 years ago

Original comment by lukas.l...@gmail.com on 23 May 2011 at 9:13