arrow
Return

Nsight Python: A Python-First Profiling Toolkit for Seamless GPU Kernel Analysis (Tool)

delete2026-01-01
delete0
PRE
AI
B
Bastian Hagedorn *
A
Alexander J. Collins
T
Tony Mongkolsmai
V
Vinod K. Grover
DOI:10.1145/3771775.3786273delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
The proliferation of Python DSLs for developing kernels has democratized GPU programming. While kernel development is now Python-native, performance analysis and optimization still rely on external tools and fragmented workflows. We introduce Nsight Python, a Python profiling toolkit that bridges this gap by bringing performance analysis for GPU kernels into the Python ecosystem. Nsight Python is framework-agnostic and works seamlessly with any Python framework through simple decorators and context managers that mark code regions for analysis. The tool automatically handles performance measurement, data collection, and result aggregation across multiple configurations. Key innovations include: (1) Python-native interface enabling direct GPU kernel analysis within existing Python workflows, (2) configuration-driven execution model that correlates measured metrics with input parameters, (3) access to thousands of core metrics and enabling custom derived and relative metric computations through parameter correlation, (4) built-in thermal management to prevent GPU throttling during batch analysis, and (5) structured customizable visualization with automatic plot generation based on parameter roles. With Nsight Python, the entire kernel development process-from implementation to iterative optimization and analysis-is now truly Python-native, providing detailed insights without requiring external profilers or disrupting workflows.
Keywords:
GPU profiling
performance analysis
Python
Nsight Compute
automation
visualization
Python tools for structural tasks in chemistry
err2024-05-14
err0
PREAI
errRyzhkov, Fedor V.; Ryzhkova, Yuliya E.; Elinson, Michail N.
errShare
errSave
errShare
errSave
Profylo: A Python Package for Phylogenetic Profile Comparison and Analysis
err2025-10-01
err1
errOAAI
errSchoenstein, Martin; Mermillod, Pauline; Kress, Arnaud; Lecompte, Odile; Nevers, Yannis
errShare
errSave
pynamicalsys: A Python toolkit for the analysis of dynamical systems
err2025-10-08
err0
errOAAI
errMatheus Rolim Sales; Leonardo Costa de Souza; Daniel Borin; Michele Mugnaine; José Danilo Szezech; Ricardo Luiz Viana; Iberê Luiz Caldas; Edson Denis Leonel; Chris G. Antonopoulos
errShare
errSave
errShare
errSave
scikit-fda: A Python Package for Functional Data Analysis
err2024-01-01
err7
errOAAI
errRamos-Carreno, Carlos; Carbajo-Berrocal, Miguel; Torrecilla, Jose Luis; Marcos, Pablo; Suarez, Alberto
errShare
errSave
XCast: A python climate forecasting toolkit
err2022-07-15
err5
errOAAI
errHall, Kyle Joseph Chen; Acharya, Nachiketa
errShare
errSave

Journal

P
PROCEEDINGS OF THE 35TH ACM SIGPLAN INTERNATIONAL CONFERENCE ON COMPILER CONSTRUCTION, CC 2026
IF:
0
Papers:
18
Citations:
1

Organization

N
nvidia corporation
Scholars:
19
Papers: 11
Citations: 852
Cited Papers

Cited Papers

OpenTuner
err2014-08-24
err0
errOAAI
errJason Ansel; Shoaib Kamil; Kalyan Veeramachaneni; Jonathan Ragan-Kelley; Jeffrey Bosboom; Una-May O'Reilly; Saman Amarasinghe
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
no more