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.
1719 Discussions

RFE: OpenCL 2.x CPU Platform SSSE3/AVX2 instruction "[v]pmulhrsw"

allanmac1
Beginner
396 Views

Request for enhancement,

I'd like the OpenCL CPU compiler to generate a pmulhrsw instruction when the proper idiom/sequence is detected.

It's an exotic but useful instruction.

The sequence that you would need to detect would be something like:

c = ((a * b) >> 14) + 1) >> 1;

Where a,b,c are all OpenCL shorts

0 Kudos
1 Reply
Jeffrey_M_Intel1
Employee
396 Views

Thanks for the request.  It is filed and we will take it from here.

(However, just to set expectations, prioritization is complex and I can't make any guarantees about when or if implementation will occur at this time.) 

 

 

0 Kudos
Reply