I'm trying to run the following code:
cl_int ret = clGetContextInfo(context,param_name,0,NULL,¶m_value_size_ret);
cl_device_id * param_value = malloc(param_value_size_ret);
ret = clGetContextInfo((cl_context)context,param_name,param_value_size_ret,param_value,NULL);
Well, the problem comes when clGetContextInfo finishes. After it, the value of param_value_size_ret has changed, and I don't know why!
EDIT: clGetContextInfo tells me that I have 2009267360 devices on my computer!!!
I'm compiling with MinGW(GCC 4.4) and I don't know what to do
Could somebody tell me something about that?
(Sorry for my English...)