Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

nsys2prv: Translate NVIDIA Nsight Systems traces to Paraver traces

nsys2prv is a Python package that parses and interprets the exported data of an NVIDIA Nsight Systems1 trace and converts it to Paraver semantics in order to browse the trace with Paraver. Paraver is a tool by the Performance Tools team at BSC, and is a parallel trace visualization system allowing for large scale trace execution analysis. Paraver can be obtained at https://tools.bsc.es/downloads.

The Nsight Systems traces should include GPU kernel activity, and also translate information about CUDA runtime, OpenACC constructs, MPI runtime, GPU metrics and NVTX regions. It supports reports of multiple processes and threads, but right now it still does not support merging multiple reports into one trace.

How it works

This tool relies on the export functionality of nsys. The data collection consists of a mix of the nsys stats predefined scripts, and a manual parsing of the .sqlite exported format data. The following figure summarizes the translation workflow: translation workflow

More details on the workflow and the data parsing logic can be read on the wiki pages.

Installation

nsys2prv is distributed as a PyPI package and thus can be installed with pip. The following requirements for the package to work will be installed automatically by pip:

  • python > 3.11
  • pandas > 2.2.2
  • sqlalchemy
  • tqdm

Additionally, it requires an installation of NIDIA Nsight Systems in your PATH to extract the data. Alternatively, you can set the NSYS_HOME environment variable. It is required that the version of Nsight Systems is always greater than the one used to obtain the trace. It is recommended at least the version 23.11.

To install the package just use pip globally or create a vitual environment:

pip install --global nsys2prv
# or
python -m venv ./venv
source ./venv/bin/activate
pip install nsys2prv

Basic usage

To translate a trace from Nsight Systems you need the .nsys-rep report file that nsys profile outputs. This serves as input to nsys2prv.

nsys2prv -t what,to,translate source.nsys-rep output-prv-name

Currently, the translator needs that the user manually specifies the different programming models information to translate using the --trace,-t flag. By default it always extracts kernel execution information, so it is mandatory that the nsys report contains GPU activity. Future releases will automatically detect the information that is available in the report and make this flag optional. The accepted value for the flag is a comma-separated list with any of the following categories:

  • cuda_api_trace: CUDA API calls
  • nvtx_pushpop_trace: The developer defined NVTX Push/Pop regions
  • nvtx_startend_trace: The developer defined NTXT Start/End regions
  • gpu_metrics: The sampling events of hardware metrics for the GPUs
  • mpi_event_trace: The MPI calls
  • openacc: The OpenACC constructs

Finally, the output-prv-name.prv trace can be opened with Paraver and analyzed.

Further documentation

For documentation about trace analysis and config files (CFGs) provided, please refer to the wiki pages.

Bug reporting and contribution

A list of the current bugs and features targeted can be seen in the GitLab repository. The project is still currently under initial development and is expecting a major code refactoring and changes in the command line interface (CLI). As it is a tool to support and enable performance analysts' work, new use cases or petitions for other programming model information support are always welcomed. Please contact marc.clasca@bsc.es or beppp@bsc.es for any of those requests, recommendations, or contribution ideas.

  1. https://developer.nvidia.com/nsight-systems ↩

Metadata

Release files for nsys2prv 0.5.0.dev503251

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nsys2prv 0.5.0.dev503251
File Size Uploaded Provenance Actions
nsys2prv-0.5.0.dev503251.tar.gz 738.9 kB Without provenance Details for nsys2prv-0.5.0.dev503251.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nsys2prv 0.5.0.dev503251
File Interpreter ABI Platform Actions
nsys2prv-0.5.0.dev503251-py3-none-any.whl Python 3 none any Details for nsys2prv-0.5.0.dev503251-py3-none-any.whl

Total release size: 791.1 kB

Release files / nsys2prv-0.5.0.dev503251.tar.gz

Download URL nsys2prv-0.5.0.dev503251.tar.gz
Size 738.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6036e34d73b3b35b35b4da927423308ac37b98e52bbc768d4a72af38dcdfce31
BLAKE2b-256 checksum
How to use checksums
91c9cc9006e69d3fc17e123b7ebf812b4d6783a99c4d37ec9f95048720162613
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.11.11 Linux/5.10.0-33-amd64

Release files / nsys2prv-0.5.0.dev503251-py3-none-any.whl

Download URL nsys2prv-0.5.0.dev503251-py3-none-any.whl
Size 52.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16e164d50e083d9047c6d475f7c291b2611af8f2cb6a6f97a73af48c3f610098
BLAKE2b-256 checksum
How to use checksums
b1788bbe10f01cee28814369f8540bac82da1aae446f3e4720c9714e34b5f766
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.11.11 Linux/5.10.0-33-amd64

Security for nsys2prv 0.5.0.dev503251

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page