Tell compiler where pointer points to "Cannot tell what pointer points to, assuming global memor

Hi everyone,

I’m using a container to pass multiple pointers to a kernel:

#define MAX_WINS 8

struct Container {

	float *windows[MAX_WINS];

};

__global__ void someKernel(Container container) {

	// ...

	float var = container.windows[blockIdx.y][position];

	// ...

}

This is much faster than passing a single pointer and loading the (window-)pointers from global memory. When compiling this, the compiler gives the following Warning: “Cannot tell what pointer points to, assuming global memory space”. Needless to say that this works just fine, because the pointers point to the global memory. But how do I tell the compiler that this is the case, so that these annoying warnings disappear?

Thanks in advance.