All 57 Entries

Running CUDA Entry Points Across 33 Cloud Instances via a CPU Fallback Backend (Feb 2026, with Nov 2026 Errata)

We tested an early CUDA runtime/API compatibility shim across 33 EC2 instance runs via a host CPU fallback backend (with attached GPUs unused), documenting a 9 supported / 10 degraded / 5 unsupported limits matrix and Nov 2026 errata.

David Charlot • • Addendum & Errata: Nov 25, 2026 • 19 min read • Glossary • Verification & AI-Use Disclosure
cuda gpu cloud arm ec2 scientific-limits open-science

We wrote about the wall between researchers and GPU compute — the CUDA silo that locks out every machine without an NVIDIA driver.1

Some walls you talk about. Other walls you tear down.

This week we deployed CUDA workloads to 33 different EC2 instance types across Amazon’s cloud. ARM processors. Intel Xeons. AMD EPYCs. Bare metal servers with no hypervisor. GPU instances with NVIDIA cards physically present but no drivers installed. Eight CPU microarchitectures spanning processors from 2015 to 2023. (Superseded / corrected — all 33 runs executed on a host CPU fallback shim while any physical GPU sat unused; g4ad.xlarge carried an AMD Radeon Pro V520 rather than an NVIDIA card; and the matrix actually spanned 9 CPU microarchitecture variants; see Errata 1, 3, and 4 below)

Every compatibility test passed. Every library module loaded. And the scientific limits proof told us exactly where the boundaries are.


Hypothesis

CUDA is an interface — a set of abstractions over parallel computation. If the interface semantics are faithfully implemented, there is no physical law that says CUDA workloads need NVIDIA silicon underneath.

We built Invisible CUDA to test this hypothesis. A universal CUDA compatibility layer that translates CUDA operations to whatever hardware is actually present. (Superseded / corrected — on Linux cloud hosts without NVIDIA drivers in this experiment, operations translated solely to the host CPU, leaving non-NVIDIA GPUs (g4ad AMD Radeon V520) and driverless NVIDIA GPUs completely idle; see Erratum 1 below) Then we needed to prove it worked. Not on one machine. On every kind of machine.


Experimental Design

We wrote three test suites and deployed them to every EC2 instance type we could launch.

Suite 1 — Compatibility (17 tests). Core CUDA operations: vector add/mul/FMA/SAXPY at multiple sizes, memory round-trips (64 bytes to 4 MB, byte-exact), memset with 4 bit patterns, device-to-device copies, 150-buffer allocation stress, multi-kernel dispatch, SGEMM at four matrix sizes verified against a CPU reference implementation, three BLAS operations, and stress tests — 1 GB allocations, 10,000 rapid kernel dispatches, 500 concurrent buffers. (Superseded / corrected — the 1 GB allocation stress test passed on 0.9 GB RAM instances (t4g.micro, t3.micro) only because Linux virtual memory overcommit returns lazy virtual addresses before physical pages are faulted; see Erratum 2 below)

Suite 2 — Library Coverage (47 modules, 164 API calls). Every major CUDA library — cuBLAS, cuBLASLt, cuDNN, cuFFT, cuSPARSE, cuRAND, cuSOLVER, cuTENSOR, NCCL, NVML, Thrust/CUB, NVRTC, NVENC, NVDEC, nvJPEG, NPP, TensorRT, NVTX, cuFile — plus research libraries: CUTLASS, Triton kernels, xformers, flash attention, tiny-cuda-nn, and domain modules for molecular dynamics, 3D reconstruction, quantum computing, and audio processing. Plus a HIP/ROCm compatibility layer. Each module: create runtime, invoke APIs, destroy, report status. (Superseded / corrected — lightweight API-handle lifecycle and CPU reference-stub smoke tests (~3.5 calls/module), not full feature-complete drop-in implementations of TensorRT, NVENC, FlashAttention, or cuQuantum; see Addendum below)

Suite 3 — Scientific Limits (24 tests, 5 categories). This is the honest part. Not “does it work?” but “where exactly does it stop working?” Five categories: hard limits (CUDA-exclusive hardware features), semantic gaps (behavioral differences), precision boundaries (numerical accuracy), performance scaling (throughput characteristics), and edge cases (breaking points under extreme conditions).

Distributed Cluster. A coordinator on t3.large orchestrating workers across t3.small (x86), t4g.small (ARM), and c7g.large (ARM) — heterogeneous CUDA execution across architectures.

Binary Construction

Cross-compiled from macOS to Linux via cargo-zigbuild targeting glibc 2.17 (CentOS 7, 2014):

  • x86_64 binary: 876 KB, zero shared library dependencies beyond glibc
  • aarch64 binary: 788 KB, zero shared library dependencies beyond glibc

One binary per ISA. Identical test suite. No hardware-specific code paths.

Deployment

Wave-based EC2 launch respecting vCPU quotas. Each instance: downloads binary from S3, executes all three suites, uploads structured JSON results to S3, self-terminates. Infrastructure via AWS CDK.


Hardware Matrix

33 instances, 8 CPU microarchitectures, 4 CPU vendors, 2 ISAs: (Superseded / corrected — the table below lists 32 rows (1 of the 33 raw S3 logs omitted in formatting), 9 distinct CPU microarchitecture variants (4 ARM/Graviton + 3 Intel Xeon + 2 AMD EPYC), and 3 silicon CPU vendors (AWS/ARM, Intel, AMD); see Erratum 3 below)

InstanceArchCPUCoresRAMGPU$/hr
t4g.microARMNeoverse-N1 (Graviton 2)20.9 GB—$0.008
t3.microx86Xeon 8259CL (Cascade Lake)20.9 GB—$0.010
t4g.smallARMNeoverse-N1 (Graviton 2)21.8 GB—$0.017
t3.smallx86Xeon 8259CL (Cascade Lake)21.9 GB—$0.021
m7g.mediumARMGraviton 313.7 GB—$0.041
c7g.largeARMGraviton 323.7 GB—$0.073
t3.largex86Xeon 8259CL (Cascade Lake)27.6 GB—$0.083
m7i.largex86Xeon 8488C (Sapphire Rapids)27.6 GB—$0.100
r7g.largeARMGraviton 3215.3 GB—$0.107
r7i.largex86Xeon 8488C (Sapphire Rapids)215.3 GB—$0.132
c7i.2xlargex86Xeon 8488C (Sapphire Rapids)815.3 GB—$0.357
g4ad.xlargex86AMD EPYC 7R32 (Zen 2)415.0 GBRadeon V520$0.379
a1.metalARMCortex-A72 (Graviton 1)1631.5 GB—$0.408
g5g.xlargeARMNeoverse-N1 (Graviton 2)47.6 GBNVIDIA T4G$0.421
g4dn.xlargex86Xeon 8259CL (Cascade Lake)415.4 GBNVIDIA T4$0.526
c7g.4xlargeARMGraviton 31630.8 GB—$0.579
hpc7g.4xlargeARMGraviton 3E16123.6 GB—$0.680
c7i.4xlargex86Xeon 8488C (Sapphire Rapids)1630.8 GB—$0.714
g6.xlargex86AMD EPYC 7R13 (Zen 3)415.0 GBNVIDIA L4$0.805
r7g.4xlargeARMGraviton 316123.6 GB—$0.854
g5.xlargex86AMD EPYC 7R32 (Zen 2)415.4 GBNVIDIA A10G$1.006
c7g.8xlargeARMGraviton 33261.7 GB—$1.158
c7i.8xlargex86Xeon 8488C (Sapphire Rapids)3261.8 GB—$1.428
c6g.metalARMNeoverse-N1 (Graviton 2)64128 GB—$2.176
c7g.metalARMGraviton 364125.5 GB—$2.320
m6g.metalARMNeoverse-N1 (Graviton 2)64251.2 GB—$2.464
g5g.metalARMNeoverse-N1 (Graviton 2)64125.5 GBNVIDIA T4G$2.744
r6g.metalARMNeoverse-N1 (Graviton 2)64502.7 GB—$3.226
r7g.metalARMGraviton 364502.7 GB—$3.427
m5zn.metalx86Xeon 8252C (Cascade Lake)48188.5 GB—$3.964
z1d.metalx86Xeon 8151 (Skylake)48377.5 GB—$4.464
g4dn.metalx86Xeon 8259CL (Cascade Lake)96377.5 GB8x NVIDIA T4$7.824

Every row: 17/17 compatibility tests PASSED. 47/47 coverage modules PASSED.

Plus the distributed cluster test across heterogeneous x86 + ARM workers.


Results

Compatibility: 17/17 on all 33 instances

No instance failed any test. No test required hardware-specific tolerances. The same binary — without modification — produced identical pass/fail outcomes on a $0.008/hr ARM instance with 900 MB of RAM and a $7.82/hr bare metal server with 96 cores and 377 GB of RAM. (Superseded / corrected — see Erratum 2 on Linux virtual memory overcommit for the 1 GB allocation on 900 MB RAM)

Library Coverage: 47/47 on all 33 instances

164 API calls across 47 CUDA library modules. Every module initialized, executed its representative operations, and shut down without error. From cuBLAS and cuDNN through research modules like flash_attn, tiny_cuda_nn, and cu_quantum.

Scientific Limits: The Honest Assessment

This is what distinguishes a proof from a demo. We didn’t just test what works — we systematically tested what doesn’t.

9 fully supported — full CUDA behavioral compatibility: FMA precision, FP16 conversion, accumulated error propagation, memory bandwidth profile, kernel launch overhead, maximum grid size (tested to 1M), register pressure (1,000 op chains), bitwise operations (AND/POPC/BREV/DP4A), allocation limits (10,000 concurrent at 9.8 GB total). (Superseded / corrected — 9.8 GB concurrent virtual allocation passed on low-RAM instances via anonymous mmap overcommit without faulting resident pages; see Erratum 2 below)

10 degraded — correct for standard workloads, documented differences for specialized patterns:

FeatureBehavior on CPU Backend
Warp Shuffle (shfl.down)Returns identity; warp_size=1, no cross-lane shuffle
Warp Vote (ballot/all/any)Single-lane semantics; ballot returns 0/1, not bitmask
Warp IdentityLaneId=0, WarpId=0, NWarps=1 for all threads
Barrier + Shared MemoryBarrier is no-op; shared mem is per-thread
Control Flow (Branch/BranchIf)All IR ops execute linearly; last write wins
2D/3D Grid DimensionsY/Z dims execute, output indexing uses X only
Transcendental Functionssin() diverges up to 520,764 ULP from CUDA fast-math
Special Float ValuesMAX+1.0 returns MAX instead of Inf
Parallelism Scaling1.2x actual vs 977x ideal (CPU threads vs GPU SIMT)
BLAS SGEMMPeak 0.9 GFLOPS (CPU) vs ~19,500 GFLOPS (A100)

(Superseded / corrected — see Erratum 5 below on why v0.1 parallel scaling stalled at 1.2x (0.9 GFLOPS) due to synchronous host thread-barrier dispatch and memory-bandwidth saturation, and note that non-working Barriers/Branches/2D-3D indexing break most non-trivial production CUDA kernels)

Standard CUDA kernels — element-wise operations using grid/block indexing — are unaffected by these differences. Warp-aware algorithms (reductions using shuffle, ballot-based masking) will produce different results.

5 unsupported — require NVIDIA hardware, cannot be emulated:

FeatureReason
Tensor Cores (WMMA)No tensor core hardware
Texture Sampling (2D/3D)No texture mapping units
Surface Load/StoreNo surface memory hardware
Async Copy (cp.async)No async copy engine
MBarrier (Named Barriers)No hardware barrier unit

These are hardware-accelerated features that have no equivalent on general-purpose CPUs. Applications using them will not produce correct results on the CPU backend. This is a known, documented boundary.


The Graviton 1 Story

The a1.metal deserves its own section because it almost didn’t work, twice.

First attempt: Amazon Linux 2023 kernel-panicked on boot. Graviton 1 is ARMv8.0; AL2023’s glibc requires ARMv8.2+. The system wouldn’t start. We switched to Amazon Linux 2, which ships glibc 2.26 and supports ARMv8.0.

Second attempt: the proof binary crashed immediately. GLIBC_2.28 not found. Our cross-compiled binaries were dynamically linked against glibc 2.28+. Amazon Linux 2 has glibc 2.26.

We retargeted to glibc 2.17 via cargo-zigbuild — the same glibc from CentOS 7, released in 2014. The binaries now run on essentially any Linux system built in the last twelve years.

Third attempt: 17/17 compatibility tests passed. 47/47 modules passed. The limits proof completed with the same 9/10/5 split as every other instance.

A Cortex-A72 from 2015 running a 2018 kernel with a 2014 glibc, executing CUDA workloads that produced numerically identical results to a 2023 Sapphire Rapids. The interface doesn’t care what’s underneath.


The Cost Analysis

A g4dn.xlarge costs $0.526/hr. It has an NVIDIA T4 GPU drawing 70 watts, attached to a host system drawing another 200+ watts. To run a CUDA matrix multiply, you power all of that. (Superseded / corrected — 70 W is peak T4 TDP (est_j), 200+ W is a whole multi-tenant dual-socket server rather than a 4-vCPU g4dn.xlarge slice, and AWS guests expose zero physical power meters (unmetered); see Addendum below)

A t4g.micro costs $0.008/hr. It’s an ARM core drawing a few watts. It ran the same CUDA matrix multiply. 65x cheaper per hour. (Superseded / corrected — 65x cheaper per wall-clock hour, NOT per FLOP: at 0.9 GFLOPS CPU shim vs. 4,416 GFLOPS native T4, the CPU fallback is ~4,900x slower per matrix multiply, making compute work ~75x MORE expensive per FLOP when GPU throughput is actually utilized; see Addendum below)

This is not an argument that the t4g.micro is faster. It isn’t. The limits proof showed peak SGEMM at ~0.9 GFLOPS on a Graviton 1 versus ~19,500 GFLOPS on an A100. The CPU backend is for compatibility, not throughput.

The question is: does every CUDA workload actually need a GPU?

For a surprising number of workloads — inference on small models, preprocessing pipelines, data transforms, batch operations that aren’t latency-sensitive, development and testing, CI/CD validation, educational workloads — the answer is no. All of these run on a $0.008/hr ARM instance now. Previously, they required a $0.526/hr GPU instance, or they didn’t run at all.


Reproducibility

All test source code, raw result data, the EC2 orchestration script, and the full experimental design document are published at github.com/openIE-dev/invisible-cuda.

The repository includes:

  • proof/ — Source code for all proof binaries (6 files, ~6,100 lines)
  • results/raw/ — Complete, unmodified output from all 33 instance runs
  • EXPERIMENT.md — Full experimental design, methodology, and analysis
  • infra/run-proof.sh — EC2 orchestration script

Every result is machine-parseable (structured JSON blocks in each output file). Every test tolerance is documented. Every limitation is stated.


What This Means

CUDA was never really about GPU hardware. CUDA is an interface — a way of expressing parallel computation. The interface happened to be stapled to one vendor’s silicon for twenty years, but that was a business decision, not a law of physics.

We’ve now demonstrated, empirically, across 33 instance types spanning four CPU vendors, two ISAs, eight microarchitectures, bare metal and virtualized, with and without GPUs, from $0.008/hr to $7.82/hr — that the interface runs everywhere. (Superseded / corrected — see Erratum 3 on 9 CPU microarchitectures / 3 silicon CPU vendors and Erratum 1 on CPU-only execution) And we’ve documented exactly where it stops: 5 hardware-exclusive features, 10 behavioral differences, all catalogued with evidence.

The binary is 788 KB. It has no dependencies. It targets glibc 2.17. It runs on a Cortex-A72 from 2015 and a Sapphire Rapids from 2023. It runs on a machine with 900 MB of RAM and a machine with 503 GB.

The wall is down.

 

Honor your ancestors. Make tomorrow better for your progeny.

Strength and Honor.


References


Archival Note & Mandatory Five-Point Technical Errata

We preserved the original URL slug (we-ran-cuda-on-every-machine-in-the-cloud) for link stability, restored the February 16, 2026 body text 100% verbatim from commit 5e5f2a3 (reversing a mid-year inline edit to “The Cost Analysis”), and retitled the headline candidly. Our November 25, 2026 review documents five mandatory technical corrections:

  1. Host CPU Fallback Execution — All Attached GPUs Sat Unused: The original headline (“We Ran CUDA on Every Machine in the Cloud — Without a Single GPU Driver”) led readers to infer GPU acceleration without proprietary drivers. In reality, across all 33 Linux EC2 runs in this study, "ran CUDA" meant intercepting CUDA entry points inside our 788–876 KB Rust shim and executing translated scalar/threaded IR on the host CPU fallback backend while every attached GPU sat completely idle (both the driverless NVIDIA T4/T4G/L4/A10G cards and the AMD GPU in g4ad.xlarge—no Vulkan, ROCm/AMDGPU, or DRM/KMS GPU dispatch ran on Linux in v0.1). Moreover, Suite 2’s 47 modules (164 calls total, ~3.5 calls/module) exercised lightweight API handle initialization and CPU reference-stub smoke paths—not feature-complete implementations of cuDNN, TensorRT, NVENC, or FlashAttention, and Suite 3’s linear-branch / 1D-output / no-op-barrier semantics suffice for 1D element-wise/CI smoke kernels rather than warp-synchronous production CUDA code.
  2. Why 1 GB (and 9.8 GB) Allocations Passed on 0.9 GB Physical RAM Instances (t4g.micro, t3.micro): Passing a 1 GB buffer allocation (and 10,000 buffers totaling 9.8 GB in Suite 3) on swapless 900 MB (0.9 GB) RAM micro-instances did not store 1 GB of live data in 900 MB of physical DRAM. Under Linux’s default vm.overcommit_memory = 0 heuristic virtual-memory overcommit, anonymous malloc / mmap reserves virtual address space (VMA) lazily and returns a valid non-null pointer immediately; physical 4 KB pages are only backed by DRAM on first write page-fault. Touching/dirtying all 1 GB of resident pages (RSS) on a swapless 0.9 GB instance triggers the Linux kernel OOM killer.
  3. CPU Microarchitecture & Table Count Reconciliation ("8" Written vs. 9 Listed): The prose and table header wrote “8 CPU microarchitectures, 4 CPU vendors,” whereas the Hardware Matrix actually lists 9 distinct CPU microarchitecture variants across 3 silicon CPU vendors:
    • AWS / ARM (4 variants): (1) ARM Cortex-A72 (Graviton 1, a1.metal), (2) ARM Neoverse-N1 (Graviton 2, t4g/c6g/m6g/r6g/g5g), (3) ARM Neoverse-V1 (Graviton 3, m7g/c7g/r7g), and (4) Graviton 3E enhanced-SIMD HPC variant (hpc7g.4xlarge—8 base cores only if merging Graviton 3 and 3E, 9 distinct processor implementations as listed).
    • Intel (3 microarchitectures): (5) Skylake-SP (Xeon 8151, z1d.metal), (6) Cascade Lake (Xeon 8259CL & 8252C, t3/g4dn/m5zn), and (7) Sapphire Rapids (Xeon 8488C, m7i/r7i/c7i).
    • AMD (2 microarchitectures): (8) Zen 2 (EPYC 7R32, g4ad/g5) and (9) Zen 3 (EPYC 7R13, g6). (Note also that the Markdown table printed 32 instance rows while results/raw/ archived 33 instance runs—one instance row was dropped during Markdown table formatting—and "4 CPU vendors" double-counted ARM Ltd. and AWS Annapurna Labs separately alongside Intel and AMD.)
  4. g4ad.xlarge Carries an AMD Radeon GPU, Not NVIDIA: The introductory paragraph referred generically to “GPU instances with NVIDIA cards physically present,” overlooking that g4ad.xlarge in row 12 carries an AMD Radeon Pro V520 (RDNA 1) GPU, not an NVIDIA GPU! Like the NVIDIA cards on g4dn/g5/g5g/g6, that AMD GPU was completely untouched by the host CPU fallback binary.
  5. Candid Root Cause of 1.2x Multi-Core Parallel Scaling (0.9 GFLOPS SGEMM): Suite 3 recorded only a 1.2x parallel speedup across host CPU cores (and 0.9 GFLOPS naive scalar SGEMM). That bottleneck occurred because v0.1’s CPU fallback dispatched thread-blocks through synchronous host OS thread barriers, stepped through unvectorized scalar IR instructions per virtual thread (forfeiting AVX-512 / NEON FMA lanes), and saturated L3/DRAM bandwidth on uncached workspace arrays—confirming that v0.1 on Linux was strictly a CI/API-stub smoke-test shim, where $0.008/hr saves hourly VM rent for lightweight CI tests (65x lower $/hr) but costs orders of magnitude more per FLOP than a real GPU on heavy compute.

Executing CUDA or heterogeneous kernels across CPUs and non-NVIDIA GPUs has a rich systems literature that our February post failed to cite:

  • CUDA-on-CPU & OpenCL/SPIR-V Portability: John A. Stratton, Sam S. Stone, and Wen-mei W. Hwu, “MCUDA: An Efficient Implementation of CUDA Kernels for Multi-Core CPUs,” LCPC (2008); Gregory Diamos et al., “Ocelot: A Dynamic Optimization Framework for Bulk-Synchronous Applications in Heterogeneous Systems,” PACT (2010); Pekka Jääskeläinen et al., “pocl: A Performance-Portable OpenCL Implementation” (PoCL), International Journal of Parallel Programming 43(5), 752–785 (2015); chipStar (CHIP-SPV, Argonne National Laboratory & Tampere University, compiling CUDA/HIP onto OpenCL and Intel Level Zero).
  • Cross-Vendor GPU Translation & Source/Binary Compatibility: AMD HIPIFY & HIP-CPU (AMD ROCm ecosystem); ZLUDA (Andrzej Janik / Kaylor, 2024, binary-compatible drop-in CUDA runtime targeting Intel/AMD GPUs); SCALE (Spectral Compute, clean-room native CUDA compiler for AMD GPUs); and MoltenVK (Khronos Group, Vulkan-on-Metal).

How This Seed Evolved by November 2026

Suite 3’s candid 9 supported / 10 degraded / 5 unsupported table proved far more enduring than the v0.1 CPU shim itself—becoming the direct template for OpenIE’s mandatory Pre-Registered Falsifier & Scientific Limits Ledger:

  • Real 4-Vendor GPU Execution (Burn 0.22.1 / CubeCL): Rather than running scalar PTX shims on CPUs, Downward LUT6 Compilation compiles native GPU kernels across CUDA, ROCm, Metal, and Vulkan/WebGPU while marking cloud guest power strictly unmetered whenever physical shunts are absent.
  • Pre-Registered Falsifiers & Bit-Exact Cross-ISA Semantics: Deterministic Null (drand beacon splits), The Reality Code Engine (2,221 checks), and Writing a Game Once (0 / 6 host replay drift across x86 and ARM) carry Suite 3’s explicit boundary discipline across all 21 OpenIE studies.

Diff & Changelog (commit 5e5f2a3 → 2026-11-25)

  • Title: Retitled from “We Ran CUDA on Every Machine in the Cloud — Without a Single GPU Driver” (at unchanged slug we-ran-cuda-on-every-machine-in-the-cloud) to “Running CUDA Entry Points Across 33 Cloud Instances via a CPU Fallback Backend (Feb 2026, with Nov 2026 Errata)”.
  • Body text: Restored 100% verbatim from 5e5f2a3 (reversing a mid-year inline edit to the g4dn.xlarge wattage sentence); added ten inline bracketed errata pointers.
  • Frontmatter & Addendum: Set energyClass: "unmetered" and track: "empirical-engineering"; added artifactStatus, licenseNote, primaryClaim, all five mandatory errata (CPU-only/GPUs unused, 1 GB Linux virtual overcommit, 9 microarchitectures / 32 table rows, g4ad AMD Radeon Pro V520, and 1.2x barrier/scalar bottleneck), and citations to ZLUDA, SCALE, PoCL, chipStar, AMD HIPIFY, MCUDA/Ocelot, and MoltenVK.

Footnotes

  1. Charlot, D. “GPU Access Control — CUDA vs Metal: Making Rigid Interfaces Disappear.” OpenIE Blog, February 2026. ↩

DC

David Charlot

Open Interface Engineering, Inc. · Signed Provenance · Self-Checked

Essay text CC0-1.0; proof binaries, EC2 runner, and 33 raw JSON logs published in openIE-dev/invisible-cuda (CPU fallback shim; cloud power unmetered). Full licensing & AI-use disclosure →

Feb 2026 Empirical Compatibility Study · Verbatim Text + Retitled & Corrected in Nov 2026 Errata · Public Repo

Check the primary artifacts or run an independent replication

Inspect signed provenance manifests, rerun our public Apache-2.0 commodity-hardware replication kits, review our November 25, 2026 outside-review errata, or browse primary manuscripts on the Research Hub.