n3wm4rk / pyrit

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

cpyrit_cuda setup.py build error / no GPU #344

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 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?

running build
running build_ext
Compiling CUDA module using nvcc 4.0, 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
/home/gcc4/gcc: No such file or directory
Traceback (most recent call last):
  File "setup.py", line 175, in <module>
    setup(**setup_args)
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 100, in run
    subprocess.check_call(nvcc_cmd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 504, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/usr/local/cuda/bin/nvcc -m32 
--host-compilation C -Xcompiler "-fPIC" --ptx ./_cpyrit_cudakernel.cu' returned 
non-zero exit status 1

What version of the product are you using? On what operating system?
pyrit-0.4.0
Nvidia GeForce GTX 260M

Please provide any additional information below.
Pyrit is only showing my normal CPU cores no GPU.

Original issue reported on code.google.com by yout...@borras.de on 27 Aug 2011 at 10:41

GoogleCodeExporter commented 9 years ago
Your environment is messed up: GCC points to /home/gcc4/gcc, which does not 
exists. As the error says.

Original comment by lukas.l...@gmail.com on 27 Aug 2011 at 10:44

GoogleCodeExporter commented 9 years ago
Can you tell me how to fix this?

Original comment by yout...@borras.de on 27 Aug 2011 at 11:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Oh I have just fixed the problem with trying around a bit.
Now Pyrit is showing my GPU.
Thank you

Original comment by yout...@borras.de on 27 Aug 2011 at 11:57