d PrintArray(float[] data)
{
    for(int i=0;i&lt;data.Length;i++)
    {
        Console.Write(data[i] + &quot; &quot;);
    }
}
</code></pre>
<h2 id="using-compiler-execute-function">Using compiler execute function</h2>
<p>The compiler execute function is the base for all the other kernel invoke. Below is the sample implementation for the same example we have above:</p>
<pre><code class="lang-csharp">public void Execute()
{
    //Create instance of OpenCL compiler and use device
    var compiler1 = new Ope