Sorry, there is no stable testing done on windows.
I think that there error is originating from the python binding I wrote. I suspect that it is a minor error.
Any insights would be greatly appreciated.
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I managed to get it compiled on Windows XP 32-bit, using MSVC-9, Python 2.6 and ATI Stream 2.0, however I had to re-order many variable declarations to make them comply with C89 style (in stead of your C99-style).
However, after successful compilation, I ran the emulation_example.py which fails with the following error:
(is this due to invalid_platform ?)
Traceback (most recent call last):
File "C:\clyther-0.1-beta\examples\emulation_example.py", line 34, in <module>
clyther.init( 'EMULATE' )
File "c:\python26\lib\site-packages\clyther-0.1_beta-py2.6-win32.egg\clyther\static.py", line 92, in init
_cl_static = StaticOpenCL.getInstance( type ,profile=profile )
File "c:\python26\lib\site-packages\clyther-0.1_beta-py2.6-win32.egg\clyther\static.py", line 53, in getInstance
cls.instance = StaticOpenCL( type, profile=profile)
File "c:\python26\lib\site-packages\clyther-0.1_beta-py2.6-win32.egg\clyther\static.py", line 37, in __init__
devices = cl.get_devices( type )
Exception: ('OpenCL: Unknown OpenCL error -32', -32)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The patch for opencl_wrapper.c as downloaded from svn trunk now works on win32 platform, it now compiles using MSVC
The patch for setup.py is only adding a line for building/installing using ATI Stream SDK, for NVIDIA another line is needed as some other user pointed out here.
I'm still having trouble with the __init__ function in static.py, I can only get it to work by adding/modifying some lines:
I can't build using: python setup.py build
win7x64, clyther-0.1-beta.tar.gz, MSVS2008, ati-stream-sdk-v2.01-vista-win7-64, python 2.6.5
Also, setuptools py was required somehow, and I had to copy the CL folder of headers from ATI into MSVS's include folder to be found.
Mostly syntax erros similar to aperske. Full details:
running build
running build_py
running build_ext
building 'copencl' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -I/usr/include/CL -IC:\dev\Python26\include -IC:\dev\Pytho
n26\PC /Tcsrc/opencl_wrap.c /Fobuild\temp.win32-2.6\Release\src/opencl_wrap.obj
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
c:\program files (x86)\microsoft visual studio 9.0\vc\include\codeanalys
is\sourceannotations.h(19) : 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(346) : error C2065: 'vendor' : undeclared identifier
src/opencl_wrap.c(346) : error C2065: 'vendor_size' : undeclared identifier
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:\dev\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:\dev\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:\dev\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) : warning C4018: '<' : signed/unsigned mismatch
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(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:\dev\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:\dev\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(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\cl.ex
e"' failed with exit status 2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Welcome to Open Discussion
Hello, this is Sean the creater of CLyther, please post any comments here.
Anyway to build for windows?
Sorry, there is no stable testing done on windows.
I think that there error is originating from the python binding I wrote. I suspect that it is a minor error.
Any insights would be greatly appreciated.
Thank you
I managed to get it compiled on Windows XP 32-bit, using MSVC-9, Python 2.6 and ATI Stream 2.0, however I had to re-order many variable declarations to make them comply with C89 style (in stead of your C99-style).
However, after successful compilation, I ran the emulation_example.py which fails with the following error:
(is this due to invalid_platform ?)
Traceback (most recent call last):
File "C:\clyther-0.1-beta\examples\emulation_example.py", line 34, in <module>
clyther.init( 'EMULATE' )
File "c:\python26\lib\site-packages\clyther-0.1_beta-py2.6-win32.egg\clyther\static.py", line 92, in init
_cl_static = StaticOpenCL.getInstance( type ,profile=profile )
File "c:\python26\lib\site-packages\clyther-0.1_beta-py2.6-win32.egg\clyther\static.py", line 53, in getInstance
cls.instance = StaticOpenCL( type, profile=profile)
File "c:\python26\lib\site-packages\clyther-0.1_beta-py2.6-win32.egg\clyther\static.py", line 37, in __init__
devices = cl.get_devices( type )
Exception: ('OpenCL: Unknown OpenCL error -32', -32)
Thank you very much. Could you send me a patch?
Please let me know what svn revision you are using. I may have already fixed this latest bug.
The patch for opencl_wrapper.c as downloaded from svn trunk now works on win32 platform, it now compiles using MSVC
The patch for setup.py is only adding a line for building/installing using ATI Stream SDK, for NVIDIA another line is needed as some other user pointed out here.
I'm still having trouble with the __init__ function in static.py, I can only get it to work by adding/modifying some lines:
I suspect this is due to me using the newest ATI Stream SDK 2.01 which has something changed from the previous beta,
as specifically documented here:
http://developer.amd.com/support/KnowledgeBase/Lists/KnowledgeBase/DispForm.aspx?ID=71
But since I'm not a real coder myself, I'll leave it to someone else to come up with a patch for this …
I can't build using: python setup.py build
win7x64, clyther-0.1-beta.tar.gz, MSVS2008, ati-stream-sdk-v2.01-vista-win7-64, python 2.6.5
Also, setuptools py was required somehow, and I had to copy the CL folder of headers from ATI into MSVS's include folder to be found.
Mostly syntax erros similar to aperske. Full details:
running build
running build_py
running build_ext
building 'copencl' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox
/MD /W3 /GS- /DNDEBUG -I/usr/include/CL -IC:\dev\Python26\include -IC:\dev\Pytho
n26\PC /Tcsrc/opencl_wrap.c /Fobuild\temp.win32-2.6\Release\src/opencl_wrap.obj
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
c:\program files (x86)\microsoft visual studio 9.0\vc\include\codeanalys
is\sourceannotations.h(19) : 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(346) : error C2065: 'vendor' : undeclared identifier
src/opencl_wrap.c(346) : error C2065: 'vendor_size' : undeclared identifier
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:\dev\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:\dev\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:\dev\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) : warning C4018: '<' : signed/unsigned mismatch
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(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:\dev\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:\dev\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(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\cl.ex
e"' failed with exit status 2
Btw, the python 2.6.5 is 32bit. I think MSVS is both 32/64.
Could you please check if the error ocurrs with the latest build clyther-0.1-beta-3.tar.gz we fixed some outstanding issues with the windows build.
Thanks
How alive is this project? I successfully built clyther-0.1-beta-3 for python 2.7 on win7 with CUDA.
Yes. Sorry about the lack of activity. I expect to have a new version out in a few weeks.
Just to repeat the previous question, how active is this project? It looks really good, but I don't see many recent updates or discussions…
Hello, as you can tell from my delayed reply, that there is not much development at the moment. However I am fixing all reported bugs.
In case anyone is still watching this list. CLyther has move to GitHub. There is a new 0.2-beta release.