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.

how to use 2 SIMD in EU

Fu_J_Intel
Employee
476 Views

Gen8/9 has 2 SIMD in each EU.  How can i specify to use 2 SIMD in openCL?

thanks,

Jeffrey

 

0 Kudos
1 Reply
Tamer_Assad
Innovator
476 Views

Hi Jeffrey,

 

First, your kernel's NDRange should be  wide enough to utilize multiple SIMD.

Then, in order to motivate the compiler to use 2 SIMD lanes, make sure you have:

 1- simultaneous Kernel instances executing the same target instruction

 2- target instruction applied to elements of a data type fitting half the target SIMD. (data type length <= Target SIMD Width/2)

 3- explicit declaration of target data type.

 

Best regards,

Tamer

 

 

0 Kudos
Reply