How do I programmatically launch a CUDA command line app under the CUDA profiler and access the generated profiling information stored as .csv files by the profiler?
Background:
I'm writing a program that automates performance comparisons between CPU and GPU versions of equivalent codes. The program takes the paths to two executable files as arguments, one for the CPU and one for the GPU. The program then profiles the GPU version by running it under the CUDA command line profiler and analyses the results.
I'm using Windows 7.
I would like to launch the profiler by using the system() or ShellExecute() call.
I have to tried to run it like this: system("nvvp + filepath")
I have read the Compute Command Line Profiler User guide, but have not found the required information there.