The reference pages say: “Query information about a context.”
It seems simple enough, but the usage of this function in code examples seems very weird to me. It will show up twice in the tutorials I’ve found, like AMD Convolution OpenCL. First it will be used to figure out the size in bytes of the list of devices, which I believe means the numbers of devices can be implicitly found? Then it will be called again with this size information in order to actually get information about the context. This context information is sent a command queue. Is this all correct?
Is the whole purpose of this to get the size information of the device(s) to the command queue? Please let me know, thanks.