I attempted to get DemoMetaCodepy.py to run.  I get a traceback.

$ python DemoMetaCodepy.py
Traceback (most recent call last):
  File "DemoMetaCodepy.py", line 25, in <module>
    from codepy.cgen.cuda import CudaGlobal
ImportError: No module named cuda

In ipython,  help(codepy.cgen.cuda) shows

Help on module cgen.cuda in cgen:

NAME
    cgen.cuda

FILE
    /usr/local/lib/python2.7/dist-packages/cgen/cuda.py

CLASSES
    cgen.DeclSpecifier(cgen.NestedDeclarator)
        CudaConstant
        CudaDevice
        CudaGlobal
        CudaShared

Contents of /usr/local/lib/python2.7/dist-packages/cgen/cuda.py

from __future__ import division

from cgen import DeclSpecifier

class CudaGlobal(DeclSpecifier):
    def __init__(self, subdecl):
        DeclSpecifier.__init__(self, subdecl, "__global__")

class CudaDevice(DeclSpecifier):
    def __init__(self, subdecl):
        DeclSpecifier.__init__(self, subdecl, "__device__")

class CudaShared(DeclSpecifier):
    def __init__(self, subdecl):
        DeclSpecifier.__init__(self, subdecl, "__shared__")

class CudaConstant(DeclSpecifier):
    def __init__(self, subdecl):
        DeclSpecifier.__init__(self, subdecl, "__constant__")


There is a directory codepy/cgen, but there is no cuda.py
There is a codepy/cuda.py, but it does not have class CudaGlobal in it.

Any ideas on where to go from here?
TIA

-Bruce

P.S.  PyCUDA looks like a very interesting package -- it will be fun to
start to accelerate some of my code.
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to