0Pricing
CUDA Academy · Урок

Метрики ядер в Nsight Compute

Данные о пропускной способности, простоях и модели «крыша — пол».

«Метрики ядер в Nsight Compute» — бесплатный урок CUDA Academy на CoddyKit. Это урок 2 из 4. Ты можешь прочитать весь урок бесплатно ниже — а потом практиковать его прямо в браузере с встроенным редактором кода и ИИ-репетитором 24/7. Это часть пути обучения 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_app

Throughput 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/7) и разблокировать остальной курс CUDA Academy, подпишись на CoddyKit PRO. Курс CUDA Academy содержит 4 уроков всего.

Чему я научусь в уроке «Метрики ядер в Nsight Compute»?

Данные о пропускной способности, простоях и модели «крыша — пол». Ты практикуешь CUDA Academy с помощью реального кода, который запускаешь прямо в браузере, и ИИ-репетитор 24/7 отвечает на твои вопросы во время урока.

Нужен ли мне опыт, чтобы начать CUDA Academy?

Предыдущий опыт не требуется. CUDA Academy на CoddyKit структурирован для всех уровней — от новичков до продвинутых, поэтому ты можешь начать отсюда или с самого начала и учиться в своем темпе. Это урок 2 из 4.

Сколько времени занимает урок «Метрики ядер в Nsight Compute»?

Большинство уроков CoddyKit занимают около 5–10 минут. Каждый из них компактный и интерактивный, поэтому ты постоянно делаешь прогресс и продолжаешь с того же места в веб-версии и приложении.

Можно ли писать и запускать код в этом уроке CUDA Academy?

Да. Каждый урок CUDA Academy включает встроенный редактор кода, поэтому ты пишешь и запускаешь реальный код прямо в браузере и получаешь моментальную обратную связь от AI — локальная установка не требуется.

Все уроки этого курса

  1. Представление временной шкалы в Nsight Systems
  2. Метрики ядер в Nsight Compute
  3. Вычислительно- и memory-bound задачи
  4. Аннотирование кода с помощью NVTX
← Назад к CUDA Academy