Max mem allocation

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.

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.

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

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

Thanks.