Specification 1.33 Questions

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

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.

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.