CUDA Software Profiler

How can I programmatically launch a CUDA command-line application in a CUDA profile and access the generated profiling information stored as CSV files by the profiler?

Background:

I am writing a program that automates performance comparisons between versions of equivalent CPU and GPU codes. The program passes the paths to two executable files as arguments, one for the central processor and one for the GPU. The program then profiles the GPU version by running it in the CUDA command-line profile profile and analyzing the results.

I am using Windows 7.

I would like to start the profiler using a call to system () or ShellExecute ().

I should try to run it like this: system ("nvvp + filepath")

I read the Compute Command Line command line user manual but did not find the necessary information there.

+4
source share
1 answer

Welcome to stack overflow.

To summarize the comments, the answer basically is that you should not run the profiler programmatically. As a result, you will receive invalid comparison results, and the profiler will not provide indicators such as memory usage.

Instead, monitor memory usage in applications, run them with regular system calls and time using Windows Timers .

+1
source

All Articles