sxiii / pyrit

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

pyrit-0.3.0 + cpyrit-opencl-0.3.0 => The core 'OpenCL-Device 'ATI RV770'' has died unexpectedly #162

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. build and install pyrit-0.3.0
2. build and install cpyrit-opencl-0.3.0
3. run pyrit benchmark

What is the expected output? What do you see instead?
expected: results of benchmark
I see:
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 'ATI RV770':
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/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 'ATI RV770'' 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 'ATI RV770'' has died unexpectedly

What version of the product are you using? On what operating system?
pyrit-0.3.0, cpyrit-opencl-0.3.0, ubuntu 10.04 final

Please provide any additional information below.
AMD x2 5600+, HD 4850

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 'ATI RV770''
#2:  'CPU-Core (SSE2)'

Original issue reported on code.google.com by jang.th...@gmail.com on 10 Jun 2010 at 2:58

GoogleCodeExporter commented 8 years ago
SystemError: Failed to build kernel (CL_BUILD_PROGRAM_FAILURE):
-----> sh: .../bin/x86/clc: not found <-----

It looks like there is some problem with your installation of ATI SDK. Can you 
run any example from ATI SDK ?

Original comment by hazema...@gmail.com on 11 Jun 2010 at 10:32

GoogleCodeExporter commented 8 years ago
And one more thing - calpp core is much faster on ATI ( available in svn ). So 
it's probably a better choice :).

Original comment by hazema...@gmail.com on 11 Jun 2010 at 10:33

GoogleCodeExporter commented 8 years ago
ok I tried following:
1) Installed and builded pyrit from svn (revision 263)
2) I tried to build calpp (from SVN) unfortunately I get folowing:
###
/Downloads/pyrit_svn/cpyrit_calpp# python setup.py build
unavailable enviroment variable ATISTREAMSDKROOT
Traceback (most recent call last):
  File "setup.py", line 32, in <module>
    CALPP_INC_DIR = os.environ['ATISTREAMSDKROOT']
  File "/usr/lib/python2.6/UserDict.py", line 22, in __getitem__
    raise KeyError(key)
KeyError: 'ATISTREAMSDKROOT'
###
any ideas?

Original comment by jang.th...@gmail.com on 11 Jun 2010 at 10:50

GoogleCodeExporter commented 8 years ago
ok I reinstalled SDK (at least I think I already had SDK installed) following 
this guide: 
http://developer.amd.com/gpu/ATIStreamSDK/assets/ATI_Stream_SDK_Installation_Not
es.pdf
(page4)
and now I get this:
### too long can't even everything display here
cpyrit_calpp.cpp:167: error: âstruct CALDeviceâ has no member named 
âdev_progâ
_cpyrit_calpp.cpp:168: error: âstruct CALDeviceâ has no member named 
âdev_kernelâ
_cpyrit_calpp.cpp:169: error: âstruct CALDeviceâ has no member named 
âdev_kernelâ
_cpyrit_calpp.cpp:170: error: âstruct CALDeviceâ has no member named 
âdev_kernelâ
_cpyrit_calpp.cpp:171: error: âstruct CALDeviceâ has no member named 
âdev_kernelâ
_cpyrit_calpp.cpp:172: error: âstruct CALDeviceâ has no member named 
âdev_kernelâ
_cpyrit_calpp.cpp:173: error: âstruct CALDeviceâ has no member named 
âdev_kernelâ
_cpyrit_calpp.cpp:174: error: âstruct CALDeviceâ has no member named 
âdev_kernelâ
_cpyrit_calpp.cpp:176: error: âstruct CALDeviceâ has no member named 
âdev_queueâ
_cpyrit_calpp.cpp:176: error: âcalâ has not been declared
_cpyrit_calpp.cpp:176: error: âstruct CALDeviceâ has no member named 
âdev_contextâ
_cpyrit_calpp.cpp:177: error: âCAL_DEVICE_MAXRESOURCE2DHEIGHTâ was not 
declared in this scope
_cpyrit_calpp.cpp:177: error: expected primary-expression before â)â token
_cpyrit_calpp.cpp:178: error: expected type-specifier before âcalâ
_cpyrit_calpp.cpp:178: error: expected â)â before â::â token
_cpyrit_calpp.cpp:178: error: expected â{â before â::â token
_cpyrit_calpp.cpp:178: error: â::Errorâ has not been declared
_cpyrit_calpp.cpp:178: error: âeâ was not declared in this scope
_cpyrit_calpp.cpp:178: error: expected â;â before â)â token
_cpyrit_calpp.cpp: In function âvoid caldev_dealloc(CALDevice*)â:
_cpyrit_calpp.cpp:195: error: âstruct CALDeviceâ has no member named 
âdev_queueâ
_cpyrit_calpp.cpp:195: error: expected class-name before â(â token
_cpyrit_calpp.cpp:196: error: âstruct CALDeviceâ has no member named 
âdev_kernelâ
_cpyrit_calpp.cpp:196: error: expected class-name before â(â token
_cpyrit_calpp.cpp:197: error: âstruct CALDeviceâ has no member named 
âdev_progâ
_cpyrit_calpp.cpp:197: error: expected class-name before â(â token
_cpyrit_calpp.cpp:198: error: âstruct CALDeviceâ has no member named 
âdev_contextâ
_cpyrit_calpp.cpp:198: error: expected class-name before â(â token
_cpyrit_calpp.cpp: In function âPyObject* cpyrit_listDevices(PyObject*, 
PyObject*)â:
_cpyrit_calpp.cpp:209: error: âvectorâ is not a member of âstdâ
_cpyrit_calpp.cpp:209: error: âcalâ has not been declared
_cpyrit_calpp.cpp:209: error: âdevicesâ was not declared in this scope
_cpyrit_calpp.cpp:211: error: âcalContextâ was not declared in this scope
_cpyrit_calpp.cpp:211: error: âCAL_CONTEXT_DEVICESâ was not declared in this 
scope
_cpyrit_calpp.cpp:211: error: expected primary-expression before â)â token
_cpyrit_calpp.cpp:215: error: âCAL_DEVICE_TARGETâ was not declared in this 
scope
_cpyrit_calpp.cpp:215: error: expected primary-expression before â)â token
_cpyrit_calpp.cpp: At global scope:
_cpyrit_calpp.cpp:221: error: âcalâ was not declared in this scope
_cpyrit_calpp.cpp:221: error: wrong number of template arguments (1, should be 
2)
/usr/include/boost/array.hpp:44: error: provided for âtemplate<class T, 
unsigned int N> class boost::arrayâ
_cpyrit_calpp.cpp: In function âvoid copy_gpu_inbuffer(CALDevice*, const 
gpu_inbuffer*, int&, int)â:
_cpyrit_calpp.cpp:223: error: âCALuintâ was not declared in this scope
_cpyrit_calpp.cpp:223: error: expected â;â before âpitchâ
_cpyrit_calpp.cpp:228: error: âstruct CALDeviceâ has no member named 
âdev_queueâ
_cpyrit_calpp.cpp:228: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp:228: error: âpitchâ was not declared in this scope
_cpyrit_calpp.cpp:232: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:233: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:234: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:235: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:236: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:244: error: âstruct CALDeviceâ has no member named 
âdev_queueâ
_cpyrit_calpp.cpp:244: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp: At global scope:
_cpyrit_calpp.cpp:248: error: âcalâ was not declared in this scope
_cpyrit_calpp.cpp:248: error: wrong number of template arguments (1, should be 
2)
/usr/include/boost/array.hpp:44: error: provided for âtemplate<class T, 
unsigned int N> class boost::arrayâ
_cpyrit_calpp.cpp: In function âvoid copy_gpu_outbuffer(CALDevice*, 
gpu_outbuffer*, int&, int)â:
_cpyrit_calpp.cpp:250: error: âCALuintâ was not declared in this scope
_cpyrit_calpp.cpp:250: error: expected â;â before âpitchâ
_cpyrit_calpp.cpp:255: error: âstruct CALDeviceâ has no member named 
âdev_queueâ
_cpyrit_calpp.cpp:255: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp:255: error: âpitchâ was not declared in this scope
_cpyrit_calpp.cpp:259: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:260: error: âmemcpyâ is not a member of âstdâ
_cpyrit_calpp.cpp:266: error: âstruct CALDeviceâ has no member named 
âdev_queueâ
_cpyrit_calpp.cpp:266: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp: In function âvoid start_kernel(CALDevice*, int)â:
_cpyrit_calpp.cpp:281: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp:281: error: âcalâ has not been declared
_cpyrit_calpp.cpp:281: error: âstruct CALDeviceâ has no member named 
âdev_contextâ
_cpyrit_calpp.cpp:281: error: âCAL_FORMAT_UINT_4â was not declared in this 
scope
_cpyrit_calpp.cpp:283: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp:283: error: âcalâ has not been declared
_cpyrit_calpp.cpp:283: error: âstruct CALDeviceâ has no member named 
âdev_contextâ
_cpyrit_calpp.cpp:283: error: âCAL_FORMAT_UINT_4â was not declared in this 
scope
_cpyrit_calpp.cpp:288: error: âstruct CALDeviceâ has no member named 
âdev_kernelâ
_cpyrit_calpp.cpp:288: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp:290: error: âstruct CALDeviceâ has no member named 
âdev_kernelâ
_cpyrit_calpp.cpp:290: error: invalid types âint[int]â for array subscript
_cpyrit_calpp.cpp:292: error: âstruct CALDeviceâ has no member named 
âdev_queueâ
_cpyrit_calpp.cpp:292: error: âstruct CALDeviceâ has no member named 
âdev_kernelâ
_cpyrit_calpp.cpp:292: error: âcalâ has not been declared
_cpyrit_calpp.cpp:292: error: âstruct WorkItemâ has no member named âeventâ
_cpyrit_calpp.cpp:293: error: âstruct CALDeviceâ has no member named 
âdev_queueâ
_cpyrit_calpp.cpp:294: error: âstruct CALDeviceâ has no member named 
âdev_queueâ
_cpyrit_calpp.cpp:294: error: âstruct WorkItemâ has no member named âeventâ
_cpyrit_calpp.cpp: In function âPyObject* cpyrit_send(CALDevice*, PyObject*)â:
_cpyrit_calpp.cpp:406: error: expected type-specifier before âcalâ
_cpyrit_calpp.cpp:406: error: expected â)â before â::â token
_cpyrit_calpp.cpp:406: error: expected â{â before â::â token
_cpyrit_calpp.cpp:406: error: â::Errorâ has not been declared
_cpyrit_calpp.cpp:406: error: âeâ was not declared in this scope
_cpyrit_calpp.cpp:406: error: expected â;â before â)â token
_cpyrit_calpp.cpp: In function âPyObject* cpyrit_receive(CALDevice*, 
PyObject*)â:
_cpyrit_calpp.cpp:432: error: âstruct CALDeviceâ has no member named 
âdev_queueâ
_cpyrit_calpp.cpp:432: error: âstruct WorkItemâ has no member named âeventâ
_cpyrit_calpp.cpp:433: error: âstruct CALDeviceâ has no member named 
âdev_queueâ
_cpyrit_calpp.cpp:433: error: âstruct WorkItemâ has no member named âeventâ
_cpyrit_calpp.cpp:439: error: expected type-specifier before âcalâ
_cpyrit_calpp.cpp:439: error: expected â)â before â::â token
_cpyrit_calpp.cpp:439: error: expected â{â before â::â token
_cpyrit_calpp.cpp:439: error: â::Errorâ has not been declared
_cpyrit_calpp.cpp:439: error: âeâ was not declared in this scope
_cpyrit_calpp.cpp:439: error: expected â;â before â)â token
_cpyrit_calpp.cpp: In function âPyObject* cpyrit_sizes(CALDevice*, 
PyObject*)â:
_cpyrit_calpp.cpp:473: error: âcalâ has not been declared
_cpyrit_calpp.cpp:473: error: expected â;â before âdeviceâ
_cpyrit_calpp.cpp:477: error: âdeviceâ was not declared in this scope
_cpyrit_calpp.cpp:477: error: âstruct CALDeviceâ has no member named 
âdev_contextâ
_cpyrit_calpp.cpp:477: error: âCAL_CONTEXT_DEVICESâ was not declared in this 
scope
_cpyrit_calpp.cpp:477: error: expected primary-expression before â)â token
_cpyrit_calpp.cpp:478: error: âCAL_DEVICE_TARGETâ was not declared in this 
scope
_cpyrit_calpp.cpp:478: error: expected primary-expression before â)â token
_cpyrit_calpp.cpp:479: error: âCAL_DEVICE_NUMBEROFSIMDâ was not declared in 
this scope
_cpyrit_calpp.cpp:479: error: expected primary-expression before â)â token
_cpyrit_calpp.cpp:481: error: âCAL_TARGET_CYPRESSâ was not declared in this 
scope
_cpyrit_calpp.cpp: In function âvoid init_cpyrit_calpp()â:
_cpyrit_calpp.cpp:568: error: âcalâ has not been declared
_cpyrit_calpp.cpp:570: error: âcalContextâ was not declared in this scope
_cpyrit_calpp.cpp:570: error: âcalâ has not been declared
_cpyrit_calpp.cpp:570: error: âCAL_DEVICE_TYPE_GPUâ was not declared in this 
scope
_cpyrit_calpp.cpp:571: error: âCAL_CONTEXT_DEVICESâ was not declared in this 
scope
_cpyrit_calpp.cpp:571: error: expected primary-expression before â)â token
error: command 'gcc' failed with exit status 1
###

Original comment by jang.th...@gmail.com on 11 Jun 2010 at 11:05

GoogleCodeExporter commented 8 years ago
btw user "jokesareonyou" experienced similar problems:
http://code.google.com/p/pyrit/wiki/Installation (Comment by jokesareonyou, May 
21, 2010)

Original comment by jang.th...@gmail.com on 11 Jun 2010 at 11:11

GoogleCodeExporter commented 8 years ago
well cpp is not working for me however I finally at least managed to get 
cpyrit-opencl rev 263 working:
#

n/Downloads/pyrit_svn/cpyrit_opencl# pyrit list_cores
Pyrit 0.3.1-dev (svn r263) (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 'ATI RV770''
#2:  'CPU-Core (SSE2)'
root@jan-desktop:/home/jan/Downloads/pyrit_svn/cpyrit_opencl# pyrit benchmark
Pyrit 0.3.1-dev (svn r263) (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Running benchmark (15429.6 PMKs/s)... -

Computed 15429.63 PMKs/s total.
#1: 'OpenCL-Device 'ATI RV770'': 16210.1 PMKs/s (RTT 2.8)
#2: 'CPU-Core (SSE2)': 314.5 PMKs/s (RTT 3.0)

Original comment by jang.th...@gmail.com on 11 Jun 2010 at 11:16

GoogleCodeExporter commented 8 years ago
For svn version of calpp core you need to use svn version of CAL++ library ( 
http://calpp.svn.sourceforge.net/viewvc/calpp/trunk.tar.gz?view=tar ). It must 
be installed and working correctly ( working CAL++ examples ). 

Original comment by hazema...@gmail.com on 11 Jun 2010 at 7:45

GoogleCodeExporter commented 8 years ago
nevertheless thank you very much for your assistance.
Summary:
if you get "The core 'OpenCL-Device 'ATI RV770'' has died unexpectedly" verify 
that you've ATi SDK installed properly (see above).
I'm using latest linux x86 driver (10.5) and ATi SDK 2.1 and it works fine so 
far...
thanks again

Original comment by jang.th...@gmail.com on 11 Jun 2010 at 10:24

GoogleCodeExporter commented 8 years ago
an one last comment you've to do following after every reboot:
###
You must have root permissions to install this SDK.
1. Untar the SDK to a location of your choice.
For 32-bit systems, unzip the .tgz file by entering
tar -xvzf ati-stream-sdk-v2.1-lnx32.tgz.
For 64-bit systems, unzip the .tgz file by entering
tar -xvzf ati-stream-sdk-v2.1-lnx64.tgz.
#well especially starting here
2. Set the environment variable ATISTREAMSDKROOT:
export ATISTREAMSDKROOT=<location where sdk is extracted>
3. Set the environment variable ATISTREAMSDKSAMPLESROOT:
export ATISTREAMSDKSAMPLESROOT=<location where sdk is extracted>
4. Set the library path LD_LIBRARY_PATH.
– For 32-bit systems:
export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86:$LD_LIBRARY_PATH
– For 64-bit systems:
export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86_64:$LD_LIBRARY_PATH
– For the 32-bit SDK to run on 64-bit systems:
export 
LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86:$ATISTREAMSDKROOT/lib/x86_64:$LD_LIBRA
RY_PATH
5. You must register the OpenCL ICD; otherwise, samples and other applications 
will fail to
execute if this is not done. To register the ICD, go to the root directory and 
enter:
tar xfz icd-registration.tgz
# that about it, source: 
http://developer.amd.com/gpu/ATIStreamSDK/assets/ATI_Stream_SDK_Installation_Not
es.pdf (page4)

Original comment by jang.th...@gmail.com on 11 Jun 2010 at 11:04