Firstly, call cudaHostAlloc ( void** pHost, size_t size, unsigned int flags ) with flag cudaHostAllocDefault
the size may be one of 8K, 128M 512M,whatever!!
then cudaFreeHost() release the memory created by cudaHostAlloc;
before the process exit, via the NVIDIA-SMI I found 111M gpu memory was used.
after the process exit no gpu memory was used.
I wonder why 111M gpu memory was used, even if I call cudaFreeHost to free the page-locked memory?