span>-o<span class="w"> </span>main

<span class="c1"># run the main program</span>
~$<span class="w"> </span>./main
main.cpp!
cudaflow.cpp!</pre><p>We give <code>g++</code> all of the objects again because it needs the CPU object code, which is not in <code>gpuCode.o</code>. The device code stored in the original objects, <code>main.o</code> and <code>cudaflow.o</code>, does not conflict with the code in <code>gpuCode.o</code>. <code>g++</code> ignores device code because it does not know how to link it, a