Results 1 to 2 of 2

Thread: include headers to .cl file

  1. #1
    Junior Member
    Join Date
    Mar 2010

    include headers to .cl file


    I wrote a kernel in a .cl file, but when I include a .h file, and run code,
    I get ""file.h" not found".
    so I read the opencl spec, and found that I have to add the path to the headers to my buildprogram API (5.4.3 of 1.0spec), so this is my code line:

    Code :
    ciErrNum = clBuildProgram(cpProgram, 0, NULL, "-I C:/Users/localcontrol/internship/OpenCV/cv/include", NULL, NULL);

    but it doesn't work, the program crashes at this line,

    is anyone seeing what could be the problem,
    I really need help with this.

  2. #2
    Senior Member
    Join Date
    Sep 2002
    Santa Clara

    Re: include headers to .cl file

    This seems like a bug in the OpenCL implementation. Please contact the vendor whose OpenCL implementation you are using.

Similar Threads

  1. include headers to OpenCL .cl file
    By yakovm in forum OpenCL
    Replies: 0
    Last Post: 01-24-2013, 06:09 AM
  2. opencl API : include headers to .cl file
    By opencl_JEDI in forum OpenCL
    Replies: 6
    Last Post: 03-11-2010, 12:11 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
Proudly hosted by Digital Ocean