I suspect when I call cudaMallocHost()
that the memory is not freed by the kernel once the program quits.
While my program was running this was the used memory displayed by top
:
When the program ends then the used memory looks like this [updated due a comment]:
There is nothing else running on the SLES 11 SP3 but there are still 6 GB used. I suspect that it may be because I do not explicitly release the memory I allocated previously by cudaMallocHost()
?
What can it be?