Bitcoin Forum
December 14, 2024, 05:33:51 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Debian+poclbm+ATI+SDK - Fixing OPENCL errors while downgrading SDK 2.2 to 2.1  (Read 1499 times)
plarkplark (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
July 03, 2011, 07:17:42 AM
 #1

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!