Closed GoogleCodeExporter closed 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
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
afaics the build is complete. does it work?
Original comment by lukas.l...@gmail.com
on 28 Dec 2010 at 4:08
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
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
[deleted comment]
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
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
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
closed
Original comment by lukas.l...@gmail.com
on 28 Dec 2010 at 5:34
Original issue reported on code.google.com by
Keylogge...@gmail.com
on 28 Dec 2010 at 2:49