I would to know if intel opencl compiler offers any compiler flags to get to know the usage of shared memory by opencl kernels. I would like to know it in order to give a suitable workgroup for the kernel. I am using Intel(R) Xeon(R) CPU E5649 @ 2.53GHz with OpenCL 1.1
Thanks in advance
Some more clarification....
Is there any Compiler Flags for the intel processor graphics to get SLM info. Also, is there something similar for CPU for work-group optimizations? Probably based on max compute units or kernel SLM usage or register usage?
CL_KERNEL_LOCAL_MEM_SIZE works. Thanks Rami. I would like to know how this information can be used to set the work-group for the kernel for a CPU. Intel provides this information for INTEL graphics processor.. http://software.intel.com/sites/landingpage/opencl/optimization-guide/index.htm#Work-Group_Size_Cons...
But i am more interested in CPUs. I know intel provides CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE. Is thr something else based on register and SLM usage inorder to use the cores optimally.
Thanks in Advance.