I'm using python libraries of rapids.ai and one of the key things I'm starting to wonder is: how do I inspect memory allocation programatically? I know I can use nvidia-smi
to look at some overall high level stats, but specifically I woud like to know:
1) Is there an easy way to find the memory footprint of a cudf dataframe (and other rapids objects?)
2) Is there a way for me to determine device memory available?
I'm sure there are plenty of ways for a C++ programmer to get these details but I'm hoping to find an answer that allows me to stay in Python.