Independent compatibility research, Linux, PyTorch

Newer CUDA.Older GPUs.

Selected CUDA 13 PyTorch operations running on Maxwell cards NVIDIA stopped compiling for. The real device identity is never touched.

An independent project, not NVIDIA’s CUDA Compatibility package for forward-compatible drivers.

GM200 reference card, compute capability 5.2. The only hardware tested so far. Experimental, process-local, workload-specific.

Reference cards
3
Native operators
46
Claims of universal support
0

Get it running

One command on Linux x86_64 with visible sm_52 GPUs. It finds the Python environment that holds the CUDA 13 PyTorch wheel, installs the pinned release after checking its SHA-256, and runs setup. It never uses sudo. Run it again to upgrade.

1 · installcurl -fsSL https://cudacompat.com/install.sh | sh
2 · runcuda-legacy run app.py
3 · see what rancuda-legacy ops
GPU
GM200 Maxwell, 3 cards
PyTorch
2.14.0, CUDA 13.0 wheel
Driver
NVIDIA 580.178.04
Compiler
LLVM/Clang 23.1.4
Host
Linux x86_64, Python 3.10.12, CUDA 12.4 headers

What works today

Sheet 01 / 10

Hardware and profile diagnostics are in place. The CUDA 13 launch path is experimental: a handful of native Maxwell kernels plus bounded CPU fallbacks, each with explicit limits. Every figure below was measured on the configuration above.

Reproduced, testedListed cases onlyContradicted, keptUnverified or unknownEvery mark names its record
Available

GPU inventory and profile checks

Inspect visible NVIDIA devices and compiler tools, review bundled compatibility profiles, and compare a machine’s reported hardware against a target’s published requirements. Unknown facts stay unknown; a profile match is not a workload certification.

Commands: inspect, profiles, audit, doctor

Command line
Experimental

CUDA 13 process launcher

Launch a Python application in a child process with a process-local CUDA Runtime version facade and a PyTorch adapter. The runtime query reports CUDA 13.0; the GPU name and compute capability stay intact. Nothing on the system is changed.

Exercised with PyTorch 2.14 and the official CUDA 13 wheel.

Child process
Experimental

Native Maxwell operator kernels

Selected PyTorch operations use LLVM-generated PTX compiled for the real sm_52 device and launched through the CUDA Driver API: add, arange, embedding, layer norm, matmul, and ReLU. Float16 add, strided matmul, and seven SGD steps of a 2×2 linear → ReLU → sum model are verified on GPUs 1 and 2.

GPU, sm_52
Experimental

CPU fallback and everyday training

Selected CPU fallbacks keep first-order gradients. Small MLPs with SGD, Adam or AdamW and a BatchNorm CNN train with parameters matching the CPU, and tensors created with device="cuda" and simple in-place updates work. Each fallback is limited to 64 MiB of inputs and 64 MiB of outputs. Transformer and LayerNorm training is not supported yet.

Training evidence
2×2 linear, 7 SGD steps, GPUs 1 and 2
Median step latency
2.360 ms on GPU 2, 7.296 ms on GPU 1
Peak allocated memory
67,180,032 bytes
Broader training
Not verified
Bounded autograd
Contradicted

Stock kernels on the official wheel

Without the adapter, stock float32 mm fails in cuBLAS with CUBLAS_STATUS_ARCH_MISMATCH and stock ReLU reports no kernel image for sm_52. Both observations are kept as negative results and reopen only if a future wheel passes the same probes.

Why the adapter exists

Operator support

Sheet 01 / 10

Runs on the GPU

Native sm_52 kernel
16 registered cases, 23 native operators
  • Tensor additionContiguous float32 (up to 1,048,576 values) and int32 tensors (up to 2,147,483,647); same shape and device, alpha=1.
  • Float16 additionSame-shape contiguous float16 tensors, alpha=1, up to 1,048,576 values; edge values checked exactly.
  • Float32 in-place additionSame-shape contiguous float32 tensors, up to 1,048,576 values; supports the scaled updates used by the tested SGD step.
  • Range creationCUDA int64 arange, up to 1,048,576 values.
  • EmbeddingInference with float32 weights and int64 indices; 1D or 2D indices, up to 1,048,576 output values.
  • Layer normalizationInference on contiguous float32 input over the last dimension with float32 weight and bias; up to 1,048,576 values.
  • Matrix multiplication2D float32 of any size with nonnegative strides, transposed views included, on a tiled kernel; used in training too.
  • Matrix multiplication with biasAs above, with alpha and a broadcast bias; linear layers run through it.
  • Batched matrix multiplication3D float32 batches of any size; attention runs through it.
  • ReLUContiguous float32 tensors, up to 1,048,576 values.
  • Elementwise arithmeticAdd, subtract, multiply and divide in float32 with broadcasting, any size.
  • GELU, softmax and log-softmaxfloat32, with their gradients; masked attention included.
  • Layer normalization in trainingForward and backward, with or without weight and bias.
  • Sum and fillSums over any dimensions; fill_ and zero_.

Native forward kernels are not differentiable. Grad-enabled calls on these operations use differentiable CPU transfers instead.

Runs through CPU fallback

Bounded autograd
Operation / CPU implementation
  • Attentionscaled_dot_product_attention (training runs on native kernels)
  • Reductionsclamp_min
  • Layoutconcatenate, contiguous

These use PyTorch’s CPU implementation with differentiable host and device transfers on selected first-order gradient paths. The dispatcher can also retry eligible out-of-place operations after recognized missing-image, architecture-mismatch, or cuDNN no-engine errors.

Fallback requires one CUDA device. Training evidence covers small MLPs (SGD, momentum SGD, Adam, AdamW) and a Conv2d/BatchNorm2d CNN; Transformer and LayerNorm training, AMP and higher-order gradients are unverified.

Scope

The launcher is a workload adapter for a narrow PyTorch subset, not a universal CUDA 13 runtime. It requires Linux x86_64 and homogeneous visible sm_52 GPUs. It interposes one runtime-version query and does not replace the CUDA 13 API surface or implement general cuDNN, cuBLAS, NCCL, or Triton compatibility. Other devices, operations, optimizers, dtypes, layouts, and library paths need their own implementations and evidence.

To check it yourself, run the public example: one small network pinned to a release, machine and expected output, showing which route each operation takes and two cases that fail. Then send a reproduction report, pass or fail.

Compat­ibility is a stack

Sheet 01 / 10

A version number can be adapted at one boundary. Useful results require every layer beneath it to have a real implementation. The path a supported operation takes today:

Compatibility path, one supported operation
ApplicationPyTorch 2.14, official CUDA 13 wheel
Selected operations
InterpositionCUDA Compatibility opt-in launcher, CUDA Runtime 13.0 version facade
Route by operator
Maxwell kernelLLVM to PTX, launched on the real sm_52 device
CPU fallbackInference, bounded to 64 MiB in and out
Result returned
Real device stays visibleGM200 Maxwell, compute capability 5.2. No hardware identity spoofing.
Layers and their state

Application contract

PyTorch 2.14, CUDA 13 wheel

The published PyTorch CUDA 13 profile starts at compute capability 7.5. The adapter’s experimental gate is sm_52; missing kernels and library paths still need real solutions.

Target

Process interposition

Opt-in Python launcher

Prepare a child process with a CUDA Runtime 13.0 version facade and a PyTorch operator adapter. The host driver, system CUDA install, and parent process are not touched.

Built

Kernel and fallback routing

Operator registry, LLVM to PTX, CPU

Supported operations run on Maxwell kernels. A narrow set falls back to CPU within explicit size and semantic limits. There is no general binary translator.

Partial

Runtime, libraries, hardware

Driver, cuDNN, cuBLAS, device ISA

Every API, library path, dtype, synchronization rule, and instruction must be supported, translated, or replaced. Spoofing a version string fixes none of it.

Open work

Why this project exists

NVIDIA’s CUDA 13 release notes say offline compilation and library support for Maxwell, Pascal, and Volta were removed from the toolkit. This project measures how much useful application behavior can be recovered with a compiler path, adapters, and faithful fallbacks, without hiding the real device.

CUDA 13 release notes

Cards to test next

Sheet 01 / 10

These models share NVIDIA-listed sm_52 capability with the reference GM200 cards. The reference cards are the only hardware tested so far. An architecture match is not a certification: each board, driver, memory configuration, and workload still needs a run.

Candidate models, same NVIDIA-listed compute capability as the reference target
ItemGPU familyNVIDIA-listed compute capabilityProject status
D1GeForce GTX 980 Ti, 980, 970, 960, 9505.2Unverified candidate
D2GeForce GTX 980M, 970M, 965M, 910M5.2Unverified candidate
D3GM200 Maxwell reference GPU
Three physical cards; not every workload tested on each
5.2Reference device
D4Tesla M40, M605.2Unverified candidate
D5Quadro M6000 (including 24GB), M5000, M4000, M20005.2Unverified candidate
D6Quadro M5500M, M2200, M6205.2Unverified candidate

Only models NVIDIA maps to compute capability 5.2 are listed. Other Maxwell variants (5.0, 5.3), Pascal, and newer families are outside the launcher’s exact-sm_52 gate. Browse the full legacy GPU catalog for every compute-capability tier.

NVIDIA legacy GPU capability list

Try the prototype

Sheet 01 / 10

One command installs into the Python environment that already holds the official CUDA 13 PyTorch wheel. It installs no NVIDIA components and changes nothing system-wide.

The installer finds that environment itself, or takes --python, and refuses to use sudo or the system Python. cuda-legacy lands in that environment’s bin/. To remove everything, run it again with sh -s -- --uninstall.

Trusted scripts only

The launcher uses LD_PRELOAD and Python startup customization. Start with the probes in the repository and compare every result with a CPU reference.

1

Install and set up

curl -fsSL https://cudacompat.com/install.sh | sh

Installs into the environment that holds PyTorch (with none, it offers to create one with the qualified wheel), checks the release’s SHA-256, then runs cuda-legacy setup, which finds or downloads LLVM 23.1.4 and runs doctor. No sudo. Read the script.

2

Launch one trusted script

cuda-legacy run app.py

From that environment, or with the full path the installer prints.

By hand instead: python -m pip install . from a checkout, then cuda-legacy setup. Getting started has both paths.

Other versions and cards may work but have not been validated.

PyTorch installation guide

What full support would mean

Sheet 01 / 10

The destination is machine-wide practical compatibility. Each layer earns its support claim through tested behavior, not by assertion.

ItemDescriptionState
F1Truthful discoveryReport actual GPU identity and compute capability; diagnose host prerequisites and target profiles.In place
F2Grow the operator setImplement or adapt common PyTorch operations with stream, dtype, shape, and error behavior tested.In progress
F3Broaden libraries and trainingA small float32 SGD and autograd path is verified; broaden optimizer, gradient, and proprietary-library coverage.Partial
F4Qualify cards and workloadsRun representative models and edge cases on each claimed GPU; publish limits, speed, and memory costs.Not verified

A version facade cannot supply a missing kernel.