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

How to create const vector variables(int4, float4, ...) in Kernel Builder

$
0
0

Hi all,

Does any body know how to create const vector variables(int4, float4,...) in the Intel Kernel Builder? I had written a kernel with const vector variables and wanted to analyze it with Intel Kernel Builder. However I do not find a way to create vector variables and assign them to the kernel. Does any one know how to get this done? My kernel is written as:

__kernel void sample_kernel(__global uchar4* pTarget, __global uchar4* pSource, const int2 whSize, const float4 iColor)       { .... }


Viewing all articles
Browse latest Browse all 1182

Trending Articles



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