OpenCL™ “global” memory is allocated from system memory of the Intel® Xeon Phi™ coprocessor device. The amount of available memory depends on the SKU. Use the clGetDeviceInfo(…,CL_DEVICE_GLOBAL_MEM_SIZE)
query to get information on the exact available amount. The OpenCL runtime competes for the memory with other (native and offload) applications. This impacts the amount of global memory available for the Intel Xeon Phi coprocessor OpenCL device. Your code should handle the CL_OUT_OF_RESOURCES
error smart.