CUDA Profiler Tools Interface (CUPTI) for CUDA Toolkit 12.6 is now available for download in the NVIDIA Registered Developer Program.
The NVIDIA CUDA Profiler Tools Interface (CUPTI) for CUDA Toolkit is a dynamic library that enables the creation of profiling and tracing tools that target CUDA applications. CUPTI provides a set of APIs targeted at ISVs creating profilers and other performance optimization tools:- the Activity API,
- the Callback API,
- the Event API,
- the Metric API,
- the Profiler API,
- the PC Sampling API,
- the SASS Metric API, and
- the Checkpoint API
- the Python API (available separately)
Updates in CUDA Toolkit 12.6 Update 2
-
New Features
- In CUDA 12.6 GA release, CUPTI added a new set of APIs around Perfworks host APIs to simplify usage,
shield users from low-level concepts, and ease adaptation to changes in Perfworks APIs.
These host APIs were provided in the header
cupti_profiler_host.h
. Complementing these, a new set of target APIs are added in CUDA 12.6 Update 2 to simplify profiling for new users and align the call structure with other profiling APIs for faster learning and better adaptability. These target APIs are provided in the headercupti_range_profiler.h
, and will be referred to as Range Profiling APIs. For range profiling, it is strongly recommended that users, especially those new to the field, utilize the new host and target APIs introduced in CUDA 12.6. The range_profiling sample shows how to use the host and target range profiling APIs.-
NOTE: It is important to note that existing Profiling API may be deprecated and potentially removed in future releases, so transitioning to new host and target APIs will ensure continued support and compatibility.
- Added support for tracing and profiling on Microsoft Compute Driver Model (MCDM). This requires an NVIDIA display driver version of 565 or higher.
- Improved the conversion accuracy of timestamps which are captured on the GPU and converted to CPU timestamps.
- Timestamps reported in the activity records were not always correct for Windows Subsystem for Linux (WSL) systems. This issue has been fixed.
- Fixed an issue that resulted in failure to capture the tracing information for kernels inside the body of the conditional node of CUDA Graph. This requires an NVIDIA display driver version of 565 or higher.
- PM Sampling trigger mode
CUPTI_PM_SAMPLING_TRIGGER_MODE_GPU_TIME_INTERVAL
is supported for all GA10x (GA102+) chips. - Fixed issues with Enhanced compatibility (aka minor version compatibility) of a few CUPTI activities with the driver versions shipped with the CUDA 12.2 or prior releases.
- Made flushing of activity buffers thread-safe for per-thread activity buffer feature.
Updates in CUDA Toolkit 12.6 Update 1
-
Resolved Issues
- Disabling all callbacks in a domain using the
cuptiEnableDomain
API could unintentionally disable other activities and callbacks. This issue has been addressed and resolved. - Fixed issues with Enhanced compatibility (aka minor version compatibility) of a few CUPTI activities with the driver versions shipped with the CUDA 12.2 or prior releases.
Updates in CUDA Toolkit 12.6
-
New Features
- CUPTI introduces PM Sampling APIs for collecting many hardware metrics by sampling the GPU's performance monitors (PM) periodically at fixed intervals for a CUDA workload.
These APIs are provided in the header file
cupti_pmsampling.h
. These are supported on Turing and later GPU architectures, i.e. devices with compute capability 7.5 and higher. Refer to the section PM Sampling API for more details. - The Profiling is split into four main phases - Enumeration, Configuration, Collection and Evaluation. APIs for three phases enumeration, configuration and evaluation are provided directly by the low level Perfworks APIs. CUPTI is adding a new set of APIs around these Perfworks host APIs to simplify usage, shield users from low-level concepts, and ease adaptation to changes in Perfworks APIs. These APIs promote consistency, reduce confusion, and enhance integration with CUPTI APIs. New host APIs are provided in the header
cupti_profiler_host.h
. Additionally, new target APIs will be introduced in a future release to simplify profiling for new users and align the call structure with other profiling APIs for faster learning and better adaptability. - Added support for identifying the source of the memory allocation. This is useful when memory allocation request is made from a library or shared object which is called from the application. A new field
source
is added in the memory activity record. The activity recordCUpti_ActivityMemory3
is deprecated and it is replaced by a new activity recordCUpti_ActivityMemory4
. Refer to the section Device Memory Allocation Source Tracking for more details. - Added a new overhead kind
CUPTI_ACTIVITY_OVERHEAD_ACTIVITY_BUFFER_REQUEST
to report the overhead incurred while requesting activity buffers from the CUPTI client. - Added static library
libcupti_static.a
for ARM Server (arm64 SBSA). - Source/SASS level metrics from the header
cupti_activity.h
are deprecated on Volta and later GPU architectures and these will be removed in a future release. It includes metricsCUPTI_ACTIVITY_KIND_GLOBAL_ACCESS
,CUPTI_ACTIVITY_KIND_SHARED_ACCESS
,CUPTI_ACTIVITY_KIND_BRANCH
andCUPTI_ACTIVITY_KIND_INSTRUCTION_EXECUTION
and related correlation kindsCUPTI_ACTIVITY_KIND_SOURCE_LOCATOR
andCUPTI_ACTIVITY_KIND_INSTRUCTION_CORRELATION
. It is recommended to move to the SASS Metric API from the headercupti_sass_metrics.h
which is supported on Volta and later GPU architectures. - Exported the profiling API
cuptiProfilerIsPassCollected
. - Reduced the collection overhead for memcpy tracing.
- For some activities, duration for the activity buffer request was getting included in the activity duration. This issue is resolved.
Initial Release of CUPTI Python Profiling APIs
- CUPTI Python provides Python APIs for creation of profiling and tracing tools that target CUDA Python applications.
- This release of CUPTI Python supports a subset of CUPTI C Activity and Callback APIs for linux x86_64, including samples.
-
Available separately from the CUDA Toolkit only.
Please refer to the CUPTI Python 12.6.0 overview, release notes, and user guide for more details.
Getting Started
-
For more information on CUPTI for CUDA Toolkit 12.6 , including features, requirements, documentation and support, please visit the CUPTI Overview page.
To download this version, get it as part of the CUDA Profiler Tools Interface (CUPTI) for CUDA Toolkit for CUDA Toolkit 12.6.
Version 2024.3.2 Overview & New Features | Download | Documentation
For more information on CUPTI Python 12.6.0
Please refer to the CUPTI Python 12.6.0 overview, release notes, and user guide.
Latest PRODUCT INFO
- Overview (download, features, platforms, requirements)
- Documentation
- Downloads (as part of CUDA Toolkit)
- Downloads (outside of CUDA Toolkit)
- Revision History
- CUPTI Forum