PDA

View Full Version : Max mem allocation



nachovall
03-07-2011, 06:00 AM
Hi,

I need to allocate in memory an array bigger than the 383 MByte which is CL_DEVICE_MAX_MEM_ALLOC_SIZE. I read that this is an O.S. issue, and also that is a driver issue. I have a GTX 480.

Can anyone clarify this? An also, is there a way to avoid this constrain?

Thank you.

david.garcia
03-07-2011, 06:34 AM
I need to allocate in memory an array bigger than the 383 MByte which is CL_DEVICE_MAX_MEM_ALLOC_SIZE.

I personally do not understand the point of CL_DEVICE_MAX_MEM_ALLOC_SIZE or what are applications supposed to do with it. All I think it's trying to say is that allocation of memory objects larger than CL_DEVICE_MAX_MEM_ALLOC_SIZE may fail, but we all know that any memory allocation may fail. Besides, I'm sure there are devices out there that can allocate more than what they return in CL_DEVICE_MAX_MEM_ALLOC_SIZE.

Personally I would ignore that value altogether.

nachovall
03-07-2011, 08:15 AM
I personally do not understand the point of CL_DEVICE_MAX_MEM_ALLOC_SIZE or what are applications supposed to do with it.

In fact I tried to allocate an array bigger than 400MB and no error was launched.


Personally I would ignore that value altogether.

I'll do it. Anyway I think is very strange that to query this parameter has no sense at all.

Thanks.