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
'''