[英]Terminology used in Nsight Compute
兩個問題:
根據 Nsight Compute,我的 kernel 受計算約束。 相對於峰值性能的 SM 利用率為 74%,memory 利用率為 47%。 但是,當我查看每個管道利用率百分比時,LSU 利用率遠高於其他管道(75% 對 10-15%)。 這不是表明我的 kernel 是 memory 綁定的嗎? 如果計算和 memory 資源的利用率與管道利用率不對應,我不知道如何解釋這些術語。
調度程序僅每 4 個周期發布一次,這是否意味着我的 kernel 受延遲限制? 人們通常根據計算和 memory 資源的利用率來定義它。 兩者之間有什么關系?
在 CC7.5 GPU 上的 Nsight Compute
SM% 由 sm__throughput 定義,Memory% 由 gpu__compute_memory_throughtput 定義
sm_throughput 是以下指標的最大值:
gpu__compute_memory_throughput 是以下指標的最大值:
在您的情況下,限制器是 sm__inst_executed_pipe_lsu ,它是指令吞吐量。 如果您查看sections/SpeedOfLight.py 延遲界限被定義為同時具有 sm__throughput 和 gpu__compute_memory_throuhgput < 60%。
某些指令流水線的吞吐量較低,例如 fp64、xu 和 lsu(因芯片而異)。 管道利用率是 sm__throughput 的一部分。 為了提高性能,選項包括:
產生故障
從 Nsight Compute 2020.1 開始,沒有一個簡單的命令行可以在不運行分析 session 的情況下生成列表。 現在,您可以使用breakdown:<throughput metric>avg.pct_of_peak_sustained.elapsed
並解析 output 以獲取子指標名稱。
例如:
ncu.exe --csv --metrics breakdown:sm__throughput.avg.pct_of_peak_sustained_elapsed --details-all -c 1 cuda_application.exe
生成:
"ID","Process ID","Process Name","Host Name","Kernel Name","Kernel Time","Context","Stream","Section Name","Metric Name","Metric Unit","Metric Value"
"0","33396","cuda_application.exe","127.0.0.1","kernel()","2020-Aug-20 13:26:26","1","7","Command line profiler metrics","gpu__dram_throughput.avg.pct_of_peak_sustained_elapsed","%","0.38"
"0","33396","cuda_application.exe","127.0.0.1","kernel()","2020-Aug-20 13:26:26","1","7","Command line profiler metrics","l1tex__data_bank_reads.avg.pct_of_peak_sustained_elapsed","%","0.05"
"0","33396","cuda_application.exe","127.0.0.1","kernel()","2020-Aug-20 13:26:26","1","7","Command line profiler metrics","l1tex__data_bank_writes.avg.pct_of_peak_sustained_elapsed","%","0.05"
...
可以在 Nsight Compute 部分文件中使用關鍵字breakdown
來擴展吞吐量指標。 這在 SpeedOfLight.section 中使用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.