NVIDIA / NVIDIA/nvbench

Enable CUPTI to measure kernel execution time instead of CUDA Events

Open
#184 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Cuda
Stars
927
Forks
123
Avg merge
2d 10h
Merged PRs (30d)
2

Description

CUDA events suffer from low accuracy and include the kernel launch overhead. On the other hand, CUPTI provides a more reliable way to get consistent timing measurement.
This request asks to add an option to replace CUDA Events with CUPTI.

Details

CUDA events issues:

  • Accuracy and Stability:
    • cudaEvent can fluctuate in the range of 10-30us, making measurements of small computations unreliable
    • cudaEvent take into account the kernel launch overhead that depends on host/CPU execution and/or driver version

CUPTI:

  • ~0.5us granularity vs. 10-30us
  • Not affected by kernel launch overhead
  • Consistency: measurements close to the profiler (nsys)
  • Efficiency: avoid using waiting/delay kernels to hide CPU overhead

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating the existing CUDA Events timing path and determine how an optional CUPTI path would fit the benchmark configuration. Done means kernel execution timing can use CUPTI while the existing CUDA Events approach remains available.

Written by the indexing model from the issue text.

Assessment

Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.