"n">tf</span><span class="o">::</span><span class="n">cudaStream</span><span class="w"> </span><span class="n">stream</span><span class="p">;</span>
<span class="w">  </span><span class="n">cf</span><span class="p">.</span><span class="n">run</span><span class="p">(</span><span class="n">stream</span><span class="p">);</span>

<span class="w">  </span><span class="c1">// wait for the cudaflow completes</span>
<span class="w">  </span><span class="n">stream</span><span class="p">.</span><span class="n">synch