Memory occupancy

Hi,

Is there any way to check the total free space memory available in the GPU? Not the total GPU memory.

Or the other way arround, any way to know the total alloced memory.

Thanks.

No, it’s not possible. These sort of metrics are typically not as useful as developers may think. The amount of free or used memory in a system changes dynamically and you can’t trust that if 500MB are reported free it means the allocation of a 450MB buffer will succeed.

Actually I just want to check how much memory is my algorithm using in each step.

Anyway, I decided to count using a static variable in my class so I increment the number of bytes each time I create a buffer and drecrement it when a buffer is released.

Thanks for the reply.