Search the archive

14,355 indexed articles, 13,283 of them summarised by us.

Articles
14,355
Research papers
91,965
Models priced
2,249
Providers
163

12 results for “PTX”

Newest and most relevant first

How to Optimize NVFP4 Attention on NVIDIA RTX Blackwell Through Register Recycling

Engineers serving video or world models on RTX Blackwell GPUs can get up to 1.64x faster attention and 15.34% lower end-to-end latency by pulling a merged FlashInfer kernel.

NVIDIA published a tutorial on making the attention step of AI video generation faster on its RTX Blackwell gaming and workstation GPUs. The trick is 'register recycling': reusing the GPU's scratch memory for the next calculation while the current one finishes, so the chip never sits idle. This made the attention kernel up to 1.64x faster, and the company Reactor cut real video-model response times by up to 15.34% using it in production.

Companies serving video-generation and world models on NVIDIA RTX PRO 6000 Blackwell hardware can cut inference latency meaningfully at no hardware cost. Reactor reports up to 15.34% end-to-end latency reduction across LongLive, Helios, OmniDreams, and Cosmos 3 Nano workloads, with the core kernel up to 1.64x faster. The optimization is already merged into the open-source FlashInfer library, so adoption requires an upgrade rather than a purchase decision. Teams on data-center Blackwell GPUs gain less, since the technique targets SM120 specifically.

SageAttention3's original SM120 CTA (4 producer, 8 consumer warps) runs QK, softmax/quantization, and PV serially per N128 tile, leaving Tensor Cores idle and consuming 62,464 registers (95.3% of capacity), leaving no room for a second score buffer. The optimization splits each N128 score tile into two N64 slots and reuses score registers after NVFP4 quantization to compute the next tile's QK, overlapping MMA with remaining softmax and PV work. Kernel latency improved up to 1.64x (Synthetic 8,192 causal); Reactor saw up to 15.34% end-to-end reduction. The kernel is merged into FlashInfer main; timings exclude Q/K/V quantization.

NVIDIA Developer Blog →

Introducing CUDA Rust: Two Tracks for Writing GPU Kernels

Rust developers can now write GPU kernels in Rust itself instead of wrapping C++ code, with compile-time guarantees against thread races.

NVIDIA announced two ways to write GPU programs in Rust, a language prized for catching bugs before software ever runs. One track, cuda-oxide, is an early alpha that needs a nightly developer version of Rust; the other, cutile-rs, works on stable Rust 1.89 and is already used by HuggingFace's Grout engine and mistral.rs. This matters to programmers building AI systems, since it removes the need to switch languages for GPU work.

NVIDIA is committing to Rust for GPU kernel programming through 2027, closing a gap where kernels still required C++ or Python. The Tile-based cutile-rs is production-viable on stable Rust 1.89 and already runs in HuggingFace's Grout and mistral.rs, while cuda-oxide is early alpha on a pinned nightly toolchain. Neither is production-ready and APIs will change; NVIDIA says interop with CUDA C++ and Python will prevent ecosystem lock-in.

cuda-oxide is a custom rustc codegen backend routing #[kernel] functions through MIR, the Pliron IR framework and LLVM to PTX; safety comes from DisjointSlice types plus launch contracts checked at prepare_vecadd time. cutile-rs embeds kernel ASTs via #[cutile::module], JIT-compiles through CUDA Tile IR, and gets safety from host-side tensor partitioning; it needs stable Rust 1.89+, CUDA 13.3, compute capability 8.0+. Both compile-time-reject aliasing; Tile lacks SIMT shared-memory control, which still requires unsafe.

NVIDIA Developer Blog →

Building Faster Cryptography with Carryless Multiplication in NVIDIA CUDA 13.3 

NVIDIA GPUs finally get hardware carryless multiplication via CUDA 13.3's clmad, so AES-GCM encryption and zero-knowledge proof generation on Ampere-or-later GPUs can run up to 18.8x faster.

NVIDIA has added a new instruction called clmad to CUDA 13.3 that lets its graphics chips perform a special kind of math used to keep data encrypted and verified. Previously this math had to be faked with slower software tricks. Tests show the technique makes the security check inside encrypted connections up to 18.8 times faster on the B200 chip, and speeds up certain cryptographic proofs by up to 13 times.

CUDA 13.3 adds hardware support for carryless multiplication, a primitive x86 CPUs have had for fifteen years but NVIDIA GPUs lacked. For companies encrypting data at scale or building zero-knowledge proof systems, this changes GPU cost structures: GHASH integrity checking hits ~6.3 TB/s on the B200, near DRAM bandwidth. The gain applies to every Ampere-or-newer GPU already deployed, not just new purchases.

CUDA 13.3 introduces clmad, a PTX carryless multiply-accumulate instruction (with .lo/.hi 64x64-to-128-bit variants) hardware-accelerated on all sm_80+ GPUs. GF(2^128) multiplication uses Karatsuba in 6 clmad calls plus Barrett reduction. Benchmarks on B200: GHASH ~6.3 TB/s (18.8x over Irreducible's bitsliced baseline; RTX 5090 ~1,300 GB/s, 2x), sum-check protocol 3-4x and up to 13x. No support on pre-Ampere GPUs.

NVIDIA Developer Blog →

Run Key Genomics and Protein Folding Workloads Faster with NVIDIA RTX PRO 4500 Blackwell 

Genomics labs can now buy a cheaper, lower-power GPU that processes whole genomes and predicts protein structures 2-9x faster than the L4 it replaces.

NVIDIA has released a new data center graphics card, the RTX PRO 4500 Blackwell Server Edition, built for analyzing DNA and predicting protein shapes, the two core steps of precision medicine. Software called Parabricks cuts genome analysis from hours to minutes, running up to 2.4x faster than on the previous L4 chip. A sequencing company, PacBio, reports more than double the speed processing raw DNA reads. The card also matches an expensive H100 on one task while using 4.3x less power.

NVIDIA is positioning the RTX PRO 4500 Blackwell Server Edition as a cost-efficient alternative to the H100 SXM for bioinformatics workloads. Genome analysis via Parabricks v4.7.0 runs 2-2.4x faster than on the L4 Tensor Core GPU, and Smith-Waterman alignment matches H100 performance at up to 4.3x lower power draw. Customers like Pacific Biosciences report more than 2x basecalling throughput gains. Labs choosing GPUs for genomics or protein folding pipelines should benchmark it against both the L4 and pricier H100 options.

Benchmarks run with Parabricks v4.7.0 on 30x Illumina and 35x PacBio whole-genome data show fq2bam at 2.4x, DeepVariant and Minimap2 at roughly 2x over the L4. OpenFold3 with cuEquivariance achieves up to 2.3-2.4x speedup for proteins up to 1,500 amino acids using BF16 inference. Blackwell DPX instructions, exposed in CUDA 13.2 and PTX 9.2, deliver 9.6x Smith-Waterman speedup over L4 and parity with H100 SXM using prior-generation DPX. Figures are NVIDIA Perflab reference numbers, dependent on dataset and host hardware.

NVIDIA Developer Blog →

Write CUDA GPU kernels in pure Rust. No DSL. No bindings. Just Rust to PTX.

Rust developers can finally write NVIDIA GPU kernels without C bindings or DSLs, though the experimental project is years from replacing CUDA C in production.

NVIDIA Labs has released a research project called cuda-oxide that lets programmers write GPU code in the Rust language directly. Normally, GPU programming requires writing code in C, Nvidia's own language, or a custom mini-language. Cuda-oxide instead compiles ordinary Rust, including closures and error types, into PTX, the intermediate format Nvidia GPUs run. It is experimental and not ready for production, but teams already using Rust can try it today.

Cuda-oxide, an experimental Nvidia Labs project, could eventually let Rust-heavy teams write GPU code without maintaining C bindings or teaching engineers a separate GPU language. The trade-offs today are significant: it is explicitly not production-ready, has no stable install, and does not replace CUDA C. Competition matters here too, Rust GPU alternatives like bindgen wrappers and DSLs already exist. Worth a weekend evaluation, not a budget line.

Cuda-oxide compiles Rust kernels annotated with #[kernel] attributes into PTX, Nvidia's GPU intermediate representation, using the existing LLVM backend with a new PTX target rather than a forked rustc, so kernels get standard Rust optimizations and full semantics including match, if let, closures, iterators and Result types. A companion cuda-oxide-runtime crate loads and launches the resulting .ptx files from host Rust. Examples like vector_add ship in the repo, but the project is unstable with no benchmark numbers provided.

GitHub Opensource Projects →

Topping the GPU MODE Kernel Leaderboard with NVIDIA cuda.compute

Python developers can now call NVIDIA's speed-of-light CUB GPU primitives (sort, scan, reduce, histogram) directly without writing or binding CUDA C++ kernels.

NVIDIA's CCCL team won the most first-place finishes on the GPU MODE leaderboard using its new cuda.compute library. This tool lets programmers write fast GPU code in Python instead of the slower, more difficult C++ traditionally required. Its sort was two-to-four times faster than the next best competition entry. Anyone building GPU-powered Python software benefits.

NVIDIA's new cuda.compute library removes the C++ expertise barrier to high-performance GPU computing, letting teams stay in Python with JIT-compiled, architecture-optimized kernels. The CCCL team won the most first-place finishes across B200, H100, A100, and L4 hardware, with sorting two-to-four times faster than rivals. Teams building Python GPU libraries like CuPy or RAPIDS components gain faster iteration; custom kernel writers see less advantage.

cuda.compute exposes a Pythonic API for device-wide CUB primitives, JIT-compiling kernels with custom Python-defined types and operators plus link-time optimization. The CCCL team topped the GPU MODE leaderboard on B200, H100, A100, and L4; CUB sort beat the next submission by two-to-four times. Top VectorAdd rivals required C++ with inline PTX, producing architecture-dependent code. Losses stemmed from lacking per-GPU tuning policies versus problem-size-specialized entries.

NVIDIA Developer Blog →

Advancing GPU Programming with the CUDA Tile IR Backend for OpenAI Triton

Triton developers can now compile the same Python kernels to NVIDIA's tile-based backend via an environment variable, though today that means Blackwell-only hardware, source builds, and some performance regressions.

NVIDIA has built a new compiler pathway called Triton-to-TileIR that lets Triton, a popular open-source Python tool for writing fast GPU code, run on NVIDIA's newer 'tile-based' programming model introduced in CUDA 13.1. Instead of breaking programs into individual threads, tiles describe computations on whole blocks of data, letting the hardware handle scheduling. Programmers using Triton can try it without rewriting code, but only on NVIDIA's newest Blackwell graphics cards.

Triton-to-TileIR is an incubating, source-built project requiring CUDA 13.1 and Blackwell GPUs (e.g. RTX 5080); older architectures come later. Engineers can toggle the backend per kernel via an environment variable, with no prebuilt binaries. Early adopters face unsupported operations and slower tensor-of-pointer patterns, so production teams should benchmark before committing; the main gain is future architecture portability, not immediate wins.

Triton-to-TileIR preserves Triton's tile-level semantics and emits CUDA Tile IR (an MLIR IR) directly rather than lowering to thread-level PTX. It is a triton-lang incubator project, source-only, requiring CUDA 13.1+ and Blackwell GPUs; kernels cache as .tileIR files and backend selection is per-kernel. Tensor-of-pointer patterns underperform on CUDA 13.1; mitigations include falling back to SIMT, waiting for optimization passes, or using TMA load/store APIs.

NVIDIA Developer Blog →

Focus on Your Algorithm, NVIDIA CUDA Tile Handles the Hardware

NVIDIA's CUDA 13.1 adds a tile-based programming model that abstracts tensor cores, so GPU developers may no longer need low-level SIMT code to get performance.

NVIDIA has released CUDA 13.1 with a new feature called CUDA Tile, which it calls its biggest change since CUDA launched in 2006. GPUs are normally programmed by writing instructions for thousands of individual threads; CUDA Tile instead lets developers describe chunks of data, called tiles, and the compiler figures out how to run them on the hardware. This should make GPU code easier to write and portable across GPU generations, especially for AI workloads. Most developers would use it through a Python tool called cuTile Python.

NVIDIA launched CUDA Tile in CUDA 13.1, describing it as the largest CUDA advancement since 2006. It adds a higher-level, tile-based alternative to the existing SIMT programming model, targeting the growing complexity of tensor core hardware that powers AI workloads. The strategic play is ecosystem lock-in via NVIDIA's Python tooling (cuTile) and a new intermediate representation for compiler and library builders. No performance benchmarks, pricing, or adoption commitments from third-party frameworks are given.

CUDA 13.1 introduces CUDA Tile, a virtual instruction set for tile-based parallel programming. Its foundation is CUDA Tile IR, positioned as the tile analogue of PTX: developers partition data-parallel programs into tiles and tile blocks, and the compiler maps them onto threads, the memory hierarchy, tensor cores, and TMAs. Tile and SIMT paths coexist in the software stack. Access is via NVIDIA cuTile Python or directly through CUDA Tile IR for DSL/compiler authors; no benchmark numbers are provided.

NVIDIA Developer Blog →

CUTLASS: Principled Abstractions for Handling Multidimensional Data Through Tensors and Spatial Microkernels

CUDA developers writing custom high-performance GPU kernels can now access CUTLASS 3.x's abstractions directly from Python via CUTLASS 4.0, which is downloadable today.

NVIDIA has released version 4.0 of CUTLASS, a free toolkit for building fast code that runs on the company's graphics chips. Writing efficient graphics-chip code is hard because programmers must manually match hundreds of threads to pieces of data. This toolkit handles that mapping automatically using a math-like system, cutting down error-prone manual bookkeeping while keeping full speed. It mainly benefits machine-learning and scientific-computing engineers who need custom operations beyond standard libraries.

CUTLASS 4.0 is now available on GitHub, exposing the CUTLASS 3.x core library (CuTe) through a new Python interface. For teams training or serving large models, this shortens development of custom GPU operations that off-the-shelf libraries and compilers cannot express efficiently, potentially recovering the last few percent of GPU performance competitors may leave on the table. The main cost is learning the new abstraction; no pricing or adoption figures are given.

CUTLASS 3.x centres on CuTe, whose hierarchical Layout<Shape,Stride> type uniformly represents tensors of both threads and data, with a layout algebra for functional composition and partitioning, replacing hand-coded thread-to-data indexing. MMA atoms pair PTX instructions with thread-value layouts, and Tiled MMA/Tiled Copy layers scale atoms to thread blocks with one partitioning API. Compile-time static asserts enforce correctness, and Hopper WGMMA, TMA, and Blackwell UMMA features are supported. CUTLASS 4.0 adds a Python interface; temporal pipelining decisions remain at the CUTLASS level.

NVIDIA Developer Blog →

Advanced NVIDIA CUDA Kernel Optimization Techniques: Handwritten PTX

Very little changes for most developers: NVIDIA's own guidance is that hand-written PTX is a last resort, and the 7-14% gains shown apply only to a specific fused GEMM kernel on Hopper GPUs.

NVIDIA published a tutorial on PTX, which is the assembly language, the most low-level code, that runs on its GPUs. Using an example from its CUTLASS library that handles a common step in mixture-of-experts AI models, NVIDIA shows that writing PTX by hand instead of its usual C++ code speeds things up by 7-14% on a GH200 server GPU. The company stresses almost nobody should do this: the code is harder to write and debug, and may not work on other GPU models.

This is an advanced engineering tutorial, not a product launch, so there is nothing to buy or adopt. The message for decision-makers is that NVIDIA's optimised libraries (CUBLAS, CUTLASS) already contain hand-tuned GPU assembly where it pays off, and most teams gain nothing by going lower. The 7-14% throughput gain was measured only on the Hopper architecture (GH200), so hand-written low-level code risks not porting to future GPUs, an argument for building on NVIDIA's libraries rather than duplicating them.

NVIDIA benchmarks CUTLASS example 61 (fused GEMM with top_k=2 and softmax, the MoE routing pattern) on a GH200, toggling inline PTX in sm90_visitor_topk_softmax.hpp against CUDA C++ fallbacks. PTX versions of top_2/top_4 reduce and fast_masked_softmax deliver 7-14% higher GFlop/s across m=1,024 to 16,384 tokens (n=8, k=4096), with the PTX run reaching 5,704 GFlop/s at m=1024. Embedding options are inline PTX asm and the cuda::ptx namespace in libcu++; Hopper features require building with -DCUTLASS_NVCC_ARCHS=90a. Gains are kernel-specific and may not transfer across GPU architectures.

NVIDIA Developer Blog →

Compiler Explorer: An Essential Kernel Playground for CUDA Developers

CUDA developers can now write, compile, run, and share GPU code entirely in a browser with permanent shareable URLs, removing local toolkit installation from prototyping and debugging workflows.

Compiler Explorer, an open-source website also known as godbolt, lets people write computer programs and instantly see what the compiler does with them. A compiler is the software that translates human-readable code into instructions a machine executes. Since 2022, with NVIDIA's help, the site can also run CUDA code (NVIDIA's language for programming graphics processors) on real NVIDIA hardware directly from the browser. This means programmers and students can prototype, debug, and share working GPU examples without installing any software or owning a GPU.

NVIDIA is promoting Compiler Explorer (godbolt.org), a free open-source tool its engineers helped extend in 2022 to run CUDA code on remote GPUs. The tool handles over a million compilations weekly across 70+ languages, was the first recipient of the NVIDIA FOSS Fund, and requires no licence fees or installation. Developers gain fast sharing of reproducible examples; NVIDIA gains a healthier CUDA ecosystem. No costs, competitor comparison, or adoption risks are discussed.

Compiler Explorer (godbolt.org) supports writing, compiling, and executing CUDA C++ on remote NVIDIA GPUs, a capability added in 2022 through collaboration between NVIDIA and maintainer Patrick Quist. It exposes color-coded source-to-assembly mapping for inspecting PTX and SASS output, supports libraries like CCCL and MatX out of the box, and allows instant comparison of multiple nvcc compiler versions and flags such as -use_fast_math and --resource-usage. Permanent shareable URLs capture code, compiler settings, and outputs. No benchmark figures or latency numbers are given.

NVIDIA Developer Blog →

NVIDIA Blackwell and NVIDIA CUDA 12.9 Introduce Family-Specific Architecture Features

CUDA 12.9's new 'f' suffix lets Blackwell tensor-core code run across CC 10.x GPUs, but only developers writing PTX or using header libraries like CUTLASS must change builds.

NVIDIA's CUDA toolkit has long let programs written for older GPUs run on newer ones automatically. CUDA 12.9, tied to the Blackwell GPU generation, adds a new 'family-specific' compile option: code built this way runs on any GPU in the same family (like all 10.x models) rather than just one exact chip. It only matters to programmers using specialized instructions for the GPUs' math accelerator hardware.

Most CUDA developers need do nothing: existing builds keep working, and prebuilt binary libraries handle compatibility internally. The change affects teams writing PTX directly or shipping header libraries like CUTLASS, who must now add 'f'-suffix targets (e.g. compute_100f) and fallback code paths for older GPUs. The cost is build complexity; the benefit is tensor-core performance on Blackwell with guaranteed portability across future 10.x GPUs. No pricing or performance numbers are given.

CUDA compatibility works via PTX virtual ISA plus driver JIT compilation: cubins run on same-major, higher-minor compute capabilities; PTX runs forward. Hopper (CC 9.0) introduced architecture-specific features via the 'a' suffix (e.g. sm_90a) with no forward compatibility. CUDA 12.9/Blackwell adds family-specific 'f' suffix targets (e.g. sm_100f, currently CC 10.0 and 10.3) guaranteed across same-major, higher-minor GPUs. Guard code with __CUDA_ARCH_SPECIFIC__ or __CUDA_ARCH_FAMILY_SPECIFIC__; sm_100 and sm_100f are aliases.

NVIDIA Developer Blog →