cudaHostGetFlags() will fail if the input pointer does not reside in an address range allocated by cudaHostAlloc().