Calculate breakdown between CPU and GPU execution

43 views
Skip to first unread message

Mengchi zhang

unread,
May 2, 2017, 12:49:13 PM5/2/17
to gem5-gpu Developers List
Hi all,

I would like to estimate the breakdown execution between CPU and GPU. I found the stats.txt just show the simulation time for CPU and gpu_stats.txt just show the kernel execution ticks for each shader which might overlap. Does anyone have better ideas calculating GPU simulation time? Or should I use the execution ticks in gpu_stats.txt and spa frequency to calculate GPU time?

Thanks,

Mengchi Zhang

Jason Lowe-Power

unread,
May 2, 2017, 12:59:49 PM5/2/17
to Mengchi zhang, gem5-gpu Developers List
Hello,

The "total kernel time (ticks) =" at the bottom of gpu_stats.txt is the total time the GPU was executing (accounting for the overlaps between CTAs). Similarly, the "kernel times (ticks): start, end, start, end, ..., exit" at the top of the file gives the times the kernels begin and end accounting for overlapping CTAs. We don't support overlapping kernels at this time.

Jason

Joel Hestness

unread,
May 4, 2017, 12:49:15 AM5/4/17
to Jason Lowe-Power, Mengchi zhang, gem5-gpu Developers List

I would also recommend that you try out the command line parameter --kernel_stats, which causes gem5-gpu to dump statistics at the beginning and end of each GPU kernel. This would let you isolate the chunks of execution that are just CPU vs. those that overlap CPU and GPU execution.

  Joel


Reply all
Reply to author
Forward
0 new messages