Menu

Problem running setup.py

Help
aperske
2010-03-29
2013-04-25
  • aperske

    aperske - 2010-03-29

    Hi,

    on running "setup.py build" on, win7, python 2.6.4, MS Visual Studio 2008 c++ Express and the ATI Stream SDK, all in 64bit versions i get  tons of errors from the pyopencl.h and opencl_wrap.c.

    pyopencl.h reports misplaced  ' ; ' and ' } ' while
    opencl_wrap.c reports a varity of ' * ' and all kinds of opening and closing brackets.

    errors in pyopencl.h seem to originate from lines 26-28.

    i am not that familiar with c/c++ so its kind of hard für me to pin down the source.

     
  • sean

    sean - 2010-03-29

    Could you please post the full error and the version you are using (svn rev or tarball)?

    lines 26-28 are:

    #ifdef __cplusplus
    extern "C" {
    #endif
    

    I'm not sure why win7 would not process this correctly but I will research into this.

    Thanks for the help
    ~Sean

     
  • aperske

    aperske - 2010-03-30

    I'm using the tarball, alpha-1.0 downloaded from this site.

    D:\temp\clyther-alpha-1.0>setup.py build
    running build
    running build_py
    running build_ext
    building 'copencl' extension
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nolog
    o /Ox /MD /W3 /GS- /DNDEBUG -I/usr/include/CL "-IC:\Program Files\Python26\inclu
    de" "-IC:\Program Files\Python26\PC" /Tcsrc/opencl_wrap.c /Fobuild\temp.win-amd6
    4-2.6\Release\src/opencl_wrap.obj
    opencl_wrap.c
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(46) : error C2059: syntax error : ';'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(48) : error C2059: syntax error : '}'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(51) : error C2059: syntax error : ';'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(58) : error C2059: syntax error : '}'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(61) : error C2059: syntax error : ';'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(64) : error C2059: syntax error : '}'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(68) : error C2059: syntax error : ';'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(72) : error C2059: syntax error : '}'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(75) : error C2059: syntax error : ';'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(78) : error C2059: syntax error : '}'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(85) : error C2059: syntax error : ';'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(88) : error C2059: syntax error : '}'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(93) : error C2059: syntax error : ';'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(96) : error C2059: syntax error : '}'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(100) : error C2059: syntax error : ';'
    d:\temp\clyther-alpha-1.0\src\pyopencl.h(102) : error C2059: syntax error : '}'
    src/opencl_wrap.c(329) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(329) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(329) : error C2059: syntax error : ')'
    src/opencl_wrap.c(330) : error C2054: expected '(' to follow 'self'
    src/opencl_wrap.c(366) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(366) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(366) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(366) : error C2059: syntax error : ')'
    src/opencl_wrap.c(387) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(387) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(387) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(387) : error C2059: syntax error : ')'
    src/opencl_wrap.c(404) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(404) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(404) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(404) : error C2059: syntax error : ')'
    src/opencl_wrap.c(421) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(421) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(421) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(421) : error C2059: syntax error : ')'
    src/opencl_wrap.c(439) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(439) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(439) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(439) : error C2059: syntax error : ')'
    src/opencl_wrap.c(472) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(472) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(472) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(472) : error C2059: syntax error : ')'
    src/opencl_wrap.c(490) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(490) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(490) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(490) : error C2059: syntax error : ')'
    src/opencl_wrap.c(506) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(506) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(506) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(506) : error C2059: syntax error : ')'
    src/opencl_wrap.c(523) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(523) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(523) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(523) : error C2059: syntax error : ')'
    src/opencl_wrap.c(540) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(540) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(540) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(540) : error C2059: syntax error : ')'
    src/opencl_wrap.c(557) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(557) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(557) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(557) : error C2059: syntax error : ')'
    src/opencl_wrap.c(574) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(574) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(574) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(574) : error C2059: syntax error : ')'
    src/opencl_wrap.c(591) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(591) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(591) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(591) : error C2059: syntax error : ')'
    src/opencl_wrap.c(608) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(608) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(608) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(608) : error C2059: syntax error : ')'
    src/opencl_wrap.c(626) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(626) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(626) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(626) : error C2059: syntax error : ')'
    src/opencl_wrap.c(644) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(644) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(644) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(644) : error C2059: syntax error : ')'
    src/opencl_wrap.c(661) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(661) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(661) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(661) : error C2059: syntax error : ')'
    src/opencl_wrap.c(681) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(681) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(681) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(681) : error C2059: syntax error : ')'
    src/opencl_wrap.c(701) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(701) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(701) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(701) : error C2059: syntax error : ')'
    src/opencl_wrap.c(719) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(719) : error C2143: syntax error : missing '{' before '*'
    src/opencl_wrap.c(719) : error C2059: syntax error : 'type'
    src/opencl_wrap.c(719) : error C2059: syntax error : ')'
    src/opencl_wrap.c(736) : error C2143: syntax error : missing ')' before '*'
    src/opencl_wrap.c(736) : fatal error C1003: error count exceeds 100; stopping co
    mpilation
    error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64
    \cl.exe"' failed with exit status 2
    D:\temp\clyther-alpha-1.0>
    

    Thanks for the fast reply!
      Andreas

     
  • sean

    sean - 2010-03-30

    I think I have fixed the bug. please download and build using the svn version

    svn co https://clyther.svn.sourceforge.net/svnroot/clyther/branches/alpha clyther
    

    Thank you again for your input. Let me know if it works. if it does I will release a new source tarball.

     
  • aperske

    aperske - 2010-03-31

    pyopencl.h now builds, but opencl_wrap.c now has different errors.

    D:\temp\clyther_svn>setup.py install
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-2.6
    creating build\lib.win-amd64-2.6\clyther
    copying lib\clyther\clfunctions.py -> build\lib.win-amd64-2.6\clyther
    copying lib\clyther\decorators.py -> build\lib.win-amd64-2.6\clyther
    copying lib\clyther\memory.py -> build\lib.win-amd64-2.6\clyther
    copying lib\clyther\runtime.py -> build\lib.win-amd64-2.6\clyther
    copying lib\clyther\static.py -> build\lib.win-amd64-2.6\clyther
    copying lib\clyther\__cl_builtins__.py -> build\lib.win-amd64-2.6\clyther
    copying lib\clyther\__init__.py -> build\lib.win-amd64-2.6\clyther
    creating build\lib.win-amd64-2.6\clyther\api
    copying lib\clyther\api\cltypes.py -> build\lib.win-amd64-2.6\clyther\api
    copying lib\clyther\api\emulation.py -> build\lib.win-amd64-2.6\clyther\api
    copying lib\clyther\api\emulation_runtime.py -> build\lib.win-amd64-2.6\clyther\
    api
    copying lib\clyther\api\kernelfunction.py -> build\lib.win-amd64-2.6\clyther\api
    copying lib\clyther\api\util.py -> build\lib.win-amd64-2.6\clyther\api
    copying lib\clyther\api\__init__.py -> build\lib.win-amd64-2.6\clyther\api
    creating build\lib.win-amd64-2.6\clyther\api\ast
    copying lib\clyther\api\ast\astgen.py -> build\lib.win-amd64-2.6\clyther\api\ast
    copying lib\clyther\api\ast\astoptimize.py -> build\lib.win-amd64-2.6\clyther\ap
    i\ast
    copying lib\clyther\api\ast\codegen.py -> build\lib.win-amd64-2.6\clyther\api\as
    t
    copying lib\clyther\api\ast\node.py -> build\lib.win-amd64-2.6\clyther\api\ast
    copying lib\clyther\api\ast\printAST.py -> build\lib.win-amd64-2.6\clyther\api\a
    st
    copying lib\clyther\api\ast\__init__.py -> build\lib.win-amd64-2.6\clyther\api\a
    st
    creating build\lib.win-amd64-2.6\test_clyther
    copying lib\test_clyther\test_devicebuffer.py -> build\lib.win-amd64-2.6\test_cl
    yther
    copying lib\test_clyther\test_kernel.py -> build\lib.win-amd64-2.6\test_clyther
    copying lib\test_clyther\test_queue.py -> build\lib.win-amd64-2.6\test_clyther
    copying lib\test_clyther\test_runtime.py -> build\lib.win-amd64-2.6\test_clyther
    copying lib\test_clyther\__init__.py -> build\lib.win-amd64-2.6\test_clyther
    running build_ext
    building 'copencl' extension
    creating build\temp.win-amd64-2.6
    creating build\temp.win-amd64-2.6\Release
    creating build\temp.win-amd64-2.6\Release\src
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nolog
    o /Ox /MD /W3 /GS- /DNDEBUG -I/usr/include/CL -IC:\Python26\include -IC:\Python2
    6\PC /Tcsrc/opencl_wrap.c /Fobuild\temp.win-amd64-2.6\Release\src/opencl_wrap.ob
    j
    opencl_wrap.c
    src/opencl_wrap.c(339) : error C2143: syntax error : missing ';' before 'type'
    src/opencl_wrap.c(340) : error C2143: syntax error : missing ';' before 'type'
    src/opencl_wrap.c(342) : error C2275: 'size_t' : illegal use of this type as an
    expression
            src/opencl_wrap.c : see declaration of 'size_t'
    src/opencl_wrap.c(342) : error C2146: syntax error : missing ';' before identifi
    er 'name_size'
    src/opencl_wrap.c(342) : error C2065: 'name_size' : undeclared identifier
    src/opencl_wrap.c(342) : error C2065: 'vendor_size' : undeclared identifier
    src/opencl_wrap.c(344) : error C2065: 'name' : undeclared identifier
    src/opencl_wrap.c(344) : error C2065: 'name_size' : undeclared identifier
    src/opencl_wrap.c(344) : warning C4133: 'function' : incompatible types - from '
    int *' to 'size_t *'
    src/opencl_wrap.c(346) : error C2065: 'vendor' : undeclared identifier
    src/opencl_wrap.c(346) : error C2065: 'vendor_size' : undeclared identifier
    src/opencl_wrap.c(346) : warning C4133: 'function' : incompatible types - from '
    int *' to 'size_t *'
    src/opencl_wrap.c(349) : error C2065: 'name' : undeclared identifier
    src/opencl_wrap.c(349) : error C2065: 'name_size' : undeclared identifier
    src/opencl_wrap.c(349) : error C2109: subscript requires array or pointer type
    src/opencl_wrap.c(350) : error C2065: 'vendor' : undeclared identifier
    src/opencl_wrap.c(350) : error C2065: 'vendor_size' : undeclared identifier
    src/opencl_wrap.c(350) : error C2109: subscript requires array or pointer type
    src/opencl_wrap.c(352) : error C2065: 'vendor' : undeclared identifier
    src/opencl_wrap.c(352) : error C2065: 'name' : undeclared identifier
    src/opencl_wrap.c(379) : error C2275: 'PyObject' : illegal use of this type as a
    n expression
            c:\python26\include\object.h(108) : see declaration of 'PyObject'
    src/opencl_wrap.c(379) : error C2065: 'result' : undeclared identifier
    src/opencl_wrap.c(381) : error C2065: 'result' : undeclared identifier
    src/opencl_wrap.c(381) : warning C4047: '=' : 'int' differs in levels of indirec
    tion from 'PyObject *'
    src/opencl_wrap.c(383) : error C2065: 'result' : undeclared identifier
    src/opencl_wrap.c(383) : warning C4047: 'return' : 'PyObject *' differs in level
    s of indirection from 'int'
    src/opencl_wrap.c(460) : error C2275: 'PyObject' : illegal use of this type as a
    n expression
            c:\python26\include\object.h(108) : see declaration of 'PyObject'
    src/opencl_wrap.c(460) : error C2065: 't' : undeclared identifier
    src/opencl_wrap.c(461) : error C2143: syntax error : missing ';' before 'type'
    src/opencl_wrap.c(462) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(462) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(462) : warning C4018: '<' : signed/unsigned mismatch
    src/opencl_wrap.c(462) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(464) : error C2065: 't' : undeclared identifier
    src/opencl_wrap.c(464) : warning C4047: 'function' : 'PyObject *' differs in lev
    els of indirection from 'int'
    src/opencl_wrap.c(464) : warning C4024: 'PyTuple_SetItem' : different types for
    formal and actual parameter 1
    src/opencl_wrap.c(464) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(464) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(468) : error C2065: 't' : undeclared identifier
    src/opencl_wrap.c(468) : warning C4047: 'return' : 'PyObject *' differs in level
    s of indirection from 'int'
    src/opencl_wrap.c(1168) : error C2143: syntax error : missing ';' before 'type'
    src/opencl_wrap.c(1170) : error C2275: 'PyObject' : illegal use of this type as
    an expression
            c:\python26\include\object.h(108) : see declaration of 'PyObject'
    src/opencl_wrap.c(1170) : error C2065: 'result' : undeclared identifier
    src/opencl_wrap.c(1171) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1171) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1171) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1179) : error C2065: 'result' : undeclared identifier
    src/opencl_wrap.c(1179) : error C2065: 'result' : undeclared identifier
    src/opencl_wrap.c(1179) : error C2065: 'result' : undeclared identifier
    src/opencl_wrap.c(1183) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1184) : error C2065: 'result' : undeclared identifier
    src/opencl_wrap.c(1184) : warning C4047: 'function' : 'PyObject *' differs in le
    vels of indirection from 'int'
    src/opencl_wrap.c(1184) : warning C4024: 'PyTuple_SetItem' : different types for
     formal and actual parameter 1
    src/opencl_wrap.c(1184) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1189) : error C2065: 'result' : undeclared identifier
    src/opencl_wrap.c(1189) : warning C4047: 'return' : 'PyObject *' differs in leve
    ls of indirection from 'int'
    src/opencl_wrap.c(1228) : warning C4244: '=' : conversion from 'Py_ssize_t' to '
    cl_uint', possible loss of data
    src/opencl_wrap.c(1230) : error C2143: syntax error : missing ';' before 'type'
    src/opencl_wrap.c(1232) : error C2275: 'PyObject' : illegal use of this type as
    an expression
            c:\python26\include\object.h(108) : see declaration of 'PyObject'
    src/opencl_wrap.c(1232) : error C2065: 'pdev' : undeclared identifier
    src/opencl_wrap.c(1233) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1233) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1233) : warning C4018: '<' : signed/unsigned mismatch
    src/opencl_wrap.c(1233) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1235) : error C2065: 'pdev' : undeclared identifier
    src/opencl_wrap.c(1235) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1235) : warning C4047: '=' : 'int' differs in levels of indire
    ction from 'PyObject *'
    src/opencl_wrap.c(1236) : error C2065: 'pdev' : undeclared identifier
    src/opencl_wrap.c(1236) : error C2065: 'pdev' : undeclared identifier
    src/opencl_wrap.c(1243) : error C2065: 'pdev' : undeclared identifier
    src/opencl_wrap.c(1273) : error C2275: 'cl_context_properties' : illegal use of
    this type as an expression
            C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\CL/cl.h(63
    ) : see declaration of 'cl_context_properties'
    src/opencl_wrap.c(1273) : error C2065: 'props' : undeclared identifier
    src/opencl_wrap.c(1276) : error C2065: 'props' : undeclared identifier
    src/opencl_wrap.c(1276) : warning C4047: 'function' : 'const cl_context_properti
    es *' differs in levels of indirection from 'int'
    src/opencl_wrap.c(1276) : warning C4024: 'clCreateContext' : different types for
     formal and actual parameter 1
    src/opencl_wrap.c(1280) : error C2065: 'props' : undeclared identifier
    src/opencl_wrap.c(1280) : warning C4047: 'function' : 'const cl_context_properti
    es *' differs in levels of indirection from 'int'
    src/opencl_wrap.c(1280) : warning C4024: 'clCreateContext' : different types for
     formal and actual parameter 1
    src/opencl_wrap.c(1413) : error C2275: 'cl_uint' : illegal use of this type as a
    n expression
            C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\CL/cl_plat
    form.h(70) : see declaration of 'cl_uint'
    src/opencl_wrap.c(1413) : error C2146: syntax error : missing ';' before identif
    ier 'num_devices'
    src/opencl_wrap.c(1413) : error C2065: 'num_devices' : undeclared identifier
    src/opencl_wrap.c(1414) : error C2275: 'cl_device_id' : illegal use of this type
     as an expression
            C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\CL/cl.h(42
    ) : see declaration of 'cl_device_id'
    src/opencl_wrap.c(1414) : error C2065: 'device_list' : undeclared identifier
    src/opencl_wrap.c(1416) : error C2143: syntax error : missing ';' before 'type'
    src/opencl_wrap.c(1418) : error C2275: 'PyObject' : illegal use of this type as
    an expression
            c:\python26\include\object.h(108) : see declaration of 'PyObject'
    src/opencl_wrap.c(1418) : error C2065: 'item' : undeclared identifier
    src/opencl_wrap.c(1421) : error C2065: 'num_devices' : undeclared identifier
    src/opencl_wrap.c(1422) : error C2065: 'device_list' : undeclared identifier
    src/opencl_wrap.c(1426) : error C2065: 'num_devices' : undeclared identifier
    src/opencl_wrap.c(1426) : warning C4244: '=' : conversion from 'Py_ssize_t' to '
    int', possible loss of data
    src/opencl_wrap.c(1427) : error C2065: 'device_list' : undeclared identifier
    src/opencl_wrap.c(1427) : error C2065: 'num_devices' : undeclared identifier
    src/opencl_wrap.c(1427) : warning C4047: '=' : 'int' differs in levels of indire
    ction from 'void *'
    src/opencl_wrap.c(1428) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1428) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1428) : error C2065: 'num_devices' : undeclared identifier
    src/opencl_wrap.c(1428) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1430) : error C2065: 'item' : undeclared identifier
    src/opencl_wrap.c(1430) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1430) : warning C4047: '=' : 'int' differs in levels of indire
    ction from 'PyObject *'
    src/opencl_wrap.c(1431) : error C2065: 'item' : undeclared identifier
    src/opencl_wrap.c(1431) : error C2065: 'item' : undeclared identifier
    src/opencl_wrap.c(1437) : error C2065: 'device_list' : undeclared identifier
    src/opencl_wrap.c(1437) : error C2065: 'i' : undeclared identifier
    src/opencl_wrap.c(1437) : error C2109: subscript requires array or pointer type
    src/opencl_wrap.c(1437) : error C2065: 'item' : undeclared identifier
    src/opencl_wrap.c(1446) : error C2275: 'cl_int' : illegal use of this type as an
     expression
            C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\CL/cl_plat
    form.h(69) : see declaration of 'cl_int'
    src/opencl_wrap.c(1446) : error C2146: syntax error : missing ';' before identif
    ier 'err'
    src/opencl_wrap.c(1446) : error C2065: 'err' : undeclared identifier
    src/opencl_wrap.c(1446) : error C2065: 'num_devices' : undeclared identifier
    src/opencl_wrap.c(1446) : error C2065: 'device_list' : undeclared identifier
    src/opencl_wrap.c(1446) : warning C4047: 'function' : 'const cl_device_id *' dif
    fers in levels of indirection from 'int'
    src/opencl_wrap.c(1446) : warning C4024: 'clBuildProgram' : different types for
    formal and actual parameter 3
    src/opencl_wrap.c(1448) : error C2065: 'err' : undeclared identifier
    src/opencl_wrap.c(1466) : error C2275: 'cl_device_id' : illegal use of this type
     as an expression
            C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\CL/cl.h(42
    ) : see declaration of 'cl_device_id'
    src/opencl_wrap.c(1466) : error C2146: syntax error : missing ';' before identif
    ier 'device'
    src/opencl_wrap.c(1466) : error C2065: 'device' : undeclared identifier
    src/opencl_wrap.c(1466) : warning C4047: '=' : 'int' differs in levels of indire
    ction from 'cl_device_id'
    src/opencl_wrap.c(1470) : error C2275: 'cl_build_status' : illegal use of this t
    ype as an expression
            C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\CL/cl.h(78
    ) : see declaration of 'cl_build_status'
    src/opencl_wrap.c(1470) : error C2146: syntax error : missing ';' before identif
    ier 'param_value'
    src/opencl_wrap.c(1470) : error C2065: 'param_value' : undeclared identifier
    src/opencl_wrap.c(1472) : error C2275: 'cl_int' : illegal use of this type as an
     expression
            C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\CL/cl_plat
    form.h(69) : see declaration of 'cl_int'
    src/opencl_wrap.c(1472) : error C2146: syntax error : missing ';' before identif
    ier 'err'
    src/opencl_wrap.c(1472) : error C2065: 'err' : undeclared identifier
    src/opencl_wrap.c(1474) : error C2065: 'err' : undeclared identifier
    src/opencl_wrap.c(1474) : fatal error C1003: error count exceeds 100; stopping c
    ompilation
    error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64
    \cl.exe"' failed with exit status 2
    

    Sorry for all the trouble
      Andreas

     

Log in to post a comment.