title: Nvprof internal error 15:120
body: <p>I'm trying to run <code>nvprof</code> profiler to see where my program is spending more time.</p>
  
  <p>But i always get this error:</p>
  
  <p><code>======== NVPROF is profiling gpu_stuff...
  ======== Command: gpu_stuff
  ======== Error: Internal profiler error 15:120======== Warning: Application returned non-zero code 255
  ======== Error: failed to read result file.
  ======== Warning: make sure cudaDeviceReset() is called before application exit to flush profile data.</code></p>
  
  <p>I'm calling <code>cudaDeviceReset()</code> at the end of code and it is not working yet.</p>
  
  <p>Obs: I have no <code>X-server</code> disponible, i need to use the profiler in command-line.</p>