Khronos Public Bugzilla
Bug 451 - clGetProgramBuildInfo param_value_size_ret description
Summary: clGetProgramBuildInfo param_value_size_ret description
Status: NEW
Alias: None
Product: OpenCL
Classification: Unclassified
Component: Specification (show other bugs)
Version: 1.1
Hardware: PC Mac OS
: P3 enhancement
Target Milestone: ---
Assignee: Aaftab Munshi
QA Contact: OpenCL Working Group
Depends on:
Reported: 2011-03-16 13:14 PDT by David Garcia
Modified: 2011-03-16 13:14 PDT (History)
0 users

See Also:


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