Skip to content

Enable CUPTI to measure kernel execution time instead of CUDA Events #184

@fbusato

Description

@fbusato

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions