News for hackers. Stuff that matters.
Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by mathisfun123 on Wednesday February 18, 2026 @12:28AM (#47057519)
it's astounding to me how many people pop off about "AMD SHOULD SUPPORT CUDA" not knowing that HIP (and hipify) has been around for literally a decade now.
Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by colordrops on Wednesday February 18, 2026 @12:30AM (#47057531)
Please explain to me why all the major players are buying Nvidia then? Is HIP a drop in replacement? No.

You have to port every piece of software you want to use. It's ridiculous to call this a solution.

Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by woctordho on Wednesday February 18, 2026 @01:51AM (#47058037)
Major players in China don't play like that. MooreThreads, Lisuan, and many other smaller companies all have their own porting kits, which are basically copied from HIP. They just port every piece of software and it just works.

If you want to fight against Nvidia monopoly, then don't just rant, but buy a GPU other than Nvidia and build on it. Check my GitHub and you'll see what I'm doing.

Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by mathisfun123 on Wednesday February 18, 2026 @01:59AM (#47058091)
> Is HIP a drop in replacement? No.

You don't understand what HIP is - HIP is AMD's runtime API. it resembles CUDA runtime APIs but it's not the same thing and it doesn't need to be - the hard part of porting CUDA isn't the runtime APIs. hipify is the thing that translates both runtime and kernels. Now is hipify a drop-in replacement? No of course but because the two vendors have different architectures. So it's absolutely laughable to imagine that some random could come anywhere near "drop-in replacement" when AMD can't (again: because of fundamental architecture differences).

Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by colordrops on Wednesday February 18, 2026 @02:05AM (#47058127)
Who said "some random"? Read the whole thread. I was suggesting AMD invest BILLIONS to make this happen. You're aguing with a straw man.
Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by bigyabai on Wednesday February 18, 2026 @02:30AM (#47058279)
I think you misunderstand what's fundamentally possible with AMD's architecture. They can't wave a magic wand for a CUDA compatibility layer any better than Apple or Qualcomm can, it's not low-hanging fruit like DirectX or Win32 translation. Investing billions into translating CUDA on raster GPUs is a dead end.

AMD's best option is a greenfield GPU architecture that puts CUDA in the crosshairs, which is what they already did for datacenter customers with AMD Instinct.

Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by KeplerBoy on Wednesday February 18, 2026 @02:51AM (#47058414)
This is a big part of AMD still not having a proper foothold in the space: AMD Instinct is quite different from what regular folks can easily put in their workstation. In Nvidia-land I can put anything from mid-range gaming cards, over a 5090 to an RTX 6000 Pro in my machine and be confident that my CUDA code will scale somewhat acceptably to a datacenter GPU.
Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by bigyabai on Wednesday February 18, 2026 @03:07AM (#47058513)
This is where I feel like Khronos could contribute, making a Compute Capability-equivalent hardware standard for vendors to implement. CUDA's versioning of hardware capabilities plays a huge role in clarifying the support matrix.

...but that requires buy-in from the rest of the industry, and it's doubtful FAANG is willing to thread that needle together. Nvidia's hedged bet against industry-wide cooperation is making Jensen the 21st century Mansa Musa.

Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by colordrops on Wednesday February 18, 2026 @03:32AM (#47058684)
I do not misunderstand.

Let's say you put 50-100 seasoned devs on the problem, and within 2-3 years, probably get ZLUDA to the point where most mainstream CUDA applications — ML training/inference, scientific computing, rendering — run correctly on AMD hardware at 70-80% of the performance you'd get from a native ROCm port. Even if its not optimal due to hardware differences, it would be genuinely transformative and commercially valuable.

This would give them runway for their parallel effort to build native greenfield libraries and toolkits and get adoption, and perhaps make some tweaks to future hardware iterations that make compatibility easier.

Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by zvr on Wednesday February 18, 2026 @09:05AM (#47061033)
Before the "ZLUDA" project completion, they would be facing a lawsuit for IP infringement, since CUDA is owned by NVIDIA.
Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by colordrops on Wednesday February 18, 2026 @11:45AM (#47062988)
They would win, compatibility layers are not illegal.
Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by bigyabai on Wednesday February 18, 2026 @01:21PM (#47064301)
Win against who? AMD is the one that asked them to take it down: https://www.tomshardware.com/pc-components/gpus/amd-asks-dev...

And while compatibility layers aren't illegal, they ordinarily have to be a cleanroom design. If AMD knew that the ZLUDA dev was decompiling CUDA drivers to reverse-engineer a translation layer, then legally they would be on very thin ice.

Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by bigyabai on Wednesday February 18, 2026 @01:14PM (#47064188)
ROCm is supported by the minority of AMD GPUs, and is accelerated inconsistently across GPU models. 70-80% of ROCm's performance is an unclear target, to the point that a native ROCm port would be a more transparent choice for most projects. And even then, you'll still be outperformed by CUDA the moment tensor or convolution ops are called.

Those billions are much better-off being spent on new hardware designs, and ROCm integrations with preexisting projects that make sense. Translating CUDA to AMD hardware would only advertise why Nvidia is worth so much.

> it would be genuinely transformative and commercially valuable.

Bullshit. If I had a dime for every time someone told me "my favorite raster GPU will annihilate CUDA eventually!" then I could fund the next Nvidia competitor out of pocket. Apple didn't do it, Intel didn't do it, and AMD has tried three separate times and failed. This time isn't any different, there's no genuine transformation or commercial value to unlock with outdated raster-focused designs.

Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by mathisfun123 on Wednesday February 18, 2026 @10:02AM (#47061694)
No I'm arguing with someone who clearly doesn't understand GPUs

> invest BILLIONS to make this happen

As I have already said twice, they already have, it's called hipify and it works as well as you'd imagine it could (ie poorly because this is a dumb idea).

Re:BarraCUDA Open-source CUDA compiler targeting AMD GPUs by KennyBlanken on Wednesday February 18, 2026 @02:49AM (#47058405)
Wow you're so very smart! You should tell all the llm and stablediffusion developers who had no idea it existed! /s

HIP has been dismissed for years because it was a token effort at best. Linux only until the last year or two, and even now it only supports a small number of their cards.

Meanwhile CUDA runs on damn near anything, and both Linux and Windows.

Also, have you used AMD drivers on Windows? They can't seem to write drivers or Windows software to save their lives. AMD Adrenalin is a slow, buggy mess.

Did I mention that compute performance on AMD cards was dogshit until the last generation or so of GPUs?