Andrew Liu
Andrew Liu

Reputation: 129

Measuring running time of CUDA program

I use the Linux program time to measure the running time of my CUDA program, and it shows up something like this:

real        0m10.269s
user        0m6.520s
sys         0m5.336s

My question is: Is the GPU execution time included in the sys part or the user part?

Upvotes: 1

Views: 1117

Answers (1)

Martin Beckett
Martin Beckett

Reputation: 96119

You can't tell - it could even be neither of them.

To time CUDA tasks you need to use the performance timers built into CUDA, see the best practices guide

Upvotes: 3

Related Questions