top_kernels
Reads a saved nsys or ncu profile CSV and returns the N heaviest kernels plus GPU time share, call counts, duration, occupancy, and throughput metrics.
Instructions
Read a saved profile CSV (from profile()) and return the n heaviest kernels. tool='nsys': cuda_gpu_kern_sum CSV -> share of GPU time, calls, avg/med/min/max/std ns. tool='ncu': details CSV -> per-launch duration, achieved occupancy, DRAM / SM throughput %, registers per thread, and a memory/compute/latency hint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| tool | No | nsys | |
| summary_csv | Yes |