PDA

View Full Version : Check for free global memory avaiable



nachovall
03-07-2011, 06:06 AM
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.

david.garcia
03-07-2011, 06:30 AM
There is no standard way to query the available memory. I haven't heard of any extension to do that either.

nachovall
03-07-2011, 08:18 AM
There is no standard way to query the available memory.

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

david.garcia
03-07-2011, 10:36 AM
[quote:2tuo6ot4]There is no standard way to query the available memory.Really?[/quote:2tuo6ot4]

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

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

nachovall
03-07-2011, 10:49 AM
What could you do with that number, anyway?
A lot of things :D

Thank you for your reply

AGGIE
03-09-2011, 05:39 AM
I haven't know any extension about the global memory.
So, There is no way of query. Check your post again.

nachovall
03-09-2011, 06:53 AM
I haven't know any extension about the global memory.
So, There is no way of query. Check your post again.
What?