Results 1 to 2 of 2

Thread: openCL barrier() is not recognized by VC++ 2010

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    2

    openCL barrier() is not recognized by VC++ 2010

    my VC++ doesnt recognized barrier() function, as it gives error 'barrier': identifier not found. How can I fix that problem?

    This was how I configureed VC++ to work with openCL: http://opencl.codeplex.com/wikipage?tit ... 0Tutorials

  2. #2
    Senior Member
    Join Date
    Dec 2011
    Posts
    168

    Re: openCL barrier() is not recognized by VC++ 2010

    barrier() can only be used inside an OpenCL kernel, and not code that is compiled by Visual Studio.

    Start with one of the example projects (available, for example, in one of the SDKs, like AMD's APP SDK). You'll see host-side code for finding and creating device contexts, and then they will pass the kernel source to be compiled and run on the GPU.

Similar Threads

  1. Compile OpenCL SDK 1.5 Samples in VC 2010
    By spinzero in forum OpenCL
    Replies: 1
    Last Post: 12-26-2011, 01:01 AM
  2. opencl can be used in visual studio 2010?
    By opencl_beginner in forum OpenCL
    Replies: 6
    Last Post: 06-06-2011, 03:52 PM

Posting Permissions

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