#sdk #nvidia

no-std nvtx

Rust bindings for the NVIDIA® Tools Extension SDK (NVTX)

4 stable releases

1.3.0 Jan 18, 2024
1.2.0 Jun 25, 2023
1.1.1 Jul 10, 2022
1.1.0 May 30, 2022

#53 in No standard library

Download history 14911/week @ 2026-02-24 13693/week @ 2026-03-03 12294/week @ 2026-03-10 13198/week @ 2026-03-17 13116/week @ 2026-03-24 11184/week @ 2026-03-31 17418/week @ 2026-04-07 16387/week @ 2026-04-14 14954/week @ 2026-04-21 13497/week @ 2026-04-28 24079/week @ 2026-05-05 42671/week @ 2026-05-12 47253/week @ 2026-05-19 38808/week @ 2026-05-26 36068/week @ 2026-06-02 26323/week @ 2026-06-09

154,796 downloads per month
Used in 31 crates (6 directly)

MIT/Apache

36KB
170 lines

NVIDIA Logo

NVTX

Crates.io Documentation Build Status dependency status

A safe and ergonomic #![no_std] crate to bind the NVIDIA® Tools Extension SDK (NVTX) with zero-cost abstraction.

NVIDIA® Tools Extension SDK (NVTX) is a C-based Application Programming Interface (API) for annotating events, code ranges, and resources in your applications. Official documentation for NVIDIA®'s NVTX can be found here.

This library is a wrapper over that SDK, safely, and with zero-cost abstractions. This library facilitates integration into the rich CPU and GPU profiling tools provided by NVIDIA®, such as NSight Systems. The primary motivation for this library is to assist research GPU analysts and bring NVIDIA® tools to Rust. This crate is #![no_std].

➡️ Quickstart

The crate is published on crates.io and the easiest way to use nvtx is by adding the dependency to your Cargo.toml file:

nvtx = "1.1.1"

Example

There are several examples in the examples folder which can be executed through tools such as NSight Systems. Each example has a README document with easy to read steps, screenshots, and documentation. Check out the first example, 'Hello, World!'

🙋 If you need support, please file an issue or start a discussion.


🤝 Contributing

If you support the project, consider sponsoring or buying a coffee. Otherwise, any help is welcome, including pull requests. Please check the active issues if you'd like to help.

The Rust code of conduct applies.


📜 Changelog

See the changelog.


🔏 License

This project is dual-licensed under both Apache 2.0 and MIT licenses.

No runtime deps

~230KB