Check for free global memory avaiable

Hi,

Is there a way to check for the free memory avaiable? The comand clGetDeviceInfo whith the parameter CL_DEVICE_GLOBAL_MEM_SIZE just returns the total memory, not the avaiable memory. I know that cuMemGetInfo return this value so it should be avaiable in OpenCL too.

Thank you.

There is no standard way to query the available memory. I haven’t heard of any extension to do that either.

Really? Am I the first one who needs this feature? I continue searching…

[quote:2tuo6ot4]There is no standard way to query the available memory.
Really?[/quote:2tuo6ot4]

Yes, really. I am familiar with the standard :slight_smile:

What could you do with that number, anyway? The amount of free memory in the system can change at any time.

A lot of things :smiley:

Thank you for your reply

I haven’t know any extension about the global memory.
So, There is no way of query. Check your post again.

What?