PDA

View Full Version : Specification 1.33 Questions



phil_ps
04-30-2009, 11:21 AM
Hello,

I am working with Google Summer of Code to start to bring OpenCL support to GCC. For the function: clGetPlatformInfo, the spec is not clear whether we should write to param_value_size_ret when we are returning CL_INVALID_VALUE.

Phil Pratt-Szeliga

affie
05-07-2009, 02:12 PM
If param_name is not a valid name, then param_value_size_ret cannot be updated. If param_name is a valid name but param_value_size is < size of return type and param_value_size_ret is specified then yes, you should return the actual size in param_value_size_ret.

affie
05-07-2009, 05:44 PM
If param_name is not a valid name, then param_value_size_ret will not be updated.

If param_name is a valid name and param_value_size_ret is not NULL, then param_value_size_ret will return the actual size in bytes of data being queried.