Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

vec_type_hint() does not work for me

$
0
0

trying to disable auto-vectorization, I used vec_type_hint(char) as below.  But checking the built assembly code, I see the kernel is still compiled as SIMD32.  Any advice?

 

__kernel __attribute__((vec_type_hint(uchar)))  void modulate_v1_uchar(global const uchar *pSrc, global  uchar *pDst) 
//__kernel void modulate_v1_uchar(global const uchar *pSrc, global  uchar *pDst) 

    uint idx = get_global_id(0);

    uchar src = pSrc[idx];
    src >>= MODULATE_SHIFT_FACTOR;
    pDst[idx] = src;
}


Viewing all articles
Browse latest Browse all 1182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>