Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
18 Views

Compiler flags to find Shared memory usage -OpenCL

Hello,

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

vinoth

0 Kudos
3 Replies
Highlighted
Beginner
18 Views

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?

Thanks.

0 Kudos
Highlighted
Employee
18 Views

Hi;

Does the query clGetKernelWorkGroupInfo ( ... ,CL_KERNEL_LOCAL_MEM_SIZE,...) answers your needs?

Rami


0 Kudos
Highlighted
Beginner
18 Views

Hello,

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.

0 Kudos