Hi all:
After suffering though the linkage problems in the CUDA sdk and the MacPorts boost and fixing that stuff with help from this mailing list, I've run into another roadblock. When I run test_driver.py I get this error message:

$ python2.5 test_driver.py
Traceback (most recent call last):
  File "test_driver.py", line 25, in <module>
    assert isinstance(pycuda.autoinit.device.get_attributes(), dict)
File "/opt/local/lib/python2.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 "/opt/local/lib/python2.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


I have verified that the CUDA installation is working, because the NVIDIA sample apps work. The NVIDIA deviceQuery program gives this output:
CUDA Device Query (Runtime API) version (CUDART static linking)
There is 1 device supporting CUDA

Device 0: "GeForce 9400M"
  CUDA Driver Version:                           2.30
  CUDA Runtime Version:                          2.30
  CUDA Capability Major revision number:         1
  CUDA Capability Minor revision number:         1
  Total amount of global memory:                 266010624 bytes
  Number of multiprocessors:                     2
  Number of cores:                               16
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       16384 bytes
  Total number of registers available per block: 8192
  Warp size:                                     32
  Maximum number of threads per block:           512
  Maximum sizes of each dimension of a block:    512 x 512 x 64
  Maximum sizes of each dimension of a grid:     65535 x 65535 x 1
  Maximum memory pitch:                          262144 bytes
  Texture alignment:                             256 bytes
  Clock rate:                                    0.00 GHz
  Concurrent copy and execution:                 No
  Run time limit on kernels:                     Yes
  Integrated:                                    Yes
  Support host page-locked memory mapping:       Yes
Compute mode: Default (multiple host threads can use this device simultaneously)

Test PASSED

Press ENTER to exit...

One potential problem is that I installed the latest CUDA package, 2.3. Does PyCUDA work with 2.3? The documentation implies that it will. Should I downgrade to CUDA Driver 2.2? How do I uninstall the 2.3 package?

I'm not sure what else to try at this point. Any ideas?
Thanks,
-Aaron


_______________________________________________
PyCUDA mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to