fekriomar / pyrit

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

Pyrit + Radeon HD 5870 issues #225

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. pyrit benchmark

What is the expected output? What do you see instead?
When i run 'pyrit benchmark' i get:

pyrit benchmark

Pyrit 0.3.0 (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Calibrating... Exception in thread OpenCL-Device 'Cypress':
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 111, in run
    self._testComputeFunction(101)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 100, in _testComputeFunction
    self.solve(Core.TV_ESSID, [Core.TV_PW] * i))):
SystemError: Failed to build kernel (CL_BUILD_PROGRAM_FAILURE):
sh: /bin/x86_64/clc: not found

Exception in thread CPU-Core (SSE2):
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 108, in run
    essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 552, in _gather
    self._check_cores()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 410, in _check_cores
    raise SystemError("The core '%s' has died unexpectedly" % core)
SystemError: The core 'OpenCL-Device 'Cypress'' has died unexpectedly

Exception in thread CPU-Core (SSE2):
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 108, in run
    essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 552, in _gather
    self._check_cores()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 410, in _check_cores
    raise SystemError("The core '%s' has died unexpectedly" % core)
SystemError: The core 'OpenCL-Device 'Cypress'' has died unexpectedly

Exception in thread CPU-Core (SSE2):
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 108, in run
    essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 552, in _gather
    self._check_cores()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 410, in _check_cores
    raise SystemError("The core '%s' has died unexpectedly" % core)
SystemError: The core 'OpenCL-Device 'Cypress'' has died unexpectedly

Exception in thread CPU-Core (SSE2):
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 108, in run
    essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 552, in _gather
    self._check_cores()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 410, in _check_cores
    raise SystemError("The core '%s' has died unexpectedly" % core)
SystemError: The core 'OpenCL-Device 'Cypress'' has died unexpectedly

Exception in thread CPU-Core (SSE2):
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 108, in run
    essid, pwlist = self.queue._gather(self.buffersize, timeout=0.5)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 552, in _gather
    self._check_cores()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 410, in _check_cores
    raise SystemError("The core '%s' has died unexpectedly" % core)
SystemError: The core 'OpenCL-Device 'Cypress'' has died unexpectedly

Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 106, in initFromArgv
    func(self, **options)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 803, in benchmark
    cp.enqueue('foo', ['barbarbar'] * 1500)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 484, in enqueue
    self._check_cores()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 410, in _check_cores
    raise SystemError("The core '%s' has died unexpectedly" % core)
SystemError: The core 'OpenCL-Device 'Cypress'' has died unexpectedly

And here is the output for 'pyrit  list_cores':

pyrit list_cores

Pyrit 0.3.0 (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

The following cores seem available...
#1:  'OpenCL-Device 'Cypress''
#2:  'CPU-Core (SSE2)'
#3:  'CPU-Core (SSE2)'
#4:  'CPU-Core (SSE2)'
#5:  'CPU-Core (SSE2)'
#6:  'CPU-Core (SSE2)'
#7:  'Network-Clients'

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

OS: Ubuntu 10.10 Pyrit: 0.3.0 

I (think i) have installed successfully:

ati-driver-installer-10-12-x86.x86_64.run  
cpyrit-opencl-0.3.0.tar.gz
ati-opencl-dev_2.1.deb                     
ati-opencl-runtime_2.1_amd64.deb           
pyrit-0.3.0.tar.gz

Original issue reported on code.google.com by Keylogge...@gmail.com on 28 Dec 2010 at 2:49

GoogleCodeExporter commented 9 years ago
The top-level error comes directly from the AMD-driver:

"SystemError: Failed to build kernel (CL_BUILD_PROGRAM_FAILURE): sh: 
/bin/x86_64/clc: not found"

clc is AMD's OpenCL-compiler. It is part of the OpenCL driver package. Did you 
install that correctly?

Original comment by lukas.l...@gmail.com on 28 Dec 2010 at 3:21

GoogleCodeExporter commented 9 years ago
I tried to reinstall the opencl package and this is what i got:

middle@The-Beast:~/Downloads/cpyrit-opencl-0.3.0$ ls
COPYING               _cpyrit_opencl.c  PKG-INFO  setup.py
_cpyrit_oclkernel.cl  _cpyrit_opencl.h  README
middle@The-Beast:~/Downloads/cpyrit-opencl-0.3.0$ ./setup.py build
The headers required to build the OpenCL-kernel were not found. Trying to 
continue anyway...
running build
running build_ext
Building modules...
building 'cpyrit._cpyrit_opencl' extension
creating build
creating build/temp.linux-x86_64-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c _cpyrit_opencl.c -o 
build/temp.linux-x86_64-2.6/_cpyrit_opencl.o -DVERSION="0.3.0"
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/cpyrit
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
build/temp.linux-x86_64-2.6/_cpyrit_opencl.o -lssl -lOpenCL -lz -o 
build/lib.linux-x86_64-2.6/cpyrit/_cpyrit_opencl.so
middle@The-Beast:~/Downloads/cpyrit-opencl-0.3.0$ sudo ./setup.py install
[sudo] password for middle: 
The headers required to build the OpenCL-kernel were not found. Trying to 
continue anyway...
running install
running build
running build_ext
Building modules...
running install_lib
copying build/lib.linux-x86_64-2.6/cpyrit/_cpyrit_opencl.so -> 
/usr/local/lib/python2.6/dist-packages/cpyrit
running install_egg_info
Removing /usr/local/lib/python2.6/dist-packages/cpyrit_opencl-0.3.0.egg-info
Writing /usr/local/lib/python2.6/dist-packages/cpyrit_opencl-0.3.0.egg-info
middle@The-Beast:~/Downloads/cpyrit-opencl-0.3.0$ 

I believe that is also what i got first time around. Is there any other way to 
test if this has been installed correctly?

And thanks a lot for your fast response!

Original comment by Keylogge...@gmail.com on 28 Dec 2010 at 3:46

GoogleCodeExporter commented 9 years ago
afaics the build is complete. does it work?

Original comment by lukas.l...@gmail.com on 28 Dec 2010 at 4:08

GoogleCodeExporter commented 9 years ago
Alas no:

middle@The-Beast:~$ pyrit benchmark
Pyrit 0.3.0 (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Calibrating... Exception in thread OpenCL-Device 'Cypress':
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 111, in run
    self._testComputeFunction(101)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 100, in _testComputeFunction
    self.solve(Core.TV_ESSID, [Core.TV_PW] * i))):
SystemError: Failed to build kernel (CL_BUILD_PROGRAM_FAILURE):
sh: /bin/x86_64/clc: not found

Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 106, in initFromArgv
    func(self, **options)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 804, in benchmark
    cp.dequeue(block=False)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 511, in dequeue
    self._check_cores()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/cpyrit.py", line 410, in _check_cores
    raise SystemError("The core '%s' has died unexpectedly" % core)
SystemError: The core 'OpenCL-Device 'Cypress'' has died unexpectedly

Any other ideas? I did not un-install it (I'm not too sure how) before 
re-installing it; if that would have an effect on it. 

Cheers

Original comment by Keylogge...@gmail.com on 28 Dec 2010 at 4:16

GoogleCodeExporter commented 9 years ago
sorry, my comment #3 was misleading. The build-phase of the OpenCL-plugin is in 
fact only part of the whole show as (by definition of OpenCL) the real GPU-code 
gets compiled on the target-platform at runtime. That's what you need clc for.

clc should be come with the opencl-runtime or the catalyst drivers. You need to 
find out where ati-opencl-runtime_2.1_amd64.deb install clc to (probably 
somewhere in /usr/local) and symlink it to /bin/x86_64/

Original comment by lukas.l...@gmail.com on 28 Dec 2010 at 4:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
cp -l /usr/local/bin/x86/clc /bin/x86_64/
cp: cannot create link `/bin/x86_64/': No such file or directory

Any ideas?

Original comment by Keylogge...@gmail.com on 28 Dec 2010 at 4:58

GoogleCodeExporter commented 9 years ago
uhm, create the directory /bin/x86_64 ? :-/

maybe the lookup-path for clc can also be changed with amd's opencl-runtime, i 
don't know that.

Original comment by lukas.l...@gmail.com on 28 Dec 2010 at 5:02

GoogleCodeExporter commented 9 years ago
Running benchmark (48694.5 PMKs/s)... / 

I rebooted and it works now!

Computed 49590.93 PMKs/s total.
#1: 'OpenCL-Device 'Cypress'': 43886.5 PMKs/s (RTT 1.4)
#2: 'CPU-Core (SSE2)': 736.6 PMKs/s (RTT 2.9)
#3: 'CPU-Core (SSE2)': 735.9 PMKs/s (RTT 2.9)
#4: 'CPU-Core (SSE2)': 736.9 PMKs/s (RTT 2.9)
#5: 'CPU-Core (SSE2)': 735.1 PMKs/s (RTT 2.9)
#6: 'CPU-Core (SSE2)': 733.8 PMKs/s (RTT 2.8)

Original comment by Keylogge...@gmail.com on 28 Dec 2010 at 5:32

GoogleCodeExporter commented 9 years ago
closed

Original comment by lukas.l...@gmail.com on 28 Dec 2010 at 5:34