AMD GPUs Now ‘Indirectly” Support NVIDIA CUDA Libraries With ROCm Using ZLUDA

Feb 12, 2024 at 12:20pm EST
ZLUDA, The Open-Source Library For Running NVIDIA CUDA On AMD GPUs, Has Now Been Taken Down Amid Legal Concerns 1

AMD GPU owners can now effortlessly run CUDA libraries and apps within ROCm through the use of ZLUDA, an Open-Source library that effectively ports NVIDIA CUDA apps over to ROCm that does not require code adaption.

AMD ROCm Now Supports NVIDIA CUDA Libraries Using Open-Source "ZLUDA", Works Across All GPUs From The Red Team

The practice of "transitioning" codebases from one project/language to the other is common since it allows developers to code to access a wider "arsenal" of features and makes maintenance easier. In this case, however, an interesting development has occurred since Team Red has apparently hastened its efforts of porting the CUDA platform to run it with AMD's ROCm but contacted a developer who has already been involved in a similar implementation.

Related Story AMD Is Trying to Pull Off a ‘Ryzen Moment’ With Radeon, But Admits the Perfect Gaming GPU Platform Is Still Generations Away
AMD GPUs Now 'Indirectly" Support NVIDIA CUDA Libraries With ROCm Using ZLUDA 2" width="1024" height="603" /> Image Credits: Phoronix

Phoronix reports that AMD's ROCm magic now supports CUDA APIs in a "workaround" method, which involves utilizing ZLUDA, an open-source porting project designed originally to facilitate NVIDIA CUDA support on Intel GPUs. While ZLUDA offered intriguing possibilities in the domain of code porting, it faced technical and practical challenges that ultimately halted its development, especially when it came to the interest of companies such as Intel at that time. However, the developer behind it, Andrzej Janik, was contacted by AMD for a pretty exciting experiment back in 2022, the results of which are now finally evident.

Based on extensive testing by Phoronix, it is disclosed that ZLUDA "almost" runs perfectly with AMD's Radeon GPUs on with ROCm utilizing NVIDIA's CUDA-loaded libraries. Moreover, it didn't require any changes to the existing code either. Despite the project's development getting halted due to AMD's apparent backout, the developer was kind enough to open-source the work after he met the deadline, which made it possible for Phoronix to test out to see what it brought onboard.

Since code porting opened up new possibilities, Phoronix has managed to run Blender 4.0 with CUDA libraries, and surprisingly enough, the testing results show that NVIDIA and AMD are head-to-head in terms of rendering performance. Moreover, the developer Andrzej Janik himself tested the performance of Radeon GPUs with CUDA-backing through synthetic benchmarking, and the figures obtained were interesting to witness.

Image Source: ZLUDA

I believe ZLUDA might have huge potential moving forward since it is a platform that bridges ROCm and CUDA stacks rather than separates them out, allowing developers to leverage specific capabilities from both platforms. Of course, we can't see native CUDA support on Radeon GPUs, but such resources could prove to be very useful as we advance into the era of AI, and the developer himself is optimistic about the future of ZLUDA, claiming that he is testing out NVIDIA's upscaling capabilities with ZLUDA on RDNA GPUs.

News Source: Phoronix

About the author: Muhammad Zuhair is a hardware and technology reporter for Wccftech, specializing in the semiconductor industry and the complex interplay between technology, manufacturing, and geopolitics. His coverage focuses on the corporate strategies and technological roadmaps of industry giants like TSMC, NVIDIA, Samsung, and Intel. Zuhair's expertise lies in deconstructing complex topics such as fabrication nodes (e.g., 2nm process), the economic impact of policies like the CHIPS Act, and the strategic development of AI infrastructure from NVIDIA, AMD and Intel.

Follow Wccftech on Google to get more of our news coverage in your feeds.