-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'binaries' was not found as a program info attribute or as a kernel name #40
Comments
A very similar error here as well on a new computer with gentoo linux and a 9500gt. uscentral.btcguild.com:8332 25/08/2011 22:42:47, LP connected to uscentral.btcguild.com:8332 |
Same here, using an Amazon EC2 GPU Cluster instance (Tesla M2050): python poclbm.py -v -w 256 --device 0 http://tydel@tydel.com_0:XXXXXX@deepbit.net:833210/09/2011 14:17:56, Setting server (tydel@tydel.com_0 @ deepbit.net:8332) : Considering profile 'compute_20' for gpu='sm_20' in 'cuModuleLoadDataEx_4' Any ideas? |
I came across this issue and decided to take a look at it. The main problem above is pyOpenCL not exporting the info class variables; see here and here. Changing line 179 in BitcoinMiner.py to: `````` binaryW.write(self.miner.get_info(cl.program_info.BINARIES)[0]``` However, while that is easily remedied, it exposes bigger problems. These problems may be inherent only to my setup, but if you get something similar (or not) please tell me :) The main big problem is a type incompatibility between pyOpenCL and the boost library providing the bindings to python concerning the pyopencl.Program.build() method. build's options argument (or more precicely, _build which is called from build) needs to be a string type. However, pyopencl.Program.build converts strings to lists. I modified line 465 in pyopencl/_init_.py to:
|
Also, fix m0mchil#40.
Updated MtRed conf information
$ ./poclbm.py http://user:pass@pit.deepbit.net:8332
26/07/2011 19:51:20, Setting server (user @ pit.deepbit.net:8332)
Exception in thread Thread-1:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 530, in *bootstrap_inner
self.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 483, in run
self.__target(_self.__args, _self.__kwargs)
File "/Volumes/Daten/Downloads/poclbm/BitcoinMiner.py", line 63, in mining_thread
self.load_kernel()
File "/Volumes/Daten/Downloads/poclbm/BitcoinMiner.py", line 179, in load_kernel
binaryW.write(self.miner.binaries[0])
File "/Library/Python/2.7/site-packages/pyopencl-2011.1.2-py2.7-macosx-10.7-intel.egg/pyopencl/__init.py", line 419, in getattr
"info attribute or as a kernel name" % attr)
AttributeError: 'binaries' was not found as a program info attribute or as a kernel name
pit.deepbit.net:8332 26/07/2011 19:51:21, LP connected to pit.deepbit.net:8332
on osx as well as linux..
The text was updated successfully, but these errors were encountered: