How to get current free GPU memory amount?

Discussion created by Raistmer on Jul 4, 2009
Latest reply on Jul 13, 2009 by Raistmer
paradoxical feedback from calDeviceGetStatus()...

I found only one CAL function call relevant to memory amount, calDeviceGetAttribs, but it's description looks like total memory amount on device will be returned, not amount of free memory. If some programs already use part of GPU memory, how to check what amount of GPU memory still available ?