1 Reply Latest reply on Feb 28, 2010 4:28 AM by nou

    Need help getting Hello World example to run.

      Perhaps I am missing some of the requirements for compiling opencl

      Hello developers.

      I have done lots of C and C++ (but not C#) in my time but mostly hardware engineering for the last 30 years, so I beg patience for this elementary question.

      I loaded the open toolkit beta from the Khronos site and have been able to run the executables that they provide for examples.

      I have been attempting to compile the "Hello World" program that was provided by AMD at http://developer.amd.com/GPU/ATISTREAMSDK/pages/TutorialOpenCL.aspx

      I am using Visual Studio 2008.

      Looking at the command line instructions that are given for the hello world tutorial,

      "cl /Fehello_world.exe /Ipath-OpenCL-include lesson.cpp path-OpenCL-libdir/OpenCL.lib"

      I expect that there needs to be a library named "opencl.lib", which I can not find in the toolkit. Where can I download just the library?

      Also, my reading has shown that I might need some sort of an additional SDK that will work with visual studio in order to compile opencl. Do I need to load the "ATI Stream SDK"?

      When I use the following command line script for compilation:

      "cl /Fehello_world.exe /Ic:\temp lesson.cpp "

      I get lots of errors that seem to relate to missing C++ identifiers.

      If anyone can point me in the right direction, I would be extremely greatful.


      Thank You