title: Profiling arbitrary CUDA applications
body: <p>I know of the existence of <code>nvvp</code> and <code>nvprof</code>, of course, but for various reasons <code>nvprof</code> does not want to work with my app that involves lots of shared libraries. <code>nvidia-smi</code> can hook into the driver to find out what's running, but I cannot find a nice way to get <code>nvprof</code> to attach to a running process.</p>
  
  <p>There is a flag <code>--profile-all-processes</code> which does actually give me a message "NVPROF is profiling process 12345", but nothing further prints out. I am using CUDA 8.</p>
  
  <p>How can I get a detailed performance breakdown of my CUDA kernels in this situation?</p>