this post was submitted on 09 Aug 2024
233 points (99.6% liked)

Open Source

31358 readers
284 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
 

LibreCUDA is a project aimed at replacing the CUDA driver API to enable launching CUDA code on Nvidia GPUs without relying on the proprietary CUDA runtime. It achieves this by communicating directly with the hardware via ioctls, (specifically what Nvidia's open-gpu-kernel-modules refer to as the rmapi), as well as QMD, Nvidia's MMIO command queue structure. LibreCUDA is capable of uploading CUDA ELF binaries onto the GPU and launching them via the command queue.

top 13 comments
sorted by: hot top controversial new old
[–] PanArab@lemmy.ml 29 points 3 months ago* (last edited 3 months ago) (3 children)

Not going to get excited about it until it had time to mature and actually used in production.

At which point, I am all for it.

I remember being hyped for GNUStep years ago and I still can’t just recompile my old Cocoa applications.

[–] todd_bonzalez@lemm.ee 14 points 3 months ago

I'm going to get excited about it now, and report bugs for it, because I actually want it to be production ready without pretending the few maintainers this has are gods.

[–] HumanPenguin 5 points 3 months ago* (last edited 3 months ago)

Yeah any reverse engineering of closed source code takes time. It's a huge job on its own. Adding the need to avoid actions that may lead to legal issues.

Well yep, It's very likely this may never round to a perfect replacement product.

But it still has value. For starters, it will encourage new open source projects to use it rather than the propria try version, long before it's a direct replacement capable product.

So the effort is worth some excitement. At least a pat on the back and free beer for some of the guys trying.

[–] GenderNeutralBro@lemmy.sdf.org 5 points 3 months ago (1 children)

Hopefully they have better defenses against legal action from Nvidia than ZLUDA did.

In the past, re-implementing APIs has been deemed fair use in court (for example, Oracle v Google a few years back). I'm not entirely sure why ZLUDA was taken down; maybe just to avoid the trouble of a legal battle, even if they could win. I'm not a lawyer so I can only guess.

Validity aside, I expect Nvidia will try to throw their weight around.

[–] MinFapper@startrek.website 5 points 3 months ago (1 children)

IIRC it wasn't legal action from Nvidia, but rather AMD pulling the funding that killed ZLUDA.

[–] HumanPenguin 1 points 3 months ago

Yeah that is often the issue.

It is rare a single company owns all the IP on code. So its common that companies are not releasing code because they cannot.

[–] slacktoid@lemmy.ml 26 points 3 months ago (1 children)

CUDA libre. Its right there.

[–] riddlemeboner@lemdro.id 9 points 3 months ago (1 children)
[–] slacktoid@lemmy.ml 9 points 3 months ago

Oh no the reasoning from the dev is perfectly valid. Its more.. It was so close!

[–] mindbleach@sh.itjust.works 5 points 3 months ago

Nvidia's grip on CUDA needs breaking, one way or another.

[–] red@lemmy.zip 3 points 3 months ago

not gonna get exited until I can use cuda with noveu driver's in my linux

[–] Mwa@thelemmy.club 2 points 3 months ago

hope its better then the closed source nvidia drivers

[–] endofline@lemmy.ca 1 points 3 months ago

Isn't it better to focus and migrate on opencl?