Results 1 to 6 of 6

Thread: How to compile OpenCL example in MS VC++?

  1. #1
    Junior Member
    Join Date
    Dec 2004
    Location
    Iran
    Posts
    2

    How to compile OpenCL example in MS VC++?

    Where are essential header and .lib files?

  2. #2
    Junior Member
    Join Date
    Dec 2008
    Location
    Vancouver, Canada
    Posts
    8

    Re: How to compile OpenCL example in MS VC++?

    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.
    Ralph Giles
    Artifex Software, Inc.

  3. #3
    Junior Member
    Join Date
    May 2009
    Posts
    2

    Re: How to compile OpenCL example in MS VC++?

    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++?

  4. #4
    Junior Member
    Join Date
    May 2009
    Posts
    9

    Re: How to compile OpenCL example in MS VC++?

    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.

  5. #5
    Junior Member
    Join Date
    May 2009
    Posts
    13

    Re: How to compile OpenCL example in MS VC++?

    It is easy to fix the compilation problems.

    Please check the MiniCL project, 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

  6. #6
    Junior Member
    Join Date
    May 2009
    Posts
    13

    Re: How to compile OpenCL example in MS VC++?

    (by the way, this problem will be fixed in an upcoming OpenCL update on the Khronos website)

Similar Threads

  1. How to compile OpenCL example in GCC?
    By nalox in forum OpenCL
    Replies: 8
    Last Post: 09-24-2009, 06:10 AM
  2. How to compile OpenCL example in GCC?
    By nalox in forum OpenCL
    Replies: 0
    Last Post: 05-20-2009, 08:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •