Based on this topic 6 it seems the best way would be to directly measure the memory usage on your platform.


No, as the CUDA context holds the management data which is necessary to run CUDA applications.


Are you seeing a growing memory usage, i.e. could you (accidentally) store the computation graph while this might not be necessary?