Results 1 to 3 of 3

Thread: clBuildProgram pfn_notify

  1. #1
    Junior Member
    Join Date
    Apr 2011

    clBuildProgram pfn_notify

    The OpenCL spec states that when using pfn_notify, "clBuildProgram does not need to wait for the build to complete and can return immediately".

    But if the call returns immediately, how can i find out whether the program was successfully built or not? There is no such thing as a cl_int passed as argument to the callback to indicate the success of the compilation.

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

    Re: clBuildProgram pfn_notify

    The pfn_notify function you specified will be called when the program build has finished. You can then query the build status to see if the program was built successfully or not.

  3. #3
    Senior Member
    Join Date
    May 2010
    Toronto, Canada

    Re: clBuildProgram pfn_notify

    More specifically, you want to call clGetProgramBuildInfo(..., CL_PROGRAM_BUILD_STATUS, ...);
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

Similar Threads

  1. clbuildprogram
    By evk8888 in forum OpenCL - parallel programming of heterogeneous systems
    Replies: 0
    Last Post: 01-11-2012, 09:52 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