Results 1 to 3 of 3

Thread: Memory occupancy

  1. #1

    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.

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: Memory occupancy

    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.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  3. #3

    Re: Memory occupancy

    Quote Originally Posted by david.garcia
    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.

Similar Threads

  1. Replies: 6
    Last Post: 02-28-2013, 04:59 PM
  2. Replies: 5
    Last Post: 04-14-2010, 10:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •