Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Fu_J_Intel
Employee
32 Views

how to use 2 SIMD in EU

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
32 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