PDA

View Full Version : How to compile OpenCL example in MS VC++?



Saeed
02-02-2009, 09:22 AM
Where are essential header and .lib files?

rillian
02-02-2009, 06:18 PM
Header files are available from http://www.khronos.org/registry/cl/

I'm not aware of a public implementation; so for the .lib you'll need to wait until one is published.

Hope that helps.

rubi
05-12-2009, 01:50 PM
there are libs / headers there but not "stdint.h" (included in cl.h) which is a part of GCC compiler,

So can this preliminar release be compiled on VC++?

clamport
05-18-2009, 07:19 AM
From what I have found, OpenCL cannot be compiled, at least under VS2008. There is an issue with not being able to pass aligned types to functions. The only way around this is to configure VS to use the GCC compiler, although I couldn't get that to work either. I set up CodeBlocks and everything compiles fine.

erwin
05-20-2009, 01:20 PM
It is easy to fix the compilation problems.

Please check the MiniCL project (http://code.google.com/p/minicl), a small subset of OpenCL used for the Bullet Physics SDK. It has working OpenCL header files.

Hopefully this gets addressed in the Khronos website.
Thanks,
Erwin

erwin
05-20-2009, 01:21 PM
(by the way, this problem will be fixed in an upcoming OpenCL update on the Khronos website)