kflowWithCUDANaiveLinking">Link Objects Using nvcc</a></h3><p>Using <code>nvcc</code> to link compiled object code is nothing special but replacing the normal compiler with <code>nvcc</code> and it takes care of all the necessary steps:</p><pre class="m-code">~$<span class="w"> </span>nvcc<span class="w"> </span>main.o<span class="w"> </span>cudaflow.o<span class="w"> </span>-o<span class="w"> </span>main

<span class="c1"># run the main program </span>
~$<span class="w"> </span>./main
main.cpp!
cudaflow.cp