Speedstu/CUDA-for-AMD-Windows

Run CUDA-targeted Windows applications on AMD GPUs with ZLUDA + ROCm/HIP.

What it solves

This project enables users to run CUDA-targeted applications on Windows systems equipped with AMD Radeon GPUs. It bridges the gap between NVIDIA's proprietary CUDA ecosystem and AMD's hardware by leveraging ZLUDA and the AMD ROCm/HIP stack, allowing developers and researchers to execute AI workloads on AMD hardware without needing an NVIDIA GPU.

How it works

It provides a reproducible software stack that translates CUDA API calls into AMD's HIP (Heterogeneous-compute Interface for Portability) language. The project includes automated scripts for installation, environment verification, and runtime diagnostics. It emphasizes a "fail-closed" approach, where the system is designed to report errors rather than silently producing incorrect numerical results, ensuring that users can distinguish between successful GPU execution and CPU fallbacks or crashes.

Who it’s for

This is for developers, researchers, and power users who want to run CUDA-based AI software (such as PyTorch or llama.cpp) on AMD hardware. It is particularly useful for those who need to validate whether their specific workloads can run correctly on AMD GPUs and who require a structured, evidence-based approach to compatibility testing.

Highlights

  • Provides a validated, reproducible stack for running CUDA applications on AMD Radeon GPUs.
  • Includes rigorous numerical validation tools to ensure GPU computations are accurate.
  • Supports major AI frameworks and tools like PyTorch, LibTorch, and llama.cpp.
  • Implements a strict "fail-closed" policy to prevent silent data corruption.
  • Offers experimental paths for advanced features like cuDNN-to-MIOpen bridging and CUDA Graph support.

Related

  • Project
  • Project
  • Project
  • Project