title: NVCC behaviour for .cpp and .cu files
body: <p>Consider two files:</p>
  
  <ol>
  <li>test.cpp : contains an unused function <code>f1()</code></li>
  <li>test.cu: contains the same unused function <code>f1()</code></li>
  </ol>
  
  <p>These files are complied using NVCC and gives  two exe (1.EXE, 2.EXE).
  Note that one is .cpp and another is .cu</p>
  
  <p>During profiling, 1.exe does not show the unused function f1, But during profiling, 2.exe  shows the unused function f1. </p>
  
  <p>Why? Why does NVCC behaves differently for .cu and .cpp files?   </p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>My confusion boils down to:
  Can I automatically inline the unused functions in .cu files, may be using some compiler option?</p>