I have little question about:
CUresult CUDAAPI cuPointerGetAttribute(void *data, CUpointer_attribute attribute, CUdeviceptr ptr);
I think *data is “variable data” which means it always returns a 4 byte pointer.
So I am wondering how much data there is in data ? I think 4 bytes always, the documentation doesn’t really say, I guess it could be flexible in the future for perhaps 64 bit pointers.
For now I will assume 4 byte pointers are always returned in data.
So it would be conceptually as if it was written (void &data, …
(^ strangely enough this is not allowed in C/C++