logoalt Hacker News

Alternative(s) to run CUDA on non-Nvidia hardware

72 pointsby alok-gtoday at 8:24 AM36 commentsview on HN

Comments

woctordhotoday at 9:41 AM

There's nothing wrong to run CUDA on non-Nvidia hardware. CUDA has an interface that is reasonably well-designed, well-documented/reverse-engineered, and battle-tested for decades. What we need is not to invent another interface just under the name of 'open standard', but to implement the same interface. ROCm is exactly doing this, and so are other hardware SDKs such as MooreThread and Alibaba T-Head.

show 1 reply
pjmlptoday at 8:35 AM

Most of these "alternatives" focus on CUDA C++, and overlook what actually makes CUDA interesting.

Already in 2020,

https://developer.nvidia.com/blog/cuda-refresher-the-gpu-com...

show 2 replies
puschkinfrtoday at 10:04 AM

In this context AdaptiveCpp should also be mentioned. Started as a SYCL implementation, but recently-ish added a compiler for compiling a CUDA dialect to GPUs and CPUs from basically all vendors

show 1 reply
u1hcw9nxtoday at 11:18 AM

Alternatives exist, but little demand outside hyperscalers and special uses.

Neocloud customers just want plug-and-play CUDA. It works, it's tested, it adapts faster, and has known performance. Alternatives give no significant benefits.

Things can change, but they are not changing now.

luciana1utoday at 9:41 AM

every CUDA alternative follows the same arc: bold launch, works for 3 operations, then a Discord server where the last message is 'any updates?' from 2024

show 1 reply
maxlohtoday at 9:24 AM

There is also ZLUDA, which is open source and works on pre-compiled binaries.

https://github.com/vosen/ZLUDA

show 1 reply
dachworkertoday at 11:12 AM

Why should I not just port my kernel to Triton? What's the appeal of Scale?

cactusplant7374today at 11:51 AM

Isn't the future of the industry specialized chips like those that Broadcom and Cerebras are making? I don't know how much longer I can tolerate 50 tokens per second. It feels like the dial-up era.

asdaqopqkqtoday at 11:14 AM

aren't llms smart enough to directly write custom kernels for custom hardware from cuda code?

lulzxtoday at 9:35 AM

I have been trying for cuda -> metal, to run it on mac, https://github.com/lulzx/cuda-metal

DiabloD3today at 9:34 AM

Its easier to just get rid of your legacy code entirely and use Vulkan for compute, or have your compiler emit SPIR-V directly.

No reason to tie yourself to Nvidia's moat.

show 5 replies
tangsoupgallerytoday at 11:20 AM

[dead]

z0ltantoday at 9:54 AM

[dead]