What is NVRTC?
NVRTC is made by NVIDIA Corporation. A runtime compilation library for CUDA C++ that compiles source code provided as character strings into GPU-targeted outputs such as PTX and, when targeting real architectures, cubin binaries. It exposes APIs to create and compile program objects, pass compiler options, retrieve generated code and compilation logs, and map source-level kernel/variable names to lowered (mangled) names for use with driver-level loading and linking.
What NVRTC does
A runtime compilation library for CUDA C++ that compiles source code provided as character strings into GPU-targeted outputs such as PTX and, when targeting real architectures, cubin binaries. It exposes APIs to create and compile program objects, pass compiler options, retrieve generated code and compilation logs, and map source-level kernel/variable names to lowered (mangled) names for use with driver-level loading and linking.
- Compiles CUDA C++ source provided as strings at runtime
- Creates and manages compilation units via program handles (create/compile/destroy)
- Emits PTX output retrievable via API for loading with CUDA Driver API
- Can emit cubin output (assembled binary) when compiling for an actual GPU architecture
- Provides compilation logs (log size/query and log retrieval APIs)
- Supports name expression registration and lowered-name (mangled name) lookup for kernels and device/constant symbols
- Supports include headers via in-memory headers/includeNames and via include-path compiler options
- Supports link-time optimization workflows by generating LTO IR when compiled with -dlto
Category: Integrated Development Environment (IDE) Software. NVRTC is free to use.
What teams use it for
- Just-in-time compilation of generated CUDA kernels inside applications or frameworks
- Runtime specialization/optimization by compiling with dynamic compiler options (e.g., architecture, fast-math flags)
- Producing PTX for driver-level module loading and execution
- Generating cubins at runtime for deployment scenarios where binary code is preferred over PTX
- Device LTO workflows by generating LTO IR and linking with other device code using a JIT linker
- Resolving mangled kernel/symbol names for driver API lookups using lowered-name retrieval
What it overlaps with
These tools do similar work and turn up in the same large estates. Owning more than one is common, and it is often where the savings are.
Questions buyers ask
What does NVRTC do?
A runtime compilation library for CUDA C++ that compiles source code provided as character strings into GPU-targeted outputs such as PTX and, when targeting real architectures, cubin binaries. It exposes APIs to create and compile program objects, pass compiler options, retrieve generated code and compilation logs, and map source-level kernel/variable names to lowered (mangled) names for use with driver-level loading and linking.
How common is NVRTC in large enterprises?
Samplify finds NVRTC in about 1 in 10 of the large enterprise software estates it has analysed.
Is NVRTC free?
NVRTC is free to use.
What can replace NVRTC?
Other tools in the same category include Notepad++, PyCharm, Visual Studio, Azure Data Studio.
Do we already own something that does what NVRTC does?
Often, yes. Large estates commonly hold several tools that overlap. Samplify compares every tool you own at feature level, across every category, and decides which one stays.
Paying twice for the same job?
Most large estates own several tools that do the same thing, often without anyone knowing. Samplify compares every tool you own at feature level and decides which one stays, with the evidence attached.
Where this comes from
Samplify's software catalogue and the large enterprise estates it has analysed, as at 2 Dec 2026. Features and use cases are Samplify's own reading of the product. Check anything important with NVIDIA Corporation.