CUDA for AMD on Windows
Recorded: Sept. 13, 2026, 4:09 p.m.
| Original | Summarized |
GitHub - Speedstu/CUDA-for-AMD-Windows: Run CUDA-targeted Windows applications on AMD GPUs with ZLUDA + ROCm/HIP. · GitHub Skip to content Navigation MenuSign inAppearance settingsPlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesCode QualityEnforce quality at mergeAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricingSearch/Sign inSign upAppearance settings You signed in with another tab or window. Reload to refresh your session. Dismiss alert Speedstu CUDA-for-AMD-Windows Public
Notifications
Fork
Star Code Issues Pull requests Actions Projects Security and quality Insights
Additional navigation options
Code Issues Pull requests Actions Projects Security and quality Insights
mainBranchesTagsGo to fileCodeOpen more actions menuLatest commit History9 Commits9 CommitsFolders and filesNameNameLast commit messageLast commit date.github.github benchmarksbenchmarks docsdocs examplesexamples manifestsmanifests scriptsscripts .gitattributes.gitattributes .gitignore.gitignore LICENSELICENSE README.mdREADME.md THIRD_PARTY_NOTICES.mdTHIRD_PARTY_NOTICES.md View all filesRepository files navigationREADMELicenseMore itemsCUDA for AMD on Windows A reproducible Windows CUDA compatibility setup built around ZLUDA + AMD HIP/ROCm. It is intended for CUDA-facing compute applications, including workloads that use CUDA-enabled LibTorch. Verified today ZLUDA v6-preview.69 from the official ZLUDA release That integration test used the same CUDA-facing LibTorch training workload that originally motivated this project. See docs/VALIDATION.md. Install detect the AMD GPU and native gfxXXXX target; If you do not need LibTorch: Current GPU status GPU Radeon RX 9060 XT The scanner recognizes other Windows HIP architecture families and marks them as unverified candidates rather than claiming support. Detection is not proof that a workload runs. CUDA-facing component CUDA driver / nvcuda cuBLAS cuBLASLt cuSPARSE cuFFT cuDNN The stable Windows HIP SDK does not ship the full ROCm AI-library stack such as MIOpen, so convolution-heavy software that requires cuDNN can need a newer/nightly HIP stack or additional work. Dense/GEMM-heavy LibTorch training does not necessarily require cuDNN; the validated PPO workload completed without it. Limitations Only RX 9060 XT / gfx1200 is currently validated by this project. License and third-party software Footer © 2026 GitHub, Inc. Footer navigation Terms Privacy Security Status Community Docs Contact Manage cookies Do not share my personal information You can’t perform that action at this time. |
The project CUDA-for-AMD-Windows establishes a reproducible setup designed to run CUDA-targeted Windows applications on AMD GPUs by leveraging the integration of ZLUDA with the ROCm/HIP framework. This involves creating a compatibility layer aimed at bridging CUDA functionality to AMD's HIP programming model within the Windows environment, specifically targeting compute applications that rely on CUDA libraries, such as those utilizing CUDA-enabled LibTorch. The core validation of this setup is based on a specific hardware configuration, currently validated only for the AMD Radeon RX 9060 XT, which corresponds to the gfx1200 architecture. The testing process focuses on verifying compatibility for essential CUDA components like cuBLAS, cuSPARSE, and cuFFT, ensuring they map correctly to their HIP counterparts, rocBLAS, hipBLASLt, rocSPARSE, and HIP, respectively. Furthermore, the project demonstrates successful execution of computationally intensive workloads, including a real two point two million three hundred forty seven parameter PPO network forward/inference, learning, and optimizer operations directly on the CUDA-facing device, along with a validation iteration of sixty five thousand five hundred thirty six timesteps. The installation and execution workflow is managed through a sequence of scripts designed to ensure a clean and verified environment. This process requires installing necessary AMD prerequisites, including a current GPU driver and the AMD HIP SDK for Windows, often referencing the HIP SDK 6.4 version for reference. The repository scripts automate the detection of the AMD GPU and its native architecture, verify the installed drivers and required math libraries, download the pinned ZLUDA Windows build, and retrieve the LibTorch 2.3.0 plus cu118 package. This rigorous setup includes verifying SHA-256 hashes for downloaded files and generating runtime configuration and GPU reports. To run a CUDA-targeted application, a launcher script stages the necessary ZLUDA compatibility dynamic link libraries beside the target executable and configures the appropriate HIP/ROCm runtime paths for execution. Additional diagnostic tools are provided, such as gpu-scan and test-runtime scripts, which record detailed information about the GPU model, architecture, driver, and HIP status. While the validated path confirms compatibility for certain operations, the documentation explicitly acknowledges limitations. The stable Windows HIP SDK does not contain the full ROCm AI-library stack, such as MIOpen or cuDNN, meaning that software requiring extensive cuDNN support might necessitate using a newer or nightly HIP stack. The success of the tested PPO workload did not necessitate the use of cuDNN, suggesting that dense matrix operations (GEMM) primarily driven by LibTorch training can be handled without it. The project also notes that coverage of the CUDA API and libraries is dependent on the specific workload, as not every CUDA program is guaranteed to function under this abstraction. Performance benchmarking on the validated hardware indicates that the upstream path generally yields comparable performance; in one PPO workload, the custom overlay was slightly slower than the default path, suggesting that for the reference workload, the default mechanism remains optimal. The repository structure is organized to maintain this reproducible environment, separating installation steps, diagnostic tools, validation documentation, and local artifacts, contributing to the overall integrity of the reproducible stack. |