News for hackers. Stuff that matters.
Re:VUDA: A Vulkan Implementation of CUDA by empyrrhicist on Saturday July 01, 2023 @10:21AM (#36550412)
I know AMD has a whole bunch of (related?) projects for GPU compute, but man - if they could just provide an interop layer that Just Works they'd get immediate access to so much more market share.
Re:VUDA: A Vulkan Implementation of CUDA by heyoni on Saturday July 01, 2023 @10:44AM (#36550648)
Then they too could call themselves an AI company!
Re:VUDA: A Vulkan Implementation of CUDA by empyrrhicist on Saturday July 01, 2023 @10:58AM (#36550816)
I've been hoping for it for so long - I wonder if there's enough interest that someone could do a GoFundMe to hire at least one full time dev lol.
Re:VUDA: A Vulkan Implementation of CUDA by sanxiyn on Saturday July 01, 2023 @10:59AM (#36550824)
Eh well, it is very close to just working. From "Training LLMs with AMD MI250 GPUs and MosaicML":

> It all just works. No code changes were needed.

https://www.mosaicml.com/blog/amd-mi250

Re:VUDA: A Vulkan Implementation of CUDA by paulmd on Saturday July 01, 2023 @02:37PM (#36553508)
“Just works” in this context means executing the compiled CUDA or the PTX bytecode without recompiling. Nobody is ever going to utilize ROCm if it requires distributing as source and recompiling.

To make it even more insulting, even simply installing ROCm itself is a massive burden, even on an ostensibly-supported (as geohot discovered) and even just “it works out of the box if you distribute and compile it locally” is ignoring that whole massive “draw the rest of the owl” stage of getting ROCm installed and building properly in your environment.

Re:VUDA: A Vulkan Implementation of CUDA by causality0 on Saturday July 01, 2023 @03:59PM (#36554430)
Don't forget AMD doesn't seem to even care about ROCm themselves. Six months in and RDNA3 cards still don't support it. Can you imagine if Nvidia launched RTX40- cards with no DLSS even though 30- cards already had it, and six months started boasting about how DLSS support was "coming this fall"?
Re:VUDA: A Vulkan Implementation of CUDA by wmf on Saturday July 01, 2023 @04:34PM (#36554879)
ROCm is for CDNA not RDNA. It has limited, best-effort RDNA support for a few cards.
Re:VUDA: A Vulkan Implementation of CUDA by i80and on Saturday July 01, 2023 @04:56PM (#36555112)
I've been running PyTorch on my Radeon 7900 XT using ROCm. Is that not supposed to work?
Re:VUDA: A Vulkan Implementation of CUDA by graphe on Saturday July 01, 2023 @05:21PM (#36555373)
No, it actually isn't supposed to work, it's not officially supported. https://sep5.readthedocs.io/en/latest/Installation_Guide/Ins...
Re:VUDA: A Vulkan Implementation of CUDA by i80and on Saturday July 01, 2023 @05:41PM (#36555559)
Fascinating. And yet.
Re:VUDA: A Vulkan Implementation of CUDA by slavik81 on Saturday July 01, 2023 @07:01PM (#36556219)
The hardware that is officially supported is a subset of the hardware that works. You are correct that the RX 7900 XT is not officially supported, but I must point out that you are linking to a fork of the documentation from 2019. This is the official ROCm documentation: https://rocm.docs.amd.com/en/latest/release/gpu_os_support.h...
Re:VUDA: A Vulkan Implementation of CUDA by JoshTriplett on Saturday July 01, 2023 @09:13PM (#36557170)
> “Just works” in this context means executing the compiled CUDA or the PTX bytecode without recompiling. Nobody is ever going to utilize ROCm if it requires distributing as source and recompiling.

Even a source-compatible layer that let you just recompile CUDA code for an AMD GPU would be a huge improvement. That alone would eliminate the CUDA lock-in.

Re:VUDA: A Vulkan Implementation of CUDA by stuaxo on Sunday July 02, 2023 @11:27AM (#36562334)
Having to use a special kernel for ROCm is a real pain, I can't just use it like I can with Mesa.

I have enough issues using graphics already so I'll stick with Mesa.

Re:VUDA: A Vulkan Implementation of CUDA by collsni on Saturday July 01, 2023 @11:12AM (#36550972)
It is coming from what I can tell
Re:VUDA: A Vulkan Implementation of CUDA by meragrin_ on Saturday July 01, 2023 @02:40PM (#36553544)
It's been coming for years now. I will probably be years before it really is here.
Re:VUDA: A Vulkan Implementation of CUDA by juunpp on Sunday July 02, 2023 @12:25PM (#36562949)
That's HIP / ROCm: https://rocm.docs.amd.com/projects/HIP/en/latest/index.html

But it currently only runs on CDNA boards and enterprise-y Linux distros (Ubuntu LTS, Centos, etc.)