PDA

View Full Version : CL_INVALID_DEVICE_LIST seems to be missing in cl.h



moreandres
01-26-2009, 06:46 PM
I was doing a dummy implementation and I find out that the definition of CL_INVALID_DEVICE_LIST is missing in the .h file,
it is supposed to be returned by clCreateContext if the list of devices specified cannot be used together to create a context.

Should not be defined there? Perhaps in between the following lines

#define CL_INVALID_VALUE -30
#define CL_INVALID_DEVICE_TYPE -31
#define CL_INVALID_DEVICE -32
#define CL_INVALID_CONTEXT -33

Thanks!

rillian
02-02-2009, 06:15 PM
Yes. I suggested using CL_INVALID_DEVICE in the errata thread. Lists aren't really treated separately from devices in most of the API.