How to get the GPU execution time of a script in the shell?
7
votes
1
answer
1548
views
I would like to display the completion time of a script, in terms of GPU time (not CPU).
For the CPU, I can [simply](https://unix.stackexchange.com/q/52313/16704) [use](https://unix.stackexchange.com/q/52313/16704) [
time
](https://stackoverflow.com/q/556405/395857) :
francky@gimmek80s:~$ time ls -l
total 8
drwxrwxr-x 3 francky francky 4096 Dec 16 22:19 codes
drwxrwxr-x 2 francky francky 4096 Jun 20 00:06 CUDA_practice
drwxrwxr-x 3 francky francky 4096 Dec 16 22:44 data
real 0m0.001s
user 0m0.000s
sys 0m0.000s
What is the equivalent for GPUs?
(I use the CUDA toolkit to perform some computations on my Nvidia GPUs.)
Asked by Franck Dernoncourt
(5533 rep)
Dec 17, 2015, 03:26 PM
Last activity: Mar 4, 2020, 02:36 PM
Last activity: Mar 4, 2020, 02:36 PM