i’ve been trying to get PyCuda working with CUDA 2.3a on my Mac OS X 10.5.8. So far so good until i hit into a snag which i suspect is related to CU_DEVICE_ATTRIBUTE_CLOCK_RATE
The issue stems from the verification program of PyCuda a.k.a “test_driver.py” and part of its initialization is verifying all of the device’s attributes but when i hit into the verification of CLOCK_RATE (this name is the name used in the binding to CU_DEVICE_ATTRIBUTE_CLOCK_RATE on CUDA 2.3a) the program exits and when i removed this name from the verification process the verification succeeded.
The output from the pycuda verification process is this when i hit into CLOCK_RATE:
[indent]Traceback (most recent call last):
File “test_driver.py”, line 15, in
gen = pycuda.autoinit.device.get_attributes()
File “/Library/Python/2.5/site-packages/pycuda-0.93-py2.5-macosx-10.5-i386.egg/pycuda/driver.py”, line 50, in device_get_attributes
print getattr(device_attribute,i), dev.get_attribute(getattr(device_attribute, i))
pycuda._driver.LogicError: cuDeviceGetAttribute failed: not found
after removing the CLOCK_RATE from the pycuda package on my Mac OS via changing the file “driver.py” at /Library/Python/2.5/site-packages/pycuda-0.93-py2.5-macosx-10.5-i386.egg/pycuda, it became like this
[indent] 46 def _add_functionality():
47 def device_get_attributes(dev):
48 del device_attribute.CLOCK_RATE
[/indent] and re-running the verification of PyCuda succeeded.
Next, i went to explore the SDK sample program “deviceQueryDrv” (i chose this because it verified the CU_DEVICE_ATTRIBUTE_CLOCK_RATE) it ran fine.
I’m kinda wondering if anyone has experienced this issue previously and know what’s the problem?
Thanks in advance,