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

Using sad instructions in OpenCL (HD graphics)

Karthick_J_
Beginner
430 Views

Hi,

I am writing an OpenCL kernel, which computes sad(Sum of absolute differences) of a 'char' vector. I understand that HD graphics 4000(and above) has a special sad2 and sada2 instructions. How to make sure that the OpenCL code that I write gets compiled into those sad2 or sada2 instructions? Because sad2 and sada2 behaves little differently that the OpenCL defined "absdiff" function.

And another related question, which has been asked in this forum before. Are there is any plans to support view the disassembly of HD graphics(or Iris Pro) GPUs for OpenCL kernel? Because I would like to validate the OpenCL code I wrote gets compiled into sad2 or sada2 instruction.

Karthick

0 Kudos
1 Reply
ARNON_P_Intel
Employee
430 Views

Hi,

We aware of the ask for disassembly view of the the Intel Graphics. Thanks for sharing the need with us.

Arnon

0 Kudos
Reply