Khronos Public Bugzilla
Bug 451 - clGetProgramBuildInfo param_value_size_ret description
clGetProgramBuildInfo param_value_size_ret description
Status: NEW
Product: OpenCL
Classification: Unclassified
Component: Specification
1.1
PC Mac OS
: P3 enhancement
: ---
Assigned To: Aaftab Munshi
OpenCL Working Group
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-16 13:14 PDT by David Garcia
Modified: 2011-03-16 13:14 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Garcia 2011-03-16 13:14:06 PDT
From Khronos forum user IRWolfie-:

<<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.>>

From Khronos forum user sean.settle:

<<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.>>

Source: http://www.khronos.org/message_boards/viewtopic.php?f=41&t=3678