Solo developer wires ZLUDA to AMD’s HIP, getting multiple CUDA libraries running on a Radeon RX 9060 XT in Windows — CUDA-exclusive workloads on AMD hardware in Windows is possible without virtualization or dual-booting


With the latest ROCm updates, AMD finally brought robust, official PyTorch and HIP SDK support to Windows for consumer GPUs, fully supporting the Radeon RX 7000 and the RX 9000 series. For native, supported frameworks, AMD on Windows is finally a viable reality, but what happens when you want to run a proprietary application, an older repository, or a specialized AI tool that absolutely refuses to support anything but NVIDIA’s CUDA? That’s where a new project, Speedstu’s “CUDA-for-AMD-Windows,” could save the day. It proves that running rigidly CUDA-exclusive workloads on AMD hardware in Windows is possible without virtualization or dual-booting.

To be clear, this project is not a brand-new runtime. Instead, it is a highly automated and reproducible PowerShell setup that bridges the gap between ZLUDA, the well-known, formerly AMD-funded translation layer, and AMD’s native HIP/ROCm SDK for Windows. Through a series of clever scripts, the toolkit automatically detects the user’s GPU architecture, grabs a specifically pinned version of ZLUDA (v6-preview.69), and, at least in theory, seamlessly maps it to the ROCm math libraries already present in Windows.

A screenshot of the CUDA for AMD Windows GitHub documentation.

Several important CUDA libraries link up, but the important cuDNN doesn’t work yet. (Image credit: Speedstu/GitHub)

The result is that the developer successfully intercepted and mapped the CUDA driver API as well as the cuBLAS, cuSPARSE, and cuFFT libraries directly over to their AMD equivalents. As a proof-of-concept, the author even trained a 2.2-million-parameter PPO reinforcement-learning network end-to-end using unmodified CUDA libraries on an AMD Radeon RX 9060 XT, which happens to be the only officially supported GPU at this time.

Latest Videos FromTom’s Hardware



Source link

About Author /

Start typing and press Enter to search

×

Login

Enable Notifications OK No thanks