In our application, we use the unified memory for simplify. However, we would like to control the memory in some cases. For example, we would like the free the *S(point to a unified memory) only on the device side but remain the corresponding data on the host side.
- We free the *S on device side for device memory insufficient.
- We remain the *S on host side for we will use the data later and write back to disk may cause redundant disk IO.
And we find cudaFree function will free the *S on device and host simultaneity.So if there are any method to free the device side with remaining the host side memory.Thanks！