Nsight Computeのカーネルメトリクス
スループット、ストール、Rooflineデータを確認します。
「Nsight Computeのカーネルメトリクス」はCoddyKit上の無料CUDA Academyレッスンです。 これはレッスン2/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはCUDA Academy学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 CUDA Academyコースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
Zoom Into One Kernel
Nsight Compute is the microscope for a single kernel. It collects deep hardware metrics so you can see exactly why it runs slow. 🔬
How to Launch It
You profile a kernel with ncu from the command line. It replays the kernel many times to gather detailed counters.
ncu -o report ./my_cuda_appThroughput Metrics
The first thing to read is throughput: how busy the compute units and memory pipes are, shown as a percent of their peak.
Reading Warp Stalls
A stall is a warp that cannot make progress this cycle. Nsight Compute groups stalls by reason so you know what to fix.
Memory Stalls
If most stalls say memory, your kernel waits on data. The cure is better access patterns or reuse, not more math.
Achieved Occupancy
Achieved occupancy shows how many warps were actually active versus the maximum. Low values often mean too few warps to hide latency.
The Roofline Chart
The roofline plots your kernel against hardware limits. Where the dot lands tells you if compute or memory is the wall.
Guided Analysis
Nsight Compute writes plain-language recommendations. It points at the biggest bottleneck so you do not have to guess first.
Cache Hit Rates
Counters for the L1 and L2 caches show how often reads hit cache. Higher hit rates mean fewer trips to slow global memory.
Comparing Two Versions
You can diff two reports side by side. That makes it obvious whether your latest change truly helped the metrics.
It Replays, So It Is Slow
Because it replays kernels, profiling overhead is high. Use it on one kernel at a time, not as a normal run.
Quick Check
Your kernel report shows mostly memory-related warp stalls.
Recap
Nsight Compute reveals one kernel's metrics: throughput, stalls, occupancy, and roofline. Use it to confirm exactly what to optimize. 👏
よくある質問
「Nsight Computeのカーネルメトリクス」レッスンは無料ですか?
はい。「Nsight Computeのカーネルメトリクス」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、CUDA Academyコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 CUDA Academyコースには全4レッスンが含まれています。
「Nsight Computeのカーネルメトリクス」で何を学びますか?
スループット、ストール、Rooflineデータを確認します。 ブラウザで直接実行するハンズオンコードでCUDA Academyを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
CUDA Academyを始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのCUDA Academyは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン2/4です。
「Nsight Computeのカーネルメトリクス」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このCUDA Academyレッスンでコードを書いて実行できますか?
はい。すべてのCUDA Academyレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。
このコースのすべてのレッスン
- Nsight Systemsのタイムライン表示
- Nsight Computeのカーネルメトリクス
- 計算バウンドとメモリバウンド
- NVTXでコードに注釈を付ける