Results 1 to 3 of 3

Thread: Specification error

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    10

    Specification error

    clGetProgramBuildInfo has a pointer size_t *param_value_size_ret. The specification reads "param_value_size_ret returns the actual size in bytes of data copied to param_value. ". Either the description is incomplete or we have no way of knowing the size we need before attempting a call.

  2. #2
    Senior Member
    Join Date
    Mar 2011
    Location
    Seoul
    Posts
    118

    Re: Specification error

    I think it should read something like "param_value_size_ret returns the actual size in bytes of data to be copied to param_value." This is purpose of size_t *param_value_size_ret in any clGet...Info function so you can call it again with that returned value as the size_t param_value_size argument and (void *) param_value having been properly allocated if needed.

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

    Re: Specification error

    Thanks, folks.

    There's now a public bugzilla to track this issue.
    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. Error Propagation in OpenCL Specification
    By GeoffHilton in forum OpenCL
    Replies: 2
    Last Post: 08-13-2009, 10:37 AM
  2. An error in the OpenML specification( PDF BOOK )
    By ehsan2004 in forum OpenML Coding & Technical Issues
    Replies: 0
    Last Post: 06-22-2006, 08:48 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
  •