OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1719 Discussions

How can I allocate more than 4G memory for clbuffer?

Victor_P_
Beginner
458 Views

Dear friends,

How can I allocate more than 4G memory for clbuffer?

in accordance to clinfo output:

  Global memory size                              16416116736 (15.29GiB)
  Error Correction support                        No
  Max memory allocation                           4104029184 (3.822GiB)

OpenCL Spec:

"CL_DEVICE_MAX_MEM_ALLOC_SIZE - Max size of memory object allocation in bytes. The minimum value is max (1/4th of CL_DEVICE_GLOBAL_MEM_SIZE, 128*1024*1024) for devices that are not of type CL_DEVICE_TYPE_CUSTOM."

So, why is it limited to 1/4?
Imho, it is bug, which do not let me use whole available memory I've paid for.
Are there any hidden magic environment settings similar to GPU_SINGLE_ALLOC_PERCENT from AMD?

Best regards,
Victor

0 Kudos
1 Reply
Jeffrey_M_Intel1
Employee
458 Views

Can you tell us a bit more about your system?  

  • Processor Type
  • OS
  • Driver version

The global memory size/4 cap has been removed in recent drivers, so the first thing is to check the info above.  This could help determine next steps.  

0 Kudos
Reply