Bitcoin Forum

Other => Beginners & Help => Topic started by: plarkplark on July 03, 2011, 07:17:42 AM



Title: Debian+poclbm+ATI+SDK - Fixing OPENCL errors while downgrading SDK 2.2 to 2.1
Post by: plarkplark on July 03, 2011, 07:17:42 AM
I downgraded SDK 2.2 to 2.1, and got this

Code:
Traceback (most recent call last):
  File "./poclbm.py", line 3, in <module>
    import pyopencl as cl
  File "/usr/local/lib/python2.6/dist-packages/pyopencl-0.92-py2.6-linux-x86_64.egg/pyopencl/__init__.py", line 3, in <module>
    import pyopencl._cl as _cl
ImportError: /opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/libOpenCL.so: version `OPENCL_1.1' not found (required by /usr/local/lib/python2.6/dist-packages/pyopencl-0.92-py2.6-linux-x86_64.egg/pyopencl/_cl.so)

There is a topic on the forum, but I can't reply there.

Anyway, this is the solution: You need to run a make in the SDK folder,

Code:
cd /opt/ati-stream-sdk-v2.1-lnx64/
make
Now you can rebuild pyopencl

Code:
cd pyopencl-0.92
rm siteconf.py
./configure.py --cl-inc-dir=/opt/ati-stream-sdk-v2.1-lnx64/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64
make
sudo make install


Running version 2.1 takes only 1% CPU, while version 2.2 takes 100%. This saves my 25% (50watt) of power for every mining node.

Hope this helps somebody.