cudarray icon indicating copy to clipboard operation
cudarray copied to clipboard

Install problem with Cython

Open subercui opened this issue 9 years ago • 12 comments

I tried Cython 0.21, 0.22, 0.23 and got the same error when python setup install '''

......

cudarray/wrap/cudnn.pyx:45:32: Cannot convert Python object to 'float *'

Error compiling Cython file:

... float_ptr(poolout))

def bprop(self, ArrayData imgs, ArrayData poolout, ArrayData poolout_d,
          ArrayData imgs_d):
    self.ptr.bprop(
        <const float *> imgs.dev_ptr,
       ^

cudarray/wrap/cudnn.pyx:50:12: Python objects cannot be cast to pointers of primitive types

Error compiling Cython file:

...

def bprop(self, ArrayData imgs, ArrayData poolout, ArrayData poolout_d,
          ArrayData imgs_d):
    self.ptr.bprop(
        <const float *> imgs.dev_ptr,
        <const float *> poolout.dev_ptr,
       ^

cudarray/wrap/cudnn.pyx:51:12: Python objects cannot be cast to pointers of primitive types

Error compiling Cython file:

... def bprop(self, ArrayData imgs, ArrayData poolout, ArrayData poolout_d, ArrayData imgs_d): self.ptr.bprop( <const float *> imgs.dev_ptr, <const float *> poolout.dev_ptr, <const float *> poolout_d.dev_ptr, <float *> imgs_d.dev_ptr

^

cudarray/wrap/cudnn.pyx:52:12: Python objects cannot be cast to pointers of primitive types

Error compiling Cython file:

... def bprop(self, ArrayData imgs, ArrayData poolout, ArrayData poolout_d, ArrayData imgs_d): self.ptr.bprop( <const float *> imgs.dev_ptr, <const float *> poolout.dev_ptr, <const float *> poolout_d.dev_ptr, <float *> imgs_d.dev_ptr

^

cudarray/wrap/cudnn.pyx:52:47: Python objects cannot be cast to pointers of primitive types

Error compiling Cython file:

... ArrayData convout): cdef int img_h = img_shape[0] cdef int img_w = img_shape[1] cdef int filter_h = filter_shape[0] cdef int filter_w = filter_shape[1] self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels,

^

cudarray/wrap/cudnn.pyx:81:32: Cannot convert Python object to 'float const *'

Error compiling Cython file:

... ArrayData convout): cdef int img_h = img_shape[0] cdef int img_w = img_shape[1] cdef int filter_h = filter_shape[0] cdef int filter_w = filter_shape[1] self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels,

^

cudarray/wrap/cudnn.pyx:81:49: Cannot convert Python object to 'float const *'

Error compiling Cython file:

... cdef int img_h = img_shape[0] cdef int img_w = img_shape[1] cdef int filter_h = filter_shape[0] cdef int filter_w = filter_shape[1] self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels, n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

^

cudarray/wrap/cudnn.pyx:82:66: Cannot convert Python object to 'float *'

Error compiling Cython file:

... self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels, n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
          ArrayData imgs_d, ArrayData filters_d):
    cdef float *imgs_ptr = <float *>NULL if imgs is None \
                          ^

cudarray/wrap/cudnn.pyx:86:31: Cannot convert 'float *' to Python object

Error compiling Cython file:

... self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels, n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
          ArrayData imgs_d, ArrayData filters_d):
    cdef float *imgs_ptr = <float *>NULL if imgs is None \
                          ^

cudarray/wrap/cudnn.pyx:86:31: Cannot convert Python object to 'float *'

Error compiling Cython file:

... n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
          ArrayData imgs_d, ArrayData filters_d):
    cdef float *imgs_ptr = <float *>NULL if imgs is None \
                                         else float_ptr(imgs)
                                                      ^

cudarray/wrap/cudnn.pyx:87:59: Cannot convert Python object to 'float *'

Error compiling Cython file:

...

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
          ArrayData imgs_d, ArrayData filters_d):
    cdef float *imgs_ptr = <float *>NULL if imgs is None \
                                         else float_ptr(imgs)
    cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None \
                            ^

cudarray/wrap/cudnn.pyx:88:33: Cannot convert 'float *' to Python object

Error compiling Cython file:

...

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
          ArrayData imgs_d, ArrayData filters_d):
    cdef float *imgs_ptr = <float *>NULL if imgs is None \
                                         else float_ptr(imgs)
    cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None \
                            ^

cudarray/wrap/cudnn.pyx:88:33: Cannot convert Python object to 'float *'

Error compiling Cython file:

... def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d, ArrayData imgs_d, ArrayData filters_d): cdef float *imgs_ptr = <float *>NULL if imgs is None
else float_ptr(imgs) cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None
else float_ptr(imgs_d)

^

cudarray/wrap/cudnn.pyx:89:61: Cannot convert Python object to 'float *'

Error compiling Cython file:

... ArrayData imgs_d, ArrayData filters_d): cdef float *imgs_ptr = <float *>NULL if imgs is None
else float_ptr(imgs) cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None
else float_ptr(imgs_d) cdef float *filters_d_ptr = <float *>NULL if filters_d is None \

^

cudarray/wrap/cudnn.pyx:90:36: Cannot convert 'float *' to Python object

Error compiling Cython file:

... ArrayData imgs_d, ArrayData filters_d): cdef float *imgs_ptr = <float *>NULL if imgs is None
else float_ptr(imgs) cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None
else float_ptr(imgs_d) cdef float *filters_d_ptr = <float *>NULL if filters_d is None \

^

cudarray/wrap/cudnn.pyx:90:36: Cannot convert Python object to 'float *'

Error compiling Cython file:

... cdef float *imgs_ptr = <float *>NULL if imgs is None
else float_ptr(imgs) cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None
else float_ptr(imgs_d) cdef float *filters_d_ptr = <float *>NULL if filters_d is None
else float_ptr(filters_d)

^

cudarray/wrap/cudnn.pyx:91:64: Cannot convert Python object to 'float *'

Error compiling Cython file:

... else float_ptr(imgs) cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None
else float_ptr(imgs_d) cdef float *filters_d_ptr = <float *>NULL if filters_d is None
else float_ptr(filters_d) self.ptr.bprop(imgs_ptr, float_ptr(filters),

^

cudarray/wrap/cudnn.pyx:92:42: Cannot convert Python object to 'float const *'

Error compiling Cython file:

... cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None
else float_ptr(imgs_d) cdef float *filters_d_ptr = <float *>NULL if filters_d is None
else float_ptr(filters_d) self.ptr.bprop(imgs_ptr, float_ptr(filters), float_ptr(convout_d), imgs_d_ptr, filters_d_ptr)

^

cudarray/wrap/cudnn.pyx:93:32: Cannot convert Python object to 'float const *' building 'cudarray.wrap.cudnn' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/cuda-7.0/include -I./include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c ./cudarray/wrap/cudnn.cpp -o build/temp.linux-x86_64-2.7/./cudarray/wrap/cudnn.o -DCUDNN_ENABLED -O3 -fPIC -Wall -Wfatal-errors cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] ./cudarray/wrap/cudnn.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation. #error Do not use this file, it is the result of a failed Cython compilation. ^ compilation terminated due to -Wfatal-errors. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 '''

subercui avatar Sep 05 '15 03:09 subercui

This is very strange. Only the cuDNN wrapper fails to compile? Try cleaning the build using python setup.py clean and reinstall. Have you placed the cuDNN library and header files together with the rest of your CUDA SDK on your file system?

andersbll avatar Sep 05 '15 11:09 andersbll

Yes, only cuDNN wrapper errors. I tried clean and reinstall but no help. I put the cuDNN header in /usr/local/cuda-7.0/include/ and the lib files in /usr/local/cuda-7.0/lib64/. Is this the reason?

subercui avatar Sep 05 '15 16:09 subercui

Have you pasted the error message above in its entirety? I suspect the errors you list are a result of an error occurring earlier in the Cython compilation process.

andersbll avatar Sep 05 '15 16:09 andersbll

BTW: Your cuDNN installation should be fine! :)

andersbll avatar Sep 05 '15 16:09 andersbll

Sorry, the total error message is like this. It's quite long. ''' running build_ext cythoning ./cudarray/wrap/cudart.pyx to ./cudarray/wrap/cudart.cpp building 'cudarray.wrap.cudart' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/cuda-7.0/include -I./include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c ./cudarray/wrap/cudart.cpp -o build/temp.linux-x86_64-2.7/./cudarray/wrap/cudart.o -O3 -fPIC -Wall -Wfatal-errors cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] c++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/./cudarray/wrap/cudart.o -L/usr/local/cuda-7.0/lib64 -L/usr/local/lib -lcudart -lcudarray -o build/lib.linux-x86_64-2.7/cudarray/wrap/cudart.so -fPIC cythoning ./cudarray/wrap/array_data.pyx to ./cudarray/wrap/array_data.cpp

Error compiling Cython file:

... from libcpp cimport bool cimport numpy as np

cdef extern from 'cudarray/common.hpp' namespace 'cudarray': ctypedef int bool_t;

^

cudarray/wrap/array_data.pxd:5:23: Syntax error in ctypedef statement

Error compiling Cython file:

... @property def itemsize(self): return self.dtype.itemsize

cdef bool_t *bool_ptr(ArrayData a):

^

cudarray/wrap/array_data.pyx:50:5: 'bool_t' is not a type identifier

Error compiling Cython file:

...

cdef int *int_ptr(ArrayData a): return <int *> a.dev_ptr

cdef bool is_int(ArrayData a):

^

cudarray/wrap/array_data.pyx:62:5: 'bool' is not a type identifier

Error compiling Cython file:

...

cdef bool is_int(ArrayData a): return a.dtype == np.dtype('int32')

cdef bool is_float(ArrayData a):

^

cudarray/wrap/array_data.pyx:66:5: 'bool' is not a type identifier

Error compiling Cython file:

... self.dtype = dtype self.nbytes = size*dtype.itemsize self.owner = owner self.offset = offset if owner is None: cudaCheck(cudaMalloc(&self.dev_ptr, self.nbytes))

^

cudarray/wrap/array_data.pyx:16:33: Cannot take address of Python variable

Error compiling Cython file:

... if owner is None: cudaCheck(cudaMalloc(&self.dev_ptr, self.nbytes)) else: self.dev_ptr = (<char > owner.dev_ptr) + offsetdtype.itemsize if np_data is not None: cudaCheck(cudaMemcpyAsync(self.dev_ptr, np.PyArray_DATA(np_data),

^

cudarray/wrap/array_data.pyx:20:42: Cannot convert Python object to 'void *'

Error compiling Cython file:

... if np_data is not None: cudaCheck(cudaMemcpyAsync(self.dev_ptr, np.PyArray_DATA(np_data), self.nbytes, cudaMemcpyHostToDevice))

def to_numpy(self, np_array):
    cudaCheck(cudaMemcpy(np.PyArray_DATA(np_array), self.dev_ptr,
                                                       ^

cudarray/wrap/array_data.pyx:24:60: Cannot convert Python object to 'void const *'

Error compiling Cython file:

... self.nbytes, cudaMemcpyDeviceToHost)) return np_array

def __dealloc__(self):
    if self.owner is None:
        cudaFree(self.dev_ptr)
                    ^

cudarray/wrap/array_data.pyx:30:25: Cannot convert Python object to 'void *'

Error compiling Cython file:

... def itemsize(self): return self.dtype.itemsize

cdef bool_t *bool_ptr(ArrayData a): return <bool_t *> a.dev_ptr

^

cudarray/wrap/array_data.pyx:51:12: 'bool_t' is not a type identifier

Error compiling Cython file:

... cdef bool_t *bool_ptr(ArrayData a): return <bool_t *> a.dev_ptr

cdef float *float_ptr(ArrayData a): return <float *> a.dev_ptr

^

cudarray/wrap/array_data.pyx:55:11: Python objects cannot be cast to pointers of primitive types

Error compiling Cython file:

... cdef float *float_ptr(ArrayData a): return <float *> a.dev_ptr

cdef int *int_ptr(ArrayData a): return <int *> a.dev_ptr

^

cudarray/wrap/array_data.pyx:59:11: Python objects cannot be cast to pointers of primitive types cythoning ./cudarray/wrap/array_ops.pyx to ./cudarray/wrap/array_ops.cpp

Error compiling Cython file:

... from libcpp cimport bool cimport numpy as np

cdef extern from 'cudarray/common.hpp' namespace 'cudarray': ctypedef int bool_t;

^

cudarray/wrap/array_data.pxd:5:23: Syntax error in ctypedef statement

Error compiling Cython file:

... cimport numpy as np cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/array_ops.pyx:3:0: 'ArrayData.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/array_ops.pyx:3:26: Name 'ArrayData' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/array_ops.pyx:3:0: 'bool_ptr.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/array_ops.pyx:3:37: Name 'bool_ptr' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/array_ops.pyx:3:0: 'float_ptr.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/array_ops.pyx:3:47: Name 'float_ptr' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/array_ops.pyx:3:0: 'int_ptr.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/array_ops.pyx:3:58: Name 'int_ptr' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/array_ops.pyx:3:0: 'is_int.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/array_ops.pyx:3:67: Name 'is_int' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/array_ops.pyx:3:0: 'is_float.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int, is_float)

^

cudarray/wrap/array_ops.pyx:4:26: Name 'is_float' not declared in module 'array_data'

Error compiling Cython file:

... cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int, is_float)

def _transpose(ArrayData a, unsigned int m, unsigned int n, ArrayData out):

^

cudarray/wrap/array_ops.pyx:7:15: 'ArrayData' is not a type identifier

Error compiling Cython file:

... cimport array_ops from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int, is_float)

def _transpose(ArrayData a, unsigned int m, unsigned int n, ArrayData out):

^

cudarray/wrap/array_ops.pyx:7:60: 'ArrayData' is not a type identifier

Error compiling Cython file:

... array_ops.transpose(int_ptr(a), m, n, int_ptr(out)) else: raise ValueError('type (%s) not implemented' % str(a.dtype))

def _asfloat(ArrayData a, unsigned int n, ArrayData out):

^

cudarray/wrap/array_ops.pyx:16:13: 'ArrayData' is not a type identifier

Error compiling Cython file:

... array_ops.transpose(int_ptr(a), m, n, int_ptr(out)) else: raise ValueError('type (%s) not implemented' % str(a.dtype))

def _asfloat(ArrayData a, unsigned int n, ArrayData out):

^

cudarray/wrap/array_ops.pyx:16:42: 'ArrayData' is not a type identifier

Error compiling Cython file:

... array_ops.as[int, float](int_ptr%28a%29, n, float_ptr%28out%29) else: raise ValueError('type (%s) not implemented' % str(a.dtype))

def _asint(ArrayData a, unsigned int n, ArrayData out):

^

cudarray/wrap/array_ops.pyx:23:11: 'ArrayData' is not a type identifier

Error compiling Cython file:

... array_ops.as[int, float](int_ptr%28a%29, n, float_ptr%28out%29) else: raise ValueError('type (%s) not implemented' % str(a.dtype))

def _asint(ArrayData a, unsigned int n, ArrayData out):

^

cudarray/wrap/array_ops.pyx:23:40: 'ArrayData' is not a type identifier

Error compiling Cython file:

... array_ops.as[float, int](float_ptr%28a%29, n, int_ptr%28out%29) else: raise ValueError('type (%s) not implemented' % str(a.dtype))

def _fill(ArrayData a, unsigned int n, alpha):

^

cudarray/wrap/array_ops.pyx:30:10: 'ArrayData' is not a type identifier

Error compiling Cython file:

... array_ops.fill(float_ptr(a), n, alpha) else: raise ValueError('type (%s) not implemented' % str(a.dtype))

def _copy(ArrayData a, unsigned int n, ArrayData out):

^

cudarray/wrap/array_ops.pyx:39:10: 'ArrayData' is not a type identifier

Error compiling Cython file:

... array_ops.fill(float_ptr(a), n, alpha) else: raise ValueError('type (%s) not implemented' % str(a.dtype))

def _copy(ArrayData a, unsigned int n, ArrayData out):

^

cudarray/wrap/array_ops.pyx:39:39: 'ArrayData' is not a type identifier

Error compiling Cython file:

... array_ops.copy(float_ptr(a), n, float_ptr(out)) else: raise ValueError('type (%s) not implemented' % str(a.dtype))

def _to_device(np.ndarray a, unsigned int n, ArrayData out):

^

cudarray/wrap/array_ops.pyx:48:45: 'ArrayData' is not a type identifier

Error compiling Cython file:

... array_ops.to_device(<float *>np.PyArray_DATA(a), n, float_ptr(out)) else: raise ValueError('type (%s) not implemented' % str(a.dtype))

def _to_host(ArrayData a, unsigned int n, np.ndarray out):

^

cudarray/wrap/array_ops.pyx:57:13: 'ArrayData' is not a type identifier

Error compiling Cython file:

... from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int, is_float)

def _transpose(ArrayData a, unsigned int m, unsigned int n, ArrayData out): if is_float(a):

^

cudarray/wrap/array_ops.pyx:8:15: undeclared name not builtin: is_float

Error compiling Cython file:

... is_float)

def _transpose(ArrayData a, unsigned int m, unsigned int n, ArrayData out): if is_float(a): array_ops.transpose(float_ptr(a), m, n, float_ptr(out))

^

cudarray/wrap/array_ops.pyx:9:37: undeclared name not builtin: float_ptr

Error compiling Cython file:

... is_float)

def _transpose(ArrayData a, unsigned int m, unsigned int n, ArrayData out): if is_float(a): array_ops.transpose(float_ptr(a), m, n, float_ptr(out))

^

cudarray/wrap/array_ops.pyx:9:27: Unable to deduce type parameters

Error compiling Cython file:

...

def _transpose(ArrayData a, unsigned int m, unsigned int n, ArrayData out): if is_float(a): array_ops.transpose(float_ptr(a), m, n, float_ptr(out)) elif is_int(a):

^

cudarray/wrap/array_ops.pyx:10:15: undeclared name not builtin: is_int

Error compiling Cython file:

...

def _transpose(ArrayData a, unsigned int m, unsigned int n, ArrayData out): if is_float(a): array_ops.transpose(float_ptr(a), m, n, float_ptr(out)) elif is_int(a): array_ops.transpose(int_ptr(a), m, n, int_ptr(out))

^

cudarray/wrap/array_ops.pyx:11:35: undeclared name not builtin: int_ptr

Error compiling Cython file:

...

def _transpose(ArrayData a, unsigned int m, unsigned int n, ArrayData out): if is_float(a): array_ops.transpose(float_ptr(a), m, n, float_ptr(out)) elif is_int(a): array_ops.transpose(int_ptr(a), m, n, int_ptr(out))

^

cudarray/wrap/array_ops.pyx:11:27: Unable to deduce type parameters

Error compiling Cython file:

... raise ValueError('type (%s) not implemented' % str(a.dtype))

def _asfloat(ArrayData a, unsigned int n, ArrayData out): if is_int(a): array_ops.as[int, float](int_ptr%28a%29, n, float_ptr%28out%29)

^

cudarray/wrap/array_ops.pyx:18:40: Cannot convert Python object to 'int const *'

Error compiling Cython file:

... raise ValueError('type (%s) not implemented' % str(a.dtype))

def _asfloat(ArrayData a, unsigned int n, ArrayData out): if is_int(a): array_ops.as[int, float](int_ptr%28a%29, n, float_ptr%28out%29)

^

cudarray/wrap/array_ops.pyx:18:57: Cannot convert Python object to 'float *'

Error compiling Cython file:

... raise ValueError('type (%s) not implemented' % str(a.dtype))

def _asint(ArrayData a, unsigned int n, ArrayData out): if is_float(a): array_ops.as[float, int](float_ptr%28a%29, n, int_ptr%28out%29)

^

cudarray/wrap/array_ops.pyx:25:42: Cannot convert Python object to 'float const *'

Error compiling Cython file:

... raise ValueError('type (%s) not implemented' % str(a.dtype))

def _asint(ArrayData a, unsigned int n, ArrayData out): if is_float(a): array_ops.as[float, int](float_ptr%28a%29, n, int_ptr%28out%29)

^

cudarray/wrap/array_ops.pyx:25:57: Cannot convert Python object to 'int *'

Error compiling Cython file:

... raise ValueError('type (%s) not implemented' % str(a.dtype))

def _fill(ArrayData a, unsigned int n, alpha): if is_int(a): array_ops.fill(int_ptr(a), n, alpha)

^

cudarray/wrap/array_ops.pyx:32:22: Unable to deduce type parameters

Error compiling Cython file:

...

def _fill(ArrayData a, unsigned int n, alpha): if is_int(a): array_ops.fill(int_ptr(a), n, alpha) elif is_float(a): array_ops.fill(float_ptr(a), n, alpha)

^

cudarray/wrap/array_ops.pyx:34:22: Unable to deduce type parameters

Error compiling Cython file:

... raise ValueError('type (%s) not implemented' % str(a.dtype))

def _copy(ArrayData a, unsigned int n, ArrayData out): if is_int(a): array_ops.copy(int_ptr(a), n, int_ptr(out))

^

cudarray/wrap/array_ops.pyx:41:22: Unable to deduce type parameters

Error compiling Cython file:

...

def _copy(ArrayData a, unsigned int n, ArrayData out): if is_int(a): array_ops.copy(int_ptr(a), n, int_ptr(out)) elif is_float(a): array_ops.copy(float_ptr(a), n, float_ptr(out))

^

cudarray/wrap/array_ops.pyx:43:22: Unable to deduce type parameters

Error compiling Cython file:

... raise ValueError('type (%s) not implemented' % str(a.dtype))

def _to_device(np.ndarray a, unsigned int n, ArrayData out): if is_int(a): array_ops.to_device(<int *>np.PyArray_DATA(a), n, int_ptr(out))

^

cudarray/wrap/array_ops.pyx:50:27: Unable to deduce type parameters

Error compiling Cython file:

...

def _to_device(np.ndarray a, unsigned int n, ArrayData out): if is_int(a): array_ops.to_device(<int *>np.PyArray_DATA(a), n, int_ptr(out)) elif is_float(a): array_ops.to_device(<float *>np.PyArray_DATA(a), n, float_ptr(out))

^

cudarray/wrap/array_ops.pyx:52:27: Unable to deduce type parameters

Error compiling Cython file:

... raise ValueError('type (%s) not implemented' % str(a.dtype))

def _to_host(ArrayData a, unsigned int n, np.ndarray out): if is_int(a): array_ops.to_host(int_ptr(a), n, <int *>np.PyArray_DATA(out))

^

cudarray/wrap/array_ops.pyx:59:25: Unable to deduce type parameters

Error compiling Cython file:

...

def _to_host(ArrayData a, unsigned int n, np.ndarray out): if is_int(a): array_ops.to_host(int_ptr(a), n, <int *>np.PyArray_DATA(out)) elif is_float(a): array_ops.to_host(float_ptr(a), n, <float *>np.PyArray_DATA(out))

^

cudarray/wrap/array_ops.pyx:61:25: Unable to deduce type parameters cythoning ./cudarray/wrap/elementwise.pyx to ./cudarray/wrap/elementwise.cpp

Error compiling Cython file:

... from libcpp cimport bool

cdef extern from 'cudarray/common.hpp' namespace 'cudarray': ctypedef int bool_t;

^

cudarray/wrap/elementwise.pxd:4:23: Syntax error in ctypedef statement

Error compiling Cython file:

... from libcpp cimport bool cimport numpy as np

cdef extern from 'cudarray/common.hpp' namespace 'cudarray': ctypedef int bool_t;

^

cudarray/wrap/array_data.pxd:5:23: Syntax error in ctypedef statement

Error compiling Cython file:

... from cpython cimport bool cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/elementwise.pyx:4:0: 'ArrayData.pxd' not found

Error compiling Cython file:

... from cpython cimport bool cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/elementwise.pyx:4:26: Name 'ArrayData' not declared in module 'array_data'

Error compiling Cython file:

... from cpython cimport bool cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/elementwise.pyx:4:0: 'bool_ptr.pxd' not found

Error compiling Cython file:

... from cpython cimport bool cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/elementwise.pyx:4:37: Name 'bool_ptr' not declared in module 'array_data'

Error compiling Cython file:

... from cpython cimport bool cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/elementwise.pyx:4:0: 'float_ptr.pxd' not found

Error compiling Cython file:

... from cpython cimport bool cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/elementwise.pyx:4:47: Name 'float_ptr' not declared in module 'array_data'

Error compiling Cython file:

... from cpython cimport bool cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/elementwise.pyx:4:0: 'int_ptr.pxd' not found

Error compiling Cython file:

... from cpython cimport bool cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/elementwise.pyx:4:58: Name 'int_ptr' not declared in module 'array_data'

Error compiling Cython file:

... from cpython cimport bool cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/elementwise.pyx:4:0: 'is_int.pxd' not found

Error compiling Cython file:

... from cpython cimport bool cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/elementwise.pyx:4:67: Name 'is_int' not declared in module 'array_data'

Error compiling Cython file:

... from cpython cimport bool cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int,

^

cudarray/wrap/elementwise.pyx:4:0: 'is_float.pxd' not found

Error compiling Cython file:

... from cpython cimport bool cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int, is_float)

^

cudarray/wrap/elementwise.pyx:5:26: Name 'is_float' not declared in module 'array_data'

Error compiling Cython file:

... lt_op = LT_OP lt_eq_op = LT_EQ_OP neq_op = NEQ_OP

def _binary(BinaryOp op, ArrayData a, ArrayData b, unsigned int n,

^

cudarray/wrap/elementwise.pyx:42:12: 'BinaryOp' is not a type identifier

Error compiling Cython file:

... lt_op = LT_OP lt_eq_op = LT_EQ_OP neq_op = NEQ_OP

def _binary(BinaryOp op, ArrayData a, ArrayData b, unsigned int n,

^

cudarray/wrap/elementwise.pyx:42:25: 'ArrayData' is not a type identifier

Error compiling Cython file:

... lt_op = LT_OP lt_eq_op = LT_EQ_OP neq_op = NEQ_OP

def _binary(BinaryOp op, ArrayData a, ArrayData b, unsigned int n,

^

cudarray/wrap/elementwise.pyx:42:38: 'ArrayData' is not a type identifier

Error compiling Cython file:

... lt_eq_op = LT_EQ_OP neq_op = NEQ_OP

def _binary(BinaryOp op, ArrayData a, ArrayData b, unsigned int n, ArrayData c):

^

cudarray/wrap/elementwise.pyx:43:12: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _binary_scalar(BinaryOp op, ArrayData a, alpha, unsigned int n,

^

cudarray/wrap/elementwise.pyx:57:19: 'BinaryOp' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _binary_scalar(BinaryOp op, ArrayData a, alpha, unsigned int n,

^

cudarray/wrap/elementwise.pyx:57:32: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _binary_scalar(BinaryOp op, ArrayData a, alpha, unsigned int n, ArrayData b, bool flip_operands):

^

cudarray/wrap/elementwise.pyx:58:19: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), type(alpha)))

def _binary_broadcast(BinaryOp op, BroadcastType btype, ArrayData a,

^

cudarray/wrap/elementwise.pyx:85:22: 'BinaryOp' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), type(alpha)))

def _binary_broadcast(BinaryOp op, BroadcastType btype, ArrayData a,

^

cudarray/wrap/elementwise.pyx:85:35: 'BroadcastType' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), type(alpha)))

def _binary_broadcast(BinaryOp op, BroadcastType btype, ArrayData a,

^

cudarray/wrap/elementwise.pyx:85:56: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), type(alpha)))

def _binary_broadcast(BinaryOp op, BroadcastType btype, ArrayData a, ArrayData b, unsigned int k, unsigned int m, unsigned int n,

^

cudarray/wrap/elementwise.pyx:86:8: 'ArrayData' is not a type identifier

Error compiling Cython file:

... % (str(a.dtype), type(alpha)))

def _binary_broadcast(BinaryOp op, BroadcastType btype, ArrayData a, ArrayData b, unsigned int k, unsigned int m, unsigned int n, ArrayData c):

^

cudarray/wrap/elementwise.pyx:87:8: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _binary_cmp(BinaryCmpOp op, ArrayData a, ArrayData b, unsigned int n,

^

cudarray/wrap/elementwise.pyx:105:16: 'BinaryCmpOp' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _binary_cmp(BinaryCmpOp op, ArrayData a, ArrayData b, unsigned int n,

^

cudarray/wrap/elementwise.pyx:105:32: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _binary_cmp(BinaryCmpOp op, ArrayData a, ArrayData b, unsigned int n,

^

cudarray/wrap/elementwise.pyx:105:45: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _binary_cmp(BinaryCmpOp op, ArrayData a, ArrayData b, unsigned int n, ArrayData c):

^

cudarray/wrap/elementwise.pyx:106:11: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _binary_cmp_scalar(BinaryCmpOp op, ArrayData a, alpha, unsigned int n,

^

cudarray/wrap/elementwise.pyx:124:23: 'BinaryCmpOp' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _binary_cmp_scalar(BinaryCmpOp op, ArrayData a, alpha, unsigned int n,

^

cudarray/wrap/elementwise.pyx:124:39: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _binary_cmp_scalar(BinaryCmpOp op, ArrayData a, alpha, unsigned int n, ArrayData b, bool flip_operands):

^

cudarray/wrap/elementwise.pyx:125:23: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), type(alpha)))

def _binary_cmp_broadcast(BinaryCmpOp op, BroadcastType btype, ArrayData a,

^

cudarray/wrap/elementwise.pyx:149:26: 'BinaryCmpOp' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), type(alpha)))

def _binary_cmp_broadcast(BinaryCmpOp op, BroadcastType btype, ArrayData a,

^

cudarray/wrap/elementwise.pyx:149:42: 'BroadcastType' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), type(alpha)))

def _binary_cmp_broadcast(BinaryCmpOp op, BroadcastType btype, ArrayData a,

^

cudarray/wrap/elementwise.pyx:149:63: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), type(alpha)))

def _binary_cmp_broadcast(BinaryCmpOp op, BroadcastType btype, ArrayData a, ArrayData b, unsigned int k, unsigned int m, unsigned int n, ArrayData c):

^

cudarray/wrap/elementwise.pyx:150:4: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), type(alpha)))

def _binary_cmp_broadcast(BinaryCmpOp op, BroadcastType btype, ArrayData a, ArrayData b, unsigned int k, unsigned int m, unsigned int n, ArrayData c):

^

cudarray/wrap/elementwise.pyx:150:65: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _unary(UnaryOp op, ArrayData a, unsigned int n, ArrayData b):

^

cudarray/wrap/elementwise.pyx:168:11: 'UnaryOp' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _unary(UnaryOp op, ArrayData a, unsigned int n, ArrayData b):

^

cudarray/wrap/elementwise.pyx:168:23: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('types (%s, %s) not implemented' % (str(a.dtype), str(b.dtype)))

def _unary(UnaryOp op, ArrayData a, unsigned int n, ArrayData b):

^

cudarray/wrap/elementwise.pyx:168:52: 'ArrayData' is not a type identifier

Error compiling Cython file:

... elementwise.unary(op, int_ptr(a), n, int_ptr(b)) else: raise ValueError('type %s not implemented' % str(a.dtype))

def _clip(ArrayData a, a_min, a_max, unsigned int n, ArrayData b):

^

cudarray/wrap/elementwise.pyx:177:10: 'ArrayData' is not a type identifier

Error compiling Cython file:

... elementwise.unary(op, int_ptr(a), n, int_ptr(b)) else: raise ValueError('type %s not implemented' % str(a.dtype))

def _clip(ArrayData a, a_min, a_max, unsigned int n, ArrayData b):

^

cudarray/wrap/elementwise.pyx:177:53: 'ArrayData' is not a type identifier

Error compiling Cython file:

... cimport numpy as np cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int, is_float)

btype_inner = BROADCAST_INNER

^

cudarray/wrap/elementwise.pyx:7:29: undeclared name not builtin: BROADCAST_INNER

Error compiling Cython file:

... cimport elementwise from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int, is_float)

btype_inner = BROADCAST_INNER btype_leading = BROADCAST_LEADING

^

cudarray/wrap/elementwise.pyx:8:33: undeclared name not builtin: BROADCAST_LEADING

Error compiling Cython file:

... from .array_data cimport (ArrayData, bool_ptr, float_ptr, int_ptr, is_int, is_float)

btype_inner = BROADCAST_INNER btype_leading = BROADCAST_LEADING btype_outer = BROADCAST_OUTER

^

cudarray/wrap/elementwise.pyx:9:29: undeclared name not builtin: BROADCAST_OUTER

Error compiling Cython file:

... is_float)

btype_inner = BROADCAST_INNER btype_leading = BROADCAST_LEADING btype_outer = BROADCAST_OUTER btype_trailing = BROADCAST_TRAILING

^

cudarray/wrap/elementwise.pyx:10:35: undeclared name not builtin: BROADCAST_TRAILING

Error compiling Cython file:

... btype_inner = BROADCAST_INNER btype_leading = BROADCAST_LEADING btype_outer = BROADCAST_OUTER btype_trailing = BROADCAST_TRAILING

add_op = ADD_OP

^

cudarray/wrap/elementwise.pyx:12:15: undeclared name not builtin: ADD_OP

Error compiling Cython file:

... btype_leading = BROADCAST_LEADING btype_outer = BROADCAST_OUTER btype_trailing = BROADCAST_TRAILING

add_op = ADD_OP div_op = DIV_OP

^

cudarray/wrap/elementwise.pyx:13:15: undeclared name not builtin: DIV_OP

Error compiling Cython file:

... btype_outer = BROADCAST_OUTER btype_trailing = BROADCAST_TRAILING

add_op = ADD_OP div_op = DIV_OP max_op = MAX_B_OP

^

cudarray/wrap/elementwise.pyx:14:17: undeclared name not builtin: MAX_B_OP

Error compiling Cython file:

... btype_trailing = BROADCAST_TRAILING

add_op = ADD_OP div_op = DIV_OP max_op = MAX_B_OP min_op = MIN_B_OP

^

cudarray/wrap/elementwise.pyx:15:17: undeclared name not builtin: MIN_B_OP

Error compiling Cython file:

...

add_op = ADD_OP div_op = DIV_OP max_op = MAX_B_OP min_op = MIN_B_OP mul_op = MUL_OP

^

cudarray/wrap/elementwise.pyx:16:15: undeclared name not builtin: MUL_OP

Error compiling Cython file:

... add_op = ADD_OP div_op = DIV_OP max_op = MAX_B_OP min_op = MIN_B_OP mul_op = MUL_OP pow_op = POW_OP

^

cudarray/wrap/elementwise.pyx:17:15: undeclared name not builtin: POW_OP

Error compiling Cython file:

... div_op = DIV_OP max_op = MAX_B_OP min_op = MIN_B_OP mul_op = MUL_OP pow_op = POW_OP sub_op = SUB_OP

^

cudarray/wrap/elementwise.pyx:18:15: undeclared name not builtin: SUB_OP

Error compiling Cython file:

... min_op = MIN_B_OP mul_op = MUL_OP pow_op = POW_OP sub_op = SUB_OP

abs_op = ABS_OP

^

cudarray/wrap/elementwise.pyx:20:15: undeclared name not builtin: ABS_OP

Error compiling Cython file:

... mul_op = MUL_OP pow_op = POW_OP sub_op = SUB_OP

abs_op = ABS_OP cos_op = COS_OP

^

cudarray/wrap/elementwise.pyx:21:15: undeclared name not builtin: COS_OP

Error compiling Cython file:

... pow_op = POW_OP sub_op = SUB_OP

abs_op = ABS_OP cos_op = COS_OP exp_op = EXP_OP

^

cudarray/wrap/elementwise.pyx:22:15: undeclared name not builtin: EXP_OP

Error compiling Cython file:

... sub_op = SUB_OP

abs_op = ABS_OP cos_op = COS_OP exp_op = EXP_OP log_op = LOG_OP

^

cudarray/wrap/elementwise.pyx:23:15: undeclared name not builtin: LOG_OP

Error compiling Cython file:

...

abs_op = ABS_OP cos_op = COS_OP exp_op = EXP_OP log_op = LOG_OP neg_op = NEG_OP

^

cudarray/wrap/elementwise.pyx:24:15: undeclared name not builtin: NEG_OP

Error compiling Cython file:

... abs_op = ABS_OP cos_op = COS_OP exp_op = EXP_OP log_op = LOG_OP neg_op = NEG_OP relu_op = RELU_OP

^

cudarray/wrap/elementwise.pyx:25:17: undeclared name not builtin: RELU_OP

Error compiling Cython file:

... cos_op = COS_OP exp_op = EXP_OP log_op = LOG_OP neg_op = NEG_OP relu_op = RELU_OP relu_d_op = RELU_D_OP

^

cudarray/wrap/elementwise.pyx:26:21: undeclared name not builtin: RELU_D_OP

Error compiling Cython file:

... exp_op = EXP_OP log_op = LOG_OP neg_op = NEG_OP relu_op = RELU_OP relu_d_op = RELU_D_OP sigmoid_op = SIGMOID_OP

^

cudarray/wrap/elementwise.pyx:27:23: undeclared name not builtin: SIGMOID_OP

Error compiling Cython file:

... log_op = LOG_OP neg_op = NEG_OP relu_op = RELU_OP relu_d_op = RELU_D_OP sigmoid_op = SIGMOID_OP sigmoid_d_op = SIGMOID_D_OP

^

cudarray/wrap/elementwise.pyx:28:27: undeclared name not builtin: SIGMOID_D_OP

Error compiling Cython file:

... neg_op = NEG_OP relu_op = RELU_OP relu_d_op = RELU_D_OP sigmoid_op = SIGMOID_OP sigmoid_d_op = SIGMOID_D_OP sin_op = SIN_OP

^

cudarray/wrap/elementwise.pyx:29:15: undeclared name not builtin: SIN_OP

Error compiling Cython file:

... relu_op = RELU_OP relu_d_op = RELU_D_OP sigmoid_op = SIGMOID_OP sigmoid_d_op = SIGMOID_D_OP sin_op = SIN_OP sqrt_op = SQRT_OP

^

cudarray/wrap/elementwise.pyx:30:17: undeclared name not builtin: SQRT_OP

Error compiling Cython file:

... relu_d_op = RELU_D_OP sigmoid_op = SIGMOID_OP sigmoid_d_op = SIGMOID_D_OP sin_op = SIN_OP sqrt_op = SQRT_OP tanh_op = TANH_OP

^

cudarray/wrap/elementwise.pyx:31:17: undeclared name not builtin: TANH_OP

Error compiling Cython file:

... sigmoid_op = SIGMOID_OP sigmoid_d_op = SIGMOID_D_OP sin_op = SIN_OP sqrt_op = SQRT_OP tanh_op = TANH_OP tanh_d_op = TANH_D_OP

^

cudarray/wrap/elementwise.pyx:32:21: undeclared name not builtin: TANH_D_OP

Error compiling Cython file:

... sin_op = SIN_OP sqrt_op = SQRT_OP tanh_op = TANH_OP tanh_d_op = TANH_D_OP

eq_op = EQ_OP

^

cudarray/wrap/elementwise.pyx:34:13: undeclared name not builtin: EQ_OP

Error compiling Cython file:

... sqrt_op = SQRT_OP tanh_op = TANH_OP tanh_d_op = TANH_D_OP

eq_op = EQ_OP gt_op = GT_OP

^

cudarray/wrap/elementwise.pyx:35:13: undeclared name not builtin: GT_OP

Error compiling Cython file:

... tanh_op = TANH_OP tanh_d_op = TANH_D_OP

eq_op = EQ_OP gt_op = GT_OP gt_eq_op = GT_EQ_OP

^

cudarray/wrap/elementwise.pyx:36:19: undeclared name not builtin: GT_EQ_OP

Error compiling Cython file:

... tanh_d_op = TANH_D_OP

eq_op = EQ_OP gt_op = GT_OP gt_eq_op = GT_EQ_OP lt_op = LT_OP

^

cudarray/wrap/elementwise.pyx:37:13: undeclared name not builtin: LT_OP

Error compiling Cython file:

...

eq_op = EQ_OP gt_op = GT_OP gt_eq_op = GT_EQ_OP lt_op = LT_OP lt_eq_op = LT_EQ_OP

^

cudarray/wrap/elementwise.pyx:38:19: undeclared name not builtin: LT_EQ_OP

Error compiling Cython file:

... eq_op = EQ_OP gt_op = GT_OP gt_eq_op = GT_EQ_OP lt_op = LT_OP lt_eq_op = LT_EQ_OP neq_op = NEQ_OP

^

cudarray/wrap/elementwise.pyx:39:15: undeclared name not builtin: NEQ_OP

Error compiling Cython file:

... neq_op = NEQ_OP

def _binary(BinaryOp op, ArrayData a, ArrayData b, unsigned int n, ArrayData c): if is_float(a) and is_float(b):

^

cudarray/wrap/elementwise.pyx:44:15: undeclared name not builtin: is_float

Error compiling Cython file:

...

def _binary(BinaryOp op, ArrayData a, ArrayData b, unsigned int n, ArrayData c): if is_float(a) and is_float(b): elementwise.binary(op, float_ptr(a), float_ptr(b), n, float_ptr(c))

^

cudarray/wrap/elementwise.pyx:45:40: undeclared name not builtin: float_ptr

Error compiling Cython file:

...

def _binary(BinaryOp op, ArrayData a, ArrayData b, unsigned int n, ArrayData c): if is_float(a) and is_float(b): elementwise.binary(op, float_ptr(a), float_ptr(b), n, float_ptr(c)) elif is_float(a) and is_int(b):

^

cudarray/wrap/elementwise.pyx:46:31: undeclared name not builtin: is_int

Error compiling Cython file:

... def _binary(BinaryOp op, ArrayData a, ArrayData b, unsigned int n, ArrayData c): if is_float(a) and is_float(b): elementwise.binary(op, float_ptr(a), float_ptr(b), n, float_ptr(c)) elif is_float(a) and is_int(b): elementwise.binary(op, float_ptr(a), int_ptr(b), n, float_ptr(c))

^

cudarray/wrap/elementwise.pyx:47:52: undeclared name not builtin: int_ptr

Error compiling Cython file:

...

def _binary_cmp(BinaryCmpOp op, ArrayData a, ArrayData b, unsigned int n, ArrayData c): if is_float(a) and is_float(b): elementwise.binary_cmp[float, float](op, float_ptr%28a%29, float_ptr%28b%29, n, bool_ptr%28c%29)

^

cudarray/wrap/elementwise.pyx:109:39: undeclared name not builtin: bool_ptr cythoning ./cudarray/wrap/reduction.pyx to ./cudarray/wrap/reduction.cpp

Error compiling Cython file:

... from libcpp cimport bool cimport numpy as np

cdef extern from 'cudarray/common.hpp' namespace 'cudarray': ctypedef int bool_t;

^

cudarray/wrap/array_data.pxd:5:23: Syntax error in ctypedef statement

Error compiling Cython file:

... cimport numpy as np cimport reduction from .array_data cimport ArrayData, float_ptr, int_ptr, is_int, is_float

^

cudarray/wrap/reduction.pyx:3:0: 'ArrayData.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport reduction from .array_data cimport ArrayData, float_ptr, int_ptr, is_int, is_float

^

cudarray/wrap/reduction.pyx:3:25: Name 'ArrayData' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport reduction from .array_data cimport ArrayData, float_ptr, int_ptr, is_int, is_float

^

cudarray/wrap/reduction.pyx:3:0: 'float_ptr.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport reduction from .array_data cimport ArrayData, float_ptr, int_ptr, is_int, is_float

^

cudarray/wrap/reduction.pyx:3:36: Name 'float_ptr' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport reduction from .array_data cimport ArrayData, float_ptr, int_ptr, is_int, is_float

^

cudarray/wrap/reduction.pyx:3:0: 'int_ptr.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport reduction from .array_data cimport ArrayData, float_ptr, int_ptr, is_int, is_float

^

cudarray/wrap/reduction.pyx:3:47: Name 'int_ptr' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport reduction from .array_data cimport ArrayData, float_ptr, int_ptr, is_int, is_float

^

cudarray/wrap/reduction.pyx:3:0: 'is_int.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport reduction from .array_data cimport ArrayData, float_ptr, int_ptr, is_int, is_float

^

cudarray/wrap/reduction.pyx:3:56: Name 'is_int' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport reduction from .array_data cimport ArrayData, float_ptr, int_ptr, is_int, is_float

^

cudarray/wrap/reduction.pyx:3:0: 'is_float.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport reduction from .array_data cimport ArrayData, float_ptr, int_ptr, is_int, is_float

^

cudarray/wrap/reduction.pyx:3:64: Name 'is_float' not declared in module 'array_data'

Error compiling Cython file:

...

argmax_op = ARGMAX_OP argmin_op = ARGMIN_OP

def _reduce(ReduceOp op, ArrayData a, unsigned int n, ArrayData out):

^

cudarray/wrap/reduction.pyx:15:25: 'ArrayData' is not a type identifier

Error compiling Cython file:

...

argmax_op = ARGMAX_OP argmin_op = ARGMIN_OP

def _reduce(ReduceOp op, ArrayData a, unsigned int n, ArrayData out):

^

cudarray/wrap/reduction.pyx:15:54: 'ArrayData' is not a type identifier

Error compiling Cython file:

... reduction.reduce(op, int_ptr(a), n, int_ptr(out)) else: raise ValueError('type %s not implemented' % str(a.dtype))

def _reduce_mat(ReduceOp op, ArrayData a, unsigned int m, unsigned int n,

^

cudarray/wrap/reduction.pyx:24:29: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('type %s not implemented' % str(a.dtype))

def _reduce_mat(ReduceOp op, ArrayData a, unsigned int m, unsigned int n, bool reduce_leading, ArrayData out):

^

cudarray/wrap/reduction.pyx:25:37: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('type %s not implemented' % str(a.dtype))

def _reduce_to_int(ReduceToIntOp op, ArrayData a, unsigned int n,

^

cudarray/wrap/reduction.pyx:37:37: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('type %s not implemented' % str(a.dtype))

def _reduce_to_int(ReduceToIntOp op, ArrayData a, unsigned int n, ArrayData out):

^

cudarray/wrap/reduction.pyx:38:19: 'ArrayData' is not a type identifier

Error compiling Cython file:

... reduction.reduce_to_int(op, int_ptr(a), n, int_ptr(out)) else: raise ValueError('type %s not implemented' % str(a.dtype))

def _reduce_mat_to_int(ReduceToIntOp op, ArrayData a, unsigned int m,

^

cudarray/wrap/reduction.pyx:47:41: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('type %s not implemented' % str(a.dtype))

def _reduce_mat_to_int(ReduceToIntOp op, ArrayData a, unsigned int m, unsigned int n, bool reduce_leading, ArrayData out):

^

cudarray/wrap/reduction.pyx:48:60: 'ArrayData' is not a type identifier

Error compiling Cython file:

... argmax_op = ARGMAX_OP argmin_op = ARGMIN_OP

def _reduce(ReduceOp op, ArrayData a, unsigned int n, ArrayData out): if is_float(a):

^

cudarray/wrap/reduction.pyx:16:15: undeclared name not builtin: is_float

Error compiling Cython file:

... argmin_op = ARGMIN_OP

def _reduce(ReduceOp op, ArrayData a, unsigned int n, ArrayData out): if is_float(a): reduction.reduce(op, float_ptr(a), n, float_ptr(out))

^

cudarray/wrap/reduction.pyx:17:38: undeclared name not builtin: float_ptr

Error compiling Cython file:

... argmin_op = ARGMIN_OP

def _reduce(ReduceOp op, ArrayData a, unsigned int n, ArrayData out): if is_float(a): reduction.reduce(op, float_ptr(a), n, float_ptr(out))

^

cudarray/wrap/reduction.pyx:17:24: Unable to deduce type parameters

Error compiling Cython file:

...

def _reduce(ReduceOp op, ArrayData a, unsigned int n, ArrayData out): if is_float(a): reduction.reduce(op, float_ptr(a), n, float_ptr(out)) elif is_int(a):

^

cudarray/wrap/reduction.pyx:18:15: undeclared name not builtin: is_int

Error compiling Cython file:

...

def _reduce(ReduceOp op, ArrayData a, unsigned int n, ArrayData out): if is_float(a): reduction.reduce(op, float_ptr(a), n, float_ptr(out)) elif is_int(a): reduction.reduce(op, int_ptr(a), n, int_ptr(out))

^

cudarray/wrap/reduction.pyx:19:36: undeclared name not builtin: int_ptr

Error compiling Cython file:

...

def _reduce(ReduceOp op, ArrayData a, unsigned int n, ArrayData out): if is_float(a): reduction.reduce(op, float_ptr(a), n, float_ptr(out)) elif is_int(a): reduction.reduce(op, int_ptr(a), n, int_ptr(out))

^

cudarray/wrap/reduction.pyx:19:24: Unable to deduce type parameters

Error compiling Cython file:

...

def _reduce_mat(ReduceOp op, ArrayData a, unsigned int m, unsigned int n, bool reduce_leading, ArrayData out): if is_float(a): reduction.reduce_mat(op, float_ptr(a), m, n, reduce_leading,

^

cudarray/wrap/reduction.pyx:27:28: Unable to deduce type parameters

Error compiling Cython file:

... bool reduce_leading, ArrayData out): if is_float(a): reduction.reduce_mat(op, float_ptr(a), m, n, reduce_leading, float_ptr(out)) elif is_int(a): reduction.reduce_mat(op, int_ptr(a), m, n, reduce_leading,

^

cudarray/wrap/reduction.pyx:30:28: Unable to deduce type parameters

Error compiling Cython file:

...

def _reduce_to_int(ReduceToIntOp op, ArrayData a, unsigned int n, ArrayData out): if is_float(a): reduction.reduce_to_int(op, float_ptr(a), n, int_ptr(out))

^

cudarray/wrap/reduction.pyx:40:31: Unable to deduce type parameters

Error compiling Cython file:

... def _reduce_to_int(ReduceToIntOp op, ArrayData a, unsigned int n, ArrayData out): if is_float(a): reduction.reduce_to_int(op, float_ptr(a), n, int_ptr(out)) elif is_int(a): reduction.reduce_to_int(op, int_ptr(a), n, int_ptr(out))

^

cudarray/wrap/reduction.pyx:42:31: Unable to deduce type parameters

Error compiling Cython file:

...

def _reduce_mat_to_int(ReduceToIntOp op, ArrayData a, unsigned int m, unsigned int n, bool reduce_leading, ArrayData out): if is_float(a): reduction.reduce_mat_to_int(op, float_ptr(a), m, n, reduce_leading,

^

cudarray/wrap/reduction.pyx:50:35: Unable to deduce type parameters

Error compiling Cython file:

... unsigned int n, bool reduce_leading, ArrayData out): if is_float(a): reduction.reduce_mat_to_int(op, float_ptr(a), m, n, reduce_leading, int_ptr(out)) elif is_int(a): reduction.reduce_mat_to_int(op, int_ptr(a), m, n, reduce_leading,

^

cudarray/wrap/reduction.pyx:53:35: Unable to deduce type parameters cythoning ./cudarray/wrap/blas.pyx to ./cudarray/wrap/blas.cpp

Error compiling Cython file:

... from libcpp cimport bool cimport numpy as np

cdef extern from 'cudarray/common.hpp' namespace 'cudarray': ctypedef int bool_t;

^

cudarray/wrap/array_data.pxd:5:23: Syntax error in ctypedef statement

Error compiling Cython file:

... cimport numpy as np cimport blas from .array_data cimport ArrayData, float_ptr, is_float

^

cudarray/wrap/blas.pyx:3:0: 'ArrayData.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport blas from .array_data cimport ArrayData, float_ptr, is_float

^

cudarray/wrap/blas.pyx:3:25: Name 'ArrayData' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport blas from .array_data cimport ArrayData, float_ptr, is_float

^

cudarray/wrap/blas.pyx:3:0: 'float_ptr.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport blas from .array_data cimport ArrayData, float_ptr, is_float

^

cudarray/wrap/blas.pyx:3:36: Name 'float_ptr' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport blas from .array_data cimport ArrayData, float_ptr, is_float

^

cudarray/wrap/blas.pyx:3:0: 'is_float.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport blas from .array_data cimport ArrayData, float_ptr, is_float

^

cudarray/wrap/blas.pyx:3:47: Name 'is_float' not declared in module 'array_data'

Error compiling Cython file:

...

no_trans_op = blas.OP_NO_TRANS trans_op = blas.OP_TRANS

def dot_(ArrayData a, ArrayData b, unsigned int n):

^

cudarray/wrap/blas.pyx:10:9: 'ArrayData' is not a type identifier

Error compiling Cython file:

...

no_trans_op = blas.OP_NO_TRANS trans_op = blas.OP_TRANS

def dot_(ArrayData a, ArrayData b, unsigned int n):

^

cudarray/wrap/blas.pyx:10:22: 'ArrayData' is not a type identifier

Error compiling Cython file:

... return blas.dot(float_ptr(a), float_ptr(b), n) else: raise ValueError('type %s not implemented' % str(a.dtype))

def gemv_(ArrayData A, ArrayData x, blas.TransposeOp trans, unsigned int m,

^

cudarray/wrap/blas.pyx:17:10: 'ArrayData' is not a type identifier

Error compiling Cython file:

... return blas.dot(float_ptr(a), float_ptr(b), n) else: raise ValueError('type %s not implemented' % str(a.dtype))

def gemv_(ArrayData A, ArrayData x, blas.TransposeOp trans, unsigned int m,

^

cudarray/wrap/blas.pyx:17:23: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('type %s not implemented' % str(a.dtype))

def gemv_(ArrayData A, ArrayData x, blas.TransposeOp trans, unsigned int m, unsigned int n, alpha, beta, ArrayData y):

^

cudarray/wrap/blas.pyx:18:39: 'ArrayData' is not a type identifier

Error compiling Cython file:

... beta, <float *>y.dev_ptr) else: raise ValueError('type %s not implemented' % str(A.dtype))

def gemm_(ArrayData A, ArrayData B, blas.TransposeOp transA,

^

cudarray/wrap/blas.pyx:26:10: 'ArrayData' is not a type identifier

Error compiling Cython file:

... beta, <float *>y.dev_ptr) else: raise ValueError('type %s not implemented' % str(A.dtype))

def gemm_(ArrayData A, ArrayData B, blas.TransposeOp transA,

^

cudarray/wrap/blas.pyx:26:23: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('type %s not implemented' % str(A.dtype))

def gemm_(ArrayData A, ArrayData B, blas.TransposeOp transA, blas.TransposeOp transB, unsigned int m, unsigned int n, unsigned int k, alpha, beta, ArrayData C):

^

cudarray/wrap/blas.pyx:28:39: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('type %s not implemented' % str(A.dtype))

cdef class BLASBatch_f: cdef BLASBatch[float] *ptr def init(self, ArrayData A, ArrayData B, ArrayData C, int batch_size,

^

cudarray/wrap/blas.pyx:38:23: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('type %s not implemented' % str(A.dtype))

cdef class BLASBatch_f: cdef BLASBatch[float] *ptr def init(self, ArrayData A, ArrayData B, ArrayData C, int batch_size,

^

cudarray/wrap/blas.pyx:38:36: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('type %s not implemented' % str(A.dtype))

cdef class BLASBatch_f: cdef BLASBatch[float] *ptr def init(self, ArrayData A, ArrayData B, ArrayData C, int batch_size,

^

cudarray/wrap/blas.pyx:38:49: 'ArrayData' is not a type identifier

Error compiling Cython file:

... unsigned int m, unsigned int n, unsigned int k, float alpha, float beta): self.ptr.gemm(transA, transB, m, n, k, alpha, beta)

cpdef blas_batch(ArrayData A, ArrayData B, ArrayData C, int batch_size,

^

cudarray/wrap/blas.pyx:52:17: 'ArrayData' is not a type identifier

Error compiling Cython file:

... unsigned int m, unsigned int n, unsigned int k, float alpha, float beta): self.ptr.gemm(transA, transB, m, n, k, alpha, beta)

cpdef blas_batch(ArrayData A, ArrayData B, ArrayData C, int batch_size,

^

cudarray/wrap/blas.pyx:52:30: 'ArrayData' is not a type identifier

Error compiling Cython file:

... unsigned int m, unsigned int n, unsigned int k, float alpha, float beta): self.ptr.gemm(transA, transB, m, n, k, alpha, beta)

cpdef blas_batch(ArrayData A, ArrayData B, ArrayData C, int batch_size,

^

cudarray/wrap/blas.pyx:52:43: 'ArrayData' is not a type identifier

Error compiling Cython file:

... no_trans_op = blas.OP_NO_TRANS trans_op = blas.OP_TRANS

def dot_(ArrayData a, ArrayData b, unsigned int n): if is_float(a):

^

cudarray/wrap/blas.pyx:11:15: undeclared name not builtin: is_float

Error compiling Cython file:

... trans_op = blas.OP_TRANS

def dot_(ArrayData a, ArrayData b, unsigned int n): if is_float(a): return blas.dot(float_ptr(a), float_ptr(b), n)

^

cudarray/wrap/blas.pyx:12:33: undeclared name not builtin: float_ptr

Error compiling Cython file:

... trans_op = blas.OP_TRANS

def dot_(ArrayData a, ArrayData b, unsigned int n): if is_float(a): return blas.dot(float_ptr(a), float_ptr(b), n)

^

cudarray/wrap/blas.pyx:12:23: Unable to deduce type parameters

Error compiling Cython file:

...

def gemv_(ArrayData A, ArrayData x, blas.TransposeOp trans, unsigned int m, unsigned int n, alpha, beta, ArrayData y): if is_float(A): blas.gemv(float_ptr(A), float_ptr(x), trans, m, n, alpha, beta, <float *>y.dev_ptr)

^

cudarray/wrap/blas.pyx:21:32: Python objects cannot be cast to pointers of primitive types

Error compiling Cython file:

...

def gemv_(ArrayData A, ArrayData x, blas.TransposeOp trans, unsigned int m, unsigned int n, alpha, beta, ArrayData y): if is_float(A): blas.gemv(float_ptr(A), float_ptr(x), trans, m, n, alpha,

^

cudarray/wrap/blas.pyx:20:17: Unable to deduce type parameters

Error compiling Cython file:

...

def gemm_(ArrayData A, ArrayData B, blas.TransposeOp transA, blas.TransposeOp transB, unsigned int m, unsigned int n, unsigned int k, alpha, beta, ArrayData C): if is_float(A): blas.gemm(float_ptr(A), float_ptr(B), transA, transB, m, n, k,

^

cudarray/wrap/blas.pyx:30:17: Unable to deduce type parameters

Error compiling Cython file:

...

cdef class BLASBatch_f: cdef BLASBatch[float] *ptr def init(self, ArrayData A, ArrayData B, ArrayData C, int batch_size, int Astride, int Bstride, int Cstride): self.ptr = new BLASBatch[float](float_ptr(A), float_ptr(B),

^

cudarray/wrap/blas.pyx:40:49: Cannot convert Python object to 'float const *'

Error compiling Cython file:

...

cdef class BLASBatch_f: cdef BLASBatch[float] *ptr def init(self, ArrayData A, ArrayData B, ArrayData C, int batch_size, int Astride, int Bstride, int Cstride): self.ptr = new BLASBatch[float](float_ptr(A), float_ptr(B),

^

cudarray/wrap/blas.pyx:40:63: Cannot convert Python object to 'float const *'

Error compiling Cython file:

... cdef class BLASBatch_f: cdef BLASBatch[float] *ptr def init(self, ArrayData A, ArrayData B, ArrayData C, int batch_size, int Astride, int Bstride, int Cstride): self.ptr = new BLASBatch[float](float_ptr%28A%29, float_ptr%28B%29, float_ptr%28C%29, batch_size, Astride, Bstride, Cstride)

^

cudarray/wrap/blas.pyx:41:21: Cannot convert Python object to 'float *' cythoning ./cudarray/wrap/random.pyx to ./cudarray/wrap/random.cpp

Error compiling Cython file:

... from libcpp cimport bool cimport numpy as np

cdef extern from 'cudarray/common.hpp' namespace 'cudarray': ctypedef int bool_t;

^

cudarray/wrap/array_data.pxd:5:23: Syntax error in ctypedef statement

Error compiling Cython file:

... cimport numpy as np cimport random from .array_data cimport ArrayData, float_ptr, is_float

^

cudarray/wrap/random.pyx:3:0: 'ArrayData.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport random from .array_data cimport ArrayData, float_ptr, is_float

^

cudarray/wrap/random.pyx:3:25: Name 'ArrayData' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport random from .array_data cimport ArrayData, float_ptr, is_float

^

cudarray/wrap/random.pyx:3:0: 'float_ptr.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport random from .array_data cimport ArrayData, float_ptr, is_float

^

cudarray/wrap/random.pyx:3:36: Name 'float_ptr' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport random from .array_data cimport ArrayData, float_ptr, is_float

^

cudarray/wrap/random.pyx:3:0: 'is_float.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport random from .array_data cimport ArrayData, float_ptr, is_float

^

cudarray/wrap/random.pyx:3:47: Name 'is_float' not declared in module 'array_data'

Error compiling Cython file:

...

def _seed(val): random.seed( val)

def _random_normal(ArrayData a, mu, sigma, unsigned int n):

^

cudarray/wrap/random.pyx:10:19: 'ArrayData' is not a type identifier

Error compiling Cython file:

... random.random_normal(float_ptr(a), mu, sigma, n) else: raise ValueError('type %s not implemented' % str(a.dtype))

def _random_uniform(ArrayData a, low, high, unsigned int n):

^

cudarray/wrap/random.pyx:17:20: 'ArrayData' is not a type identifier

Error compiling Cython file:

... def _seed(val): random.seed( val)

def _random_normal(ArrayData a, mu, sigma, unsigned int n): if is_float(a):

^

cudarray/wrap/random.pyx:11:15: undeclared name not builtin: is_float

Error compiling Cython file:

... random.seed( val)

def _random_normal(ArrayData a, mu, sigma, unsigned int n): if is_float(a): random.random_normal(float_ptr(a), mu, sigma, n)

^

cudarray/wrap/random.pyx:12:38: undeclared name not builtin: float_ptr

Error compiling Cython file:

... random.seed( val)

def _random_normal(ArrayData a, mu, sigma, unsigned int n): if is_float(a): random.random_normal(float_ptr(a), mu, sigma, n)

^

cudarray/wrap/random.pyx:12:28: Unable to deduce type parameters

Error compiling Cython file:

... raise ValueError('type %s not implemented' % str(a.dtype))

def _random_uniform(ArrayData a, low, high, unsigned int n): if is_float(a): random.random_uniform(float_ptr(a), low, high, n)

^

cudarray/wrap/random.pyx:19:29: Unable to deduce type parameters cythoning ./cudarray/wrap/nnet.pyx to ./cudarray/wrap/nnet.cpp

Error compiling Cython file:

... from libcpp cimport bool cimport numpy as np

cdef extern from 'cudarray/common.hpp' namespace 'cudarray': ctypedef int bool_t;

^

cudarray/wrap/array_data.pxd:5:23: Syntax error in ctypedef statement

Error compiling Cython file:

... cimport numpy as np cimport nnet from .array_data cimport ArrayData, float_ptr, int_ptr, is_float

^

cudarray/wrap/nnet.pyx:3:0: 'ArrayData.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport nnet from .array_data cimport ArrayData, float_ptr, int_ptr, is_float

^

cudarray/wrap/nnet.pyx:3:25: Name 'ArrayData' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport nnet from .array_data cimport ArrayData, float_ptr, int_ptr, is_float

^

cudarray/wrap/nnet.pyx:3:0: 'float_ptr.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport nnet from .array_data cimport ArrayData, float_ptr, int_ptr, is_float

^

cudarray/wrap/nnet.pyx:3:36: Name 'float_ptr' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport nnet from .array_data cimport ArrayData, float_ptr, int_ptr, is_float

^

cudarray/wrap/nnet.pyx:3:0: 'int_ptr.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport nnet from .array_data cimport ArrayData, float_ptr, int_ptr, is_float

^

cudarray/wrap/nnet.pyx:3:47: Name 'int_ptr' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport nnet from .array_data cimport ArrayData, float_ptr, int_ptr, is_float

^

cudarray/wrap/nnet.pyx:3:0: 'is_float.pxd' not found

Error compiling Cython file:

... cimport numpy as np cimport nnet from .array_data cimport ArrayData, float_ptr, int_ptr, is_float

^

cudarray/wrap/nnet.pyx:3:56: Name 'is_float' not declared in module 'array_data'

Error compiling Cython file:

... cimport numpy as np cimport nnet from .array_data cimport ArrayData, float_ptr, int_ptr, is_float

def _conv_bc01_matmul(ArrayData imgs, ArrayData filters, int n_imgs,

^

cudarray/wrap/nnet.pyx:6:22: 'ArrayData' is not a type identifier

Error compiling Cython file:

... cimport numpy as np cimport nnet from .array_data cimport ArrayData, float_ptr, int_ptr, is_float

def _conv_bc01_matmul(ArrayData imgs, ArrayData filters, int n_imgs,

^

cudarray/wrap/nnet.pyx:6:38: 'ArrayData' is not a type identifier

Error compiling Cython file:

... from .array_data cimport ArrayData, float_ptr, int_ptr, is_float

def _conv_bc01_matmul(ArrayData imgs, ArrayData filters, int n_imgs, int n_channels, int n_filters, img_shape, filter_shape, padding, strides, ArrayData convout):

^

cudarray/wrap/nnet.pyx:8:4: 'ArrayData' is not a type identifier

Error compiling Cython file:

... pad_y, pad_x, stride_y, stride_x, float_ptr(convout)) else: raise ValueError('type %s not implemented' % str(imgs.dtype))

def _conv_bc01_matmul_bprop_filters(ArrayData imgs, ArrayData convout_d,

^

cudarray/wrap/nnet.pyx:25:36: 'ArrayData' is not a type identifier

Error compiling Cython file:

... pad_y, pad_x, stride_y, stride_x, float_ptr(convout)) else: raise ValueError('type %s not implemented' % str(imgs.dtype))

def _conv_bc01_matmul_bprop_filters(ArrayData imgs, ArrayData convout_d,

^

cudarray/wrap/nnet.pyx:25:52: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('type %s not implemented' % str(imgs.dtype))

def _conv_bc01_matmul_bprop_filters(ArrayData imgs, ArrayData convout_d, int n_imgs, int n_channels, int n_filters, img_shape, filter_shape, padding, strides, ArrayData filters_d):

^

cudarray/wrap/nnet.pyx:27:22: 'ArrayData' is not a type identifier

Error compiling Cython file:

... float_ptr(filters_d)) else: raise ValueError('type %s not implemented' % str(imgs.dtype))

def _conv_bc01_matmul_bprop_imgs(ArrayData filters, ArrayData convout_d,

^

cudarray/wrap/nnet.pyx:45:33: 'ArrayData' is not a type identifier

Error compiling Cython file:

... float_ptr(filters_d)) else: raise ValueError('type %s not implemented' % str(imgs.dtype))

def _conv_bc01_matmul_bprop_imgs(ArrayData filters, ArrayData convout_d,

^

cudarray/wrap/nnet.pyx:45:52: 'ArrayData' is not a type identifier

Error compiling Cython file:

... raise ValueError('type %s not implemented' % str(imgs.dtype))

def _conv_bc01_matmul_bprop_imgs(ArrayData filters, ArrayData convout_d, int n_imgs, int n_channels, int n_filters, img_shape, filter_shape, padding, strides, ArrayData imgs_d):

^

cudarray/wrap/nnet.pyx:47:22: 'ArrayData' is not a type identifier

Error compiling Cython file:

... float_ptr(imgs_d)) else: raise ValueError('type %s not implemented' % str(filters.dtype))

def _max_pool_b01(ArrayData imgs, int n_imgs, img_shape, win_shape, padding,

^

cudarray/wrap/nnet.pyx:65:18: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('type %s not implemented' % str(filters.dtype))

def _max_pool_b01(ArrayData imgs, int n_imgs, img_shape, win_shape, padding, strides, ArrayData out, ArrayData mask):

^

cudarray/wrap/nnet.pyx:66:13: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('type %s not implemented' % str(filters.dtype))

def _max_pool_b01(ArrayData imgs, int n_imgs, img_shape, win_shape, padding, strides, ArrayData out, ArrayData mask):

^

cudarray/wrap/nnet.pyx:66:28: 'ArrayData' is not a type identifier

Error compiling Cython file:

... float_ptr(out), int_ptr(mask)) else: raise ValueError('type %s not implemented' % str(imgs.dtype))

def _max_pool_b01_bprop(ArrayData out_d, ArrayData mask, int n_imgs, img_shape,

^

cudarray/wrap/nnet.pyx:83:24: 'ArrayData' is not a type identifier

Error compiling Cython file:

... float_ptr(out), int_ptr(mask)) else: raise ValueError('type %s not implemented' % str(imgs.dtype))

def _max_pool_b01_bprop(ArrayData out_d, ArrayData mask, int n_imgs, img_shape,

^

cudarray/wrap/nnet.pyx:83:41: 'ArrayData' is not a type identifier

Error compiling Cython file:

... else: raise ValueError('type %s not implemented' % str(imgs.dtype))

def _max_pool_b01_bprop(ArrayData out_d, ArrayData mask, int n_imgs, img_shape, win_shape, padding, strides, ArrayData imgs_d):

^

cudarray/wrap/nnet.pyx:84:33: 'ArrayData' is not a type identifier

Error compiling Cython file:

... stride_x, float_ptr(imgs_d)) else: raise ValueError('type %s not implemented' % str(out_d.dtype))

def _one_hot_encode(ArrayData labels, int n_classes, int n, ArrayData out):

^

cudarray/wrap/nnet.pyx:101:20: 'ArrayData' is not a type identifier

Error compiling Cython file:

... stride_x, float_ptr(imgs_d)) else: raise ValueError('type %s not implemented' % str(out_d.dtype))

def _one_hot_encode(ArrayData labels, int n_classes, int n, ArrayData out):

^

cudarray/wrap/nnet.pyx:101:60: 'ArrayData' is not a type identifier

Error compiling Cython file:

... cdef int filter_w = filter_shape[1] cdef int pad_y = padding[0] cdef int pad_x = padding[1] cdef int stride_y = strides[0] cdef int stride_x = strides[1] if is_float(imgs):

^

cudarray/wrap/nnet.pyx:17:15: undeclared name not builtin: is_float

Error compiling Cython file:

... cdef int pad_y = padding[0] cdef int pad_x = padding[1] cdef int stride_y = strides[0] cdef int stride_x = strides[1] if is_float(imgs): nnet.conv_bc01_matmul(float_ptr(imgs), float_ptr(filters),

^

cudarray/wrap/nnet.pyx:18:39: undeclared name not builtin: float_ptr

Error compiling Cython file:

... cdef int pad_y = padding[0] cdef int pad_x = padding[1] cdef int stride_y = strides[0] cdef int stride_x = strides[1] if is_float(imgs): nnet.conv_bc01_matmul(float_ptr(imgs), float_ptr(filters),

^

cudarray/wrap/nnet.pyx:18:29: Unable to deduce type parameters

Error compiling Cython file:

... cdef int pad_y = padding[0] cdef int pad_x = padding[1] cdef int stride_y = strides[0] cdef int stride_x = strides[1] if is_float(imgs): nnet.conv_bc01_matmul_bprop_filters(float_ptr(imgs),

^

cudarray/wrap/nnet.pyx:37:43: Unable to deduce type parameters

Error compiling Cython file:

... cdef int pad_y = padding[0] cdef int pad_x = padding[1] cdef int stride_y = strides[0] cdef int stride_x = strides[1] if is_float(filters): nnet.conv_bc01_matmul_bprop_imgs(float_ptr(filters),

^

cudarray/wrap/nnet.pyx:57:40: Unable to deduce type parameters

Error compiling Cython file:

... cdef int stride_y = strides[0] cdef int stride_x = strides[1] if is_float(imgs): nnet.max_pool_b01(float_ptr(imgs), n_imgs, img_h, img_w, win_h, win_w, pad_y, pad_x, stride_y, stride_x, float_ptr(out), int_ptr(mask))

^

cudarray/wrap/nnet.pyx:78:35: undeclared name not builtin: int_ptr

Error compiling Cython file:

... cdef int pad_y = padding[0] cdef int pad_x = padding[1] cdef int stride_y = strides[0] cdef int stride_x = strides[1] if is_float(imgs): nnet.max_pool_b01(float_ptr(imgs), n_imgs, img_h, img_w,

^

cudarray/wrap/nnet.pyx:76:25: Unable to deduce type parameters

Error compiling Cython file:

... cdef int pad_y = padding[0] cdef int pad_x = padding[1] cdef int stride_y = strides[0] cdef int stride_x = strides[1] if is_float(out_d): nnet.max_pool_b01_bprob(float_ptr(out_d), int_ptr(mask),

^

cudarray/wrap/nnet.pyx:94:31: Unable to deduce type parameters

Error compiling Cython file:

... raise ValueError('type %s not implemented' % str(out_d.dtype))

def _one_hot_encode(ArrayData labels, int n_classes, int n, ArrayData out): if is_float(out): nnet.one_hot_encode(int_ptr(labels), n_classes, n, float_ptr(out))

^

cudarray/wrap/nnet.pyx:103:27: Unable to deduce type parameters cythoning ./cudarray/wrap/cudnn.pyx to ./cudarray/wrap/cudnn.cpp

Error compiling Cython file:

... from libcpp cimport bool cimport numpy as np

cdef extern from 'cudarray/common.hpp' namespace 'cudarray': ctypedef int bool_t;

^

cudarray/wrap/array_data.pxd:5:23: Syntax error in ctypedef statement

Error compiling Cython file:

... from cpython cimport array as c_array from array import array cimport numpy as np from .array_data cimport ArrayData, float_ptr

^

cudarray/wrap/cudnn.pyx:4:0: 'ArrayData.pxd' not found

Error compiling Cython file:

... from cpython cimport array as c_array from array import array cimport numpy as np from .array_data cimport ArrayData, float_ptr

^

cudarray/wrap/cudnn.pyx:4:25: Name 'ArrayData' not declared in module 'array_data'

Error compiling Cython file:

... from cpython cimport array as c_array from array import array cimport numpy as np from .array_data cimport ArrayData, float_ptr

^

cudarray/wrap/cudnn.pyx:4:0: 'float_ptr.pxd' not found

Error compiling Cython file:

... from cpython cimport array as c_array from array import array cimport numpy as np from .array_data cimport ArrayData, float_ptr

^

cudarray/wrap/cudnn.pyx:4:36: Name 'float_ptr' not declared in module 'array_data'

Error compiling Cython file:

...

def __reduce__(self):
    args = (self.win_shape, self.padding, self.strides, self.mode)
    return (PoolBC01CuDNN_f, args)

def fprop(self, ArrayData imgs, imgs_shape, ArrayData poolout):
               ^

cudarray/wrap/cudnn.pyx:42:20: 'ArrayData' is not a type identifier

Error compiling Cython file:

...

def __reduce__(self):
    args = (self.win_shape, self.padding, self.strides, self.mode)
    return (PoolBC01CuDNN_f, args)

def fprop(self, ArrayData imgs, imgs_shape, ArrayData poolout):
                                           ^

cudarray/wrap/cudnn.pyx:42:48: 'ArrayData' is not a type identifier

Error compiling Cython file:

... def fprop(self, ArrayData imgs, imgs_shape, ArrayData poolout): cdef c_array.array imgs_shape_ = array('i', imgs_shape) self.ptr.fprop(float_ptr(imgs), imgs_shape_.data.as_ints, float_ptr(poolout))

def bprop(self, ArrayData imgs, ArrayData poolout, ArrayData poolout_d,
               ^

cudarray/wrap/cudnn.pyx:47:20: 'ArrayData' is not a type identifier

Error compiling Cython file:

... def fprop(self, ArrayData imgs, imgs_shape, ArrayData poolout): cdef c_array.array imgs_shape_ = array('i', imgs_shape) self.ptr.fprop(float_ptr(imgs), imgs_shape_.data.as_ints, float_ptr(poolout))

def bprop(self, ArrayData imgs, ArrayData poolout, ArrayData poolout_d,
                               ^

cudarray/wrap/cudnn.pyx:47:36: 'ArrayData' is not a type identifier

Error compiling Cython file:

... def fprop(self, ArrayData imgs, imgs_shape, ArrayData poolout): cdef c_array.array imgs_shape_ = array('i', imgs_shape) self.ptr.fprop(float_ptr(imgs), imgs_shape_.data.as_ints, float_ptr(poolout))

def bprop(self, ArrayData imgs, ArrayData poolout, ArrayData poolout_d,
                                                  ^

cudarray/wrap/cudnn.pyx:47:55: 'ArrayData' is not a type identifier

Error compiling Cython file:

... cdef c_array.array imgs_shape_ = array('i', imgs_shape) self.ptr.fprop(float_ptr(imgs), imgs_shape_.data.as_ints, float_ptr(poolout))

def bprop(self, ArrayData imgs, ArrayData poolout, ArrayData poolout_d,
          ArrayData imgs_d):
         ^

cudarray/wrap/cudnn.pyx:48:14: 'ArrayData' is not a type identifier

Error compiling Cython file:

...

def __reduce__(self):
    args = (self.padding, self.strides)
    return (ConvBC01CuDNN_f, args)

def fprop(self, ArrayData imgs, ArrayData filters, int n_imgs,
               ^

cudarray/wrap/cudnn.pyx:74:20: 'ArrayData' is not a type identifier

Error compiling Cython file:

...

def __reduce__(self):
    args = (self.padding, self.strides)
    return (ConvBC01CuDNN_f, args)

def fprop(self, ArrayData imgs, ArrayData filters, int n_imgs,
                               ^

cudarray/wrap/cudnn.pyx:74:36: 'ArrayData' is not a type identifier

Error compiling Cython file:

... args = (self.padding, self.strides) return (ConvBC01CuDNN_f, args)

def fprop(self, ArrayData imgs, ArrayData filters, int n_imgs,
          int n_channels, int n_filters, img_shape, filter_shape,
          ArrayData convout):
         ^

cudarray/wrap/cudnn.pyx:76:14: 'ArrayData' is not a type identifier

Error compiling Cython file:

... cdef int filter_h = filter_shape[0] cdef int filter_w = filter_shape[1] self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels, n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
               ^

cudarray/wrap/cudnn.pyx:84:20: 'ArrayData' is not a type identifier

Error compiling Cython file:

... cdef int filter_h = filter_shape[0] cdef int filter_w = filter_shape[1] self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels, n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
                               ^

cudarray/wrap/cudnn.pyx:84:36: 'ArrayData' is not a type identifier

Error compiling Cython file:

... cdef int filter_h = filter_shape[0] cdef int filter_w = filter_shape[1] self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels, n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
                                                  ^

cudarray/wrap/cudnn.pyx:84:55: 'ArrayData' is not a type identifier

Error compiling Cython file:

... cdef int filter_w = filter_shape[1] self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels, n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
          ArrayData imgs_d, ArrayData filters_d):
         ^

cudarray/wrap/cudnn.pyx:85:14: 'ArrayData' is not a type identifier

Error compiling Cython file:

... cdef int filter_w = filter_shape[1] self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels, n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
          ArrayData imgs_d, ArrayData filters_d):
                           ^

cudarray/wrap/cudnn.pyx:85:32: 'ArrayData' is not a type identifier

Error compiling Cython file:

... args = (self.win_shape, self.padding, self.strides, self.mode) return (PoolBC01CuDNN_f, args)

def fprop(self, ArrayData imgs, imgs_shape, ArrayData poolout):
    cdef c_array.array imgs_shape_ = array('i', imgs_shape)
    self.ptr.fprop(float_ptr(imgs), imgs_shape_.data.as_ints,
                           ^

cudarray/wrap/cudnn.pyx:44:32: undeclared name not builtin: float_ptr

Error compiling Cython file:

... args = (self.win_shape, self.padding, self.strides, self.mode) return (PoolBC01CuDNN_f, args)

def fprop(self, ArrayData imgs, imgs_shape, ArrayData poolout):
    cdef c_array.array imgs_shape_ = array('i', imgs_shape)
    self.ptr.fprop(float_ptr(imgs), imgs_shape_.data.as_ints,
                           ^

cudarray/wrap/cudnn.pyx:44:32: Cannot convert Python object to 'float const *'

Error compiling Cython file:

... return (PoolBC01CuDNN_f, args)

def fprop(self, ArrayData imgs, imgs_shape, ArrayData poolout):
    cdef c_array.array imgs_shape_ = array('i', imgs_shape)
    self.ptr.fprop(float_ptr(imgs), imgs_shape_.data.as_ints,
                   float_ptr(poolout))
                           ^

cudarray/wrap/cudnn.pyx:45:32: Cannot convert Python object to 'float *'

Error compiling Cython file:

... float_ptr(poolout))

def bprop(self, ArrayData imgs, ArrayData poolout, ArrayData poolout_d,
          ArrayData imgs_d):
    self.ptr.bprop(
        <const float *> imgs.dev_ptr,
       ^

cudarray/wrap/cudnn.pyx:50:12: Python objects cannot be cast to pointers of primitive types

Error compiling Cython file:

...

def bprop(self, ArrayData imgs, ArrayData poolout, ArrayData poolout_d,
          ArrayData imgs_d):
    self.ptr.bprop(
        <const float *> imgs.dev_ptr,
        <const float *> poolout.dev_ptr,
       ^

cudarray/wrap/cudnn.pyx:51:12: Python objects cannot be cast to pointers of primitive types

Error compiling Cython file:

... def bprop(self, ArrayData imgs, ArrayData poolout, ArrayData poolout_d, ArrayData imgs_d): self.ptr.bprop( <const float *> imgs.dev_ptr, <const float *> poolout.dev_ptr, <const float *> poolout_d.dev_ptr, <float *> imgs_d.dev_ptr

^

cudarray/wrap/cudnn.pyx:52:12: Python objects cannot be cast to pointers of primitive types

Error compiling Cython file:

... def bprop(self, ArrayData imgs, ArrayData poolout, ArrayData poolout_d, ArrayData imgs_d): self.ptr.bprop( <const float *> imgs.dev_ptr, <const float *> poolout.dev_ptr, <const float *> poolout_d.dev_ptr, <float *> imgs_d.dev_ptr

^

cudarray/wrap/cudnn.pyx:52:47: Python objects cannot be cast to pointers of primitive types

Error compiling Cython file:

... ArrayData convout): cdef int img_h = img_shape[0] cdef int img_w = img_shape[1] cdef int filter_h = filter_shape[0] cdef int filter_w = filter_shape[1] self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels,

^

cudarray/wrap/cudnn.pyx:81:32: Cannot convert Python object to 'float const *'

Error compiling Cython file:

... ArrayData convout): cdef int img_h = img_shape[0] cdef int img_w = img_shape[1] cdef int filter_h = filter_shape[0] cdef int filter_w = filter_shape[1] self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels,

^

cudarray/wrap/cudnn.pyx:81:49: Cannot convert Python object to 'float const *'

Error compiling Cython file:

... cdef int img_h = img_shape[0] cdef int img_w = img_shape[1] cdef int filter_h = filter_shape[0] cdef int filter_w = filter_shape[1] self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels, n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

^

cudarray/wrap/cudnn.pyx:82:66: Cannot convert Python object to 'float *'

Error compiling Cython file:

... self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels, n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
          ArrayData imgs_d, ArrayData filters_d):
    cdef float *imgs_ptr = <float *>NULL if imgs is None \
                          ^

cudarray/wrap/cudnn.pyx:86:31: Cannot convert 'float *' to Python object

Error compiling Cython file:

... self.ptr.fprop(float_ptr(imgs), float_ptr(filters), n_imgs, n_channels, n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
          ArrayData imgs_d, ArrayData filters_d):
    cdef float *imgs_ptr = <float *>NULL if imgs is None \
                          ^

cudarray/wrap/cudnn.pyx:86:31: Cannot convert Python object to 'float *'

Error compiling Cython file:

... n_filters, img_h, img_w, filter_h, filter_w, float_ptr(convout))

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
          ArrayData imgs_d, ArrayData filters_d):
    cdef float *imgs_ptr = <float *>NULL if imgs is None \
                                         else float_ptr(imgs)
                                                      ^

cudarray/wrap/cudnn.pyx:87:59: Cannot convert Python object to 'float *'

Error compiling Cython file:

...

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
          ArrayData imgs_d, ArrayData filters_d):
    cdef float *imgs_ptr = <float *>NULL if imgs is None \
                                         else float_ptr(imgs)
    cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None \
                            ^

cudarray/wrap/cudnn.pyx:88:33: Cannot convert 'float *' to Python object

Error compiling Cython file:

...

def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d,
          ArrayData imgs_d, ArrayData filters_d):
    cdef float *imgs_ptr = <float *>NULL if imgs is None \
                                         else float_ptr(imgs)
    cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None \
                            ^

cudarray/wrap/cudnn.pyx:88:33: Cannot convert Python object to 'float *'

Error compiling Cython file:

... def bprop(self, ArrayData imgs, ArrayData filters, ArrayData convout_d, ArrayData imgs_d, ArrayData filters_d): cdef float *imgs_ptr = <float *>NULL if imgs is None
else float_ptr(imgs) cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None
else float_ptr(imgs_d)

^

cudarray/wrap/cudnn.pyx:89:61: Cannot convert Python object to 'float *'

Error compiling Cython file:

... ArrayData imgs_d, ArrayData filters_d): cdef float *imgs_ptr = <float *>NULL if imgs is None
else float_ptr(imgs) cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None
else float_ptr(imgs_d) cdef float *filters_d_ptr = <float *>NULL if filters_d is None \

^

cudarray/wrap/cudnn.pyx:90:36: Cannot convert 'float *' to Python object

Error compiling Cython file:

... ArrayData imgs_d, ArrayData filters_d): cdef float *imgs_ptr = <float *>NULL if imgs is None
else float_ptr(imgs) cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None
else float_ptr(imgs_d) cdef float *filters_d_ptr = <float *>NULL if filters_d is None \

^

cudarray/wrap/cudnn.pyx:90:36: Cannot convert Python object to 'float *'

Error compiling Cython file:

... cdef float *imgs_ptr = <float *>NULL if imgs is None
else float_ptr(imgs) cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None
else float_ptr(imgs_d) cdef float *filters_d_ptr = <float *>NULL if filters_d is None
else float_ptr(filters_d)

^

cudarray/wrap/cudnn.pyx:91:64: Cannot convert Python object to 'float *'

Error compiling Cython file:

... else float_ptr(imgs) cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None
else float_ptr(imgs_d) cdef float *filters_d_ptr = <float *>NULL if filters_d is None
else float_ptr(filters_d) self.ptr.bprop(imgs_ptr, float_ptr(filters),

^

cudarray/wrap/cudnn.pyx:92:42: Cannot convert Python object to 'float const *'

Error compiling Cython file:

... cdef float *imgs_d_ptr = <float *>NULL if imgs_d is None
else float_ptr(imgs_d) cdef float *filters_d_ptr = <float *>NULL if filters_d is None
else float_ptr(filters_d) self.ptr.bprop(imgs_ptr, float_ptr(filters), float_ptr(convout_d), imgs_d_ptr, filters_d_ptr)

^

cudarray/wrap/cudnn.pyx:93:32: Cannot convert Python object to 'float const *' building 'cudarray.wrap.cudnn' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/cuda-7.0/include -I./include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c ./cudarray/wrap/cudnn.cpp -o build/temp.linux-x86_64-2.7/./cudarray/wrap/cudnn.o -DCUDNN_ENABLED -O3 -fPIC -Wall -Wfatal-errors cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default] ./cudarray/wrap/cudnn.cpp:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation. #error Do not use this file, it is the result of a failed Cython compilation. ^ compilation terminated due to -Wfatal-errors. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 '''

subercui avatar Sep 05 '15 16:09 subercui

Seems like a duplicate of #13. What is import cython; print(cython.__version__)?

andersbll avatar Sep 05 '15 16:09 andersbll

It's "0.20.1post0" ! Seems find the problem. But I already tried pip install cython==0.23 , how to update it?

subercui avatar Sep 05 '15 16:09 subercui

Try pip install -U cython as it says. :)

andersbll avatar Sep 05 '15 16:09 andersbll

Cython is not updated this way. Even after pip uninstall cython, import cython; print(cython.__version__) shows 0.20.1post0. There are some related files left in the system:

/home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/IPython/extensions/cythonmagic.py /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/IPython/extensions/cythonmagic.pyc /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/linalg/cython_blas.pxd /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/linalg/cython_blas.so /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/linalg/cython_lapack.pxd /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/linalg/cython_lapack.so /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/linalg/_cython_signature_generator.py /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/linalg/_cython_signature_generator.pyc /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/linalg/_cython_wrapper_generators.py /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/linalg/_cython_wrapper_generators.pyc /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/linalg/tests/test_cython_blas.py /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/linalg/tests/test_cython_blas.pyc /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/linalg/tests/test_cython_lapack.py /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/linalg/tests/test_cython_lapack.pyc /home/suber/Git/caiyun-backend/.py/lib/python2.7/site-packages/scipy/stats/vonmises_cython.so /home/suber/Style/cudarray/Cython-0.20.1post0-py2.7-linux-x86_64.egg/Cython/Debugger/libcython.py /home/suber/Style/cudarray/Cython-0.20.1post0-py2.7-linux-x86_64.egg/Cython/Debugger/libcython.pyc /home/suber/Style/cudarray/Cython-0.20.1post0-py2.7-linux-x86_64.egg/Cython/Debugger/Tests/test_libcython_in_gdb.py /home/suber/Style/cudarray/Cython-0.20.1post0-py2.7-linux-x86_64.egg/Cython/Debugger/Tests/test_libcython_in_gdb.pyc /home/suber/Style/cudarray/Cython-0.20.1post0-py2.7-linux-x86_64.egg/cython.py /home/suber/Style/cudarray/Cython-0.20.1post0-py2.7-linux-x86_64.egg/cython.pyc /usr/bin/cython /usr/lib/python2.7/dist-packages/Cython/Debugger/libcython.py /usr/lib/python2.7/dist-packages/Cython/Debugger/libcython.pyc /usr/lib/python2.7/dist-packages/Cython/Debugger/Tests/test_libcython_in_gdb.py /usr/lib/python2.7/dist-packages/Cython/Debugger/Tests/test_libcython_in_gdb.pyc /usr/lib/python2.7/dist-packages/cython.py /usr/lib/python2.7/dist-packages/cython.pyc /usr/lib/python2.7/dist-packages/scipy/stats/vonmises_cython.so /usr/local/bin/cython /usr/local/bin/cythonize /usr/local/lib/python2.7/dist-packages/Cython/Debugger/libcython.py /usr/local/lib/python2.7/dist-packages/Cython/Debugger/libcython.pyc /usr/local/lib/python2.7/dist-packages/Cython/Debugger/Tests/test_libcython_in_gdb.py /usr/local/lib/python2.7/dist-packages/Cython/Debugger/Tests/test_libcython_in_gdb.pyc /usr/local/lib/python2.7/dist-packages/cython.py /usr/local/lib/python2.7/dist-packages/cython.pyc /usr/local/lib/python2.7/dist-packages/IPython/extensions/cythonmagic.py /usr/local/lib/python2.7/dist-packages/IPython/extensions/cythonmagic.pyc /usr/local/lib/python2.7/dist-packages/zmq/backend/cython /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/checkrc.pxd /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/constants.so /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/context.pxd /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/context.so /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/_device.so /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/error.so /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/init.py /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/init.pyc /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/libzmq.pxd /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/message.pxd /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/message.so /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/_poll.so /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/socket.pxd /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/socket.so /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/utils.pxd /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/utils.so /usr/local/lib/python2.7/dist-packages/zmq/backend/cython/_version.so /usr/share/doc/cython /usr/share/doc/cython/changelog.Debian.gz /usr/share/doc/cython/copyright /usr/share/doc/cython/README.Debian /usr/share/doc/cython/upstream /usr/share/man/man1/cython.1.gz /var/cache/apt/archives/cython_0.20.1+git90-g0e6e38e-1ubuntu2_amd64.deb /var/lib/dpkg/info/cython.list /var/lib/dpkg/info/cython.md5sums /var/lib/dpkg/info/cython.postinst /var/lib/dpkg/info/cython.prerm

subercui avatar Sep 05 '15 17:09 subercui

I can't quite figure out what goes wrong, but your Python setup must be faulty somehow. Try pip install --user -U cython or maybe sudo pip install -U cython to overwrite your system installation of Cython. Alternatively, I can recommend the Anaconda Python distribution.

andersbll avatar Sep 05 '15 17:09 andersbll

I had a similar problem, seems like even after sudo pip install -U cython the old files are not deleted e.g. if you installed cython via apt-get in ubuntu.

I solved it by running sudo apt-get remove cython

vbalnt avatar Oct 21 '15 17:10 vbalnt

Thank you. For me I deleted cython directory under /usr/bin, and finally solved it.

subercui avatar Oct 25 '15 12:10 subercui