When running dump_properties.py on my MacBook with a 9400M I get the
following error:
pycuda._driver.LogicError: cuDeviceGetAttribute failed: not found
dump_properties.py works fine on my WinXP machine with a 9800GT.
Here's the error:
python dump_properties.py
1 device(s) found.
Device #0: GeForce 9400M
Compute Capability: 1.1
Total Memory: 259776 KB
Traceback (most recent call last):
File "dump_properties.py", line 14, in <module>
for att, value in dev.get_attributes().iteritems()]
File
"/Library/Python/2.5/site-packages/pycuda-0.94beta-py2.5-macosx-10.5-i386.egg/pycuda/driver.py",
line 51, in device_get_attributes
for att in dir(device_attribute)
File
"/Library/Python/2.5/site-packages/pycuda-0.94beta-py2.5-macosx-10.5-i386.egg/pycuda/driver.py",
line 52, in <genexpr>
if att[0].isupper())
pycuda._driver.LogicError: cuDeviceGetAttribute failed: not found
And if I step through the code in an interactive python shell...
ian-ozsvalds-macbook:examples ian$ python
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycuda.driver as drv
>>> drv.init()
>>> print "%d device(s) found." % drv.Device.count()
1 device(s) found.
>>> dev=drv.Device(0)
>>> print "Device #%d: %s" % (0, dev.name())
Device #0: GeForce 9400M
>>> dev.get_attributes()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Python/2.5/site-packages/pycuda-0.94beta-py2.5-macosx-10.5-i386.egg/pycuda/driver.py",
line 51, in device_get_attributes
for att in dir(device_attribute)
File
"/Library/Python/2.5/site-packages/pycuda-0.94beta-py2.5-macosx-10.5-i386.egg/pycuda/driver.py",
line 52, in <genexpr>
if att[0].isupper())
pycuda._driver.LogicError: cuDeviceGetAttribute failed: not found
>>> dir(dev)
['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__getattr__',
'__getattribute__', '__hash__', '__init__', '__module__', '__ne__',
'__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__',
'__str__', '__weakref__', 'compute_capability', 'count', 'get_attribute',
'get_attributes', 'make_context', 'name', 'total_memory']
This isn't stopping me, I'm just flagging it as an oddity. Let me know if
there's anything I should debug?
Ian.
--
Ian Ozsvald (Professional Screencaster)
[email protected]
http://ProCasts.co.uk/examples.html
http://TheScreencastingHandbook.com
http://IanOzsvald.com + http://ShowMeDo.com
http://twitter.com/ianozsvald
_______________________________________________
PyCUDA mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net