Hi, I am confused about how the compiler can know that the address is form GPU memory rather than CPU memory,such as
float * device_a;
cudaMalloc((void **)&device_a, size);
I wonder how can the compiler know that the address in device_a is from GPU memory? Is there any mark in the returned address? Thanks for your attention.