OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
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.
1720 Discussions

Support asm("") for Intel GPU intrinsics (with examples of use)

seems that Intel has released at graphics documentation of IVB GPU at intellinuxgraphics so we now have GPU instruction set..
I asked some time ago intel to expose asm("") similar to Nvidia OpenCL GPU support.. maybe now makes sense to reask as perhaps for CPU doesn't make sense as code could be vectorized and seems asm code would force code to prevent automatic vectorization anyway with GPUs supporting SIMT in HW similar to Nvidia expose PTX support in OpenCL I think Intel should expose GPU native instructions currently not exposed in OpenCL such as addc (add with carry for big numbers more efficient support etc..) etc.. as noted in manual:

*Add bit manipulation instructions: bfi1, bfi2, bfrev, cbit, fbh, and fbl.
*Add the integer addc (Add with Carry) and subb (Subtract with Borrow) instructions.

Another way could be, be exposed as instrinsics __bfi1, __addc , etc.. but this would possibly take more work than simple asm() extension..

I think as GPU instruction richness evolves this should be required as for example new Nvidia GPUs exposes interwarp shuffle and this use exposes fastest reductions for example..

0 Kudos
1 Reply
Thanks for sharing your ideas needs with us. Inputs like yours are important for us as we continue to develop our hardware and software.
This information on the Intel HD Graphics 4000 is available for all at:
- Arnon
0 Kudos