News for hackers. Stuff that matters.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by dpflan on Tuesday March 05, 2024 @10:56AM (#39605145)
This seems relevant for discussion:

Nvidia bans using translation layers for CUDA software to run on other chips [1]

____

[1] https://news.ycombinator.com/item?id=39592689

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by TehCorwiz on Tuesday March 05, 2024 @12:19PM (#39606431)
If I'm not using Nvidia hardware, and I don't use Nvidia drivers, and I haven't agreed to their EULA then why would I care?

Emulation is legally protected both explicitly and through legal precedence. The replication of APIs for compatibility purposes has been argued to the US Supreme Court and found to not be copyrightable. At least within some pretty broad scope.

IANAL, but I fail to see what legal basis Nvidia is relying on. For a single user or company who owns no Nvidia hardware this feels moot. For a company with existing Nvidia hardware I could see them having an argument, kinda. But wouldn't that be squarely in the anti-competitive behavior wheelhouse?

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by jsheard on Tuesday March 05, 2024 @12:25PM (#39606510)
> If I'm not using Nvidia hardware, and I don't use Nvidia drivers, and I haven't agreed to their EULA then why would I care?

If the CUDA software you want to run on ZLUDA contains first-party Nvidia libraries, which it usually does, you have to care about how those dependencies are licensed.

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by TehCorwiz on Tuesday March 05, 2024 @12:30PM (#39606582)
Yeah, I commented below at someone who mentioned that. I wasn't aware that people were distributing Nvidia binary libraries with their apps.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by braiamp on Tuesday March 05, 2024 @01:28PM (#39607387)
EULA or not, it would fail anti-competitive laws. In the US they also avoided the Copyright question by saying it was fair use.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by AndrewKemendo on Tuesday March 05, 2024 @12:24PM (#39606504)
> But wouldn't that be squarely in the anti-competitive behavior wheelhouse?

Precisely why they are making that statement. The goal is to threaten people who attempt to avoid CUDA

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by rezonant on Tuesday March 05, 2024 @01:42PM (#39607566)
The application developer has to agree to the terms of the CUDA toolkit. If ZLUDA or other mechanisms require the developer to opt in, that could cause a problem. Perhaps someone more familiar can let us know if that's how it works?
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by underdeserver on Tuesday March 05, 2024 @01:04PM (#39607033)
Hah, I wonder if they're big enough now for the European Commission to fine them over this.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by jraph on Tuesday March 05, 2024 @01:13PM (#39607146)
Europe, the fine continent :-)
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by fddrdplktrew on Tuesday March 05, 2024 @02:28PM (#39608104)
isnt Asia part of Europe?
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by jraph on Tuesday March 05, 2024 @05:10PM (#39609779)
No, however Asia and Europe would be parts of Eurasia, or of Afro-Eurasia.

My joke would be more accurate referring to the EU :-)

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by adventured on Tuesday March 05, 2024 @01:09PM (#39607110)
$50+ billion in expected annual operating income going forward ($13b in the latest quarter with rapid growth).

More EU budget money coming right up.

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by Cheer2171 on Tuesday March 05, 2024 @12:39PM (#39606718)
> If I'm not using Nvidia hardware, and I don't use Nvidia drivers, and I haven't agreed to their EULA then why would I care?

So in your entire life, you have never downloaded an Nvidia driver and clicked through the EULA? Once you agree, you've agreed.

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by randomname93857 on Tuesday March 05, 2024 @12:51PM (#39606867)
But does that matter? if someone tried a software or a service and then terminated or quit that, then does that end-user agreement still applies in perpetuity? Let say I cancel a cable TV subscription or quit MySpaces, do I still really bound by their EULA?
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by tarsinge on Tuesday March 05, 2024 @01:44PM (#39607592)
I don’t think agreeing or not to EULA has any value in EU. At least in France were consumer rights are codified and so an EULA cannot limit these legal rights.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by croes on Tuesday March 05, 2024 @12:54PM (#39606904)
If you don't own Nvidia hardware why should download an Nvidia driver?
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by fragmede on Tuesday March 05, 2024 @01:27PM (#39607362)
Because Nvidia's libraries, whether acquired through them or otherwise, are (currently) required for this trick to work.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by croes on Tuesday March 05, 2024 @02:21PM (#39608015)
You can get the libraries without installer, so no installer, no EULA, no acceptance of it.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by throwing_away on Tuesday March 05, 2024 @12:43PM (#39606769)
That is not how contract law works...
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by OtomotO on Tuesday March 05, 2024 @12:45PM (#39606788)
Even if they had, they agreed to a specific version, not all future versions. That's why the EULA comes up again and again if it changes.

Or am I totally wrong here?

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by easyThrowaway on Tuesday March 05, 2024 @12:07PM (#39606289)
What's the difference between this and Wine/Proton? I guess Microsoft EULA has similar conditions, if they were enforceable wouldn't Microsoft do the same and send a C&D to Wine devs?
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by bri3d on Tuesday March 05, 2024 @12:17PM (#39606406)
This isn't NV saying "you can't make ZLUDA," it's NV saying "you can't run our libraries like cuDNN, cuBLAS, cuBN on non-NV hardware."

While this kind of restriction still isn't legally cut and dry, it does come with tons of precedent, from IBM banning the use of their mainframe OSes in emulation to Apple only licensing OSX for use on Apple hardware.

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by skissane on Tuesday March 05, 2024 @04:13PM (#39609228)
> from IBM banning the use of their mainframe OSes in emulation

It doesn't change your point (which is that it appears de facto legally established that IBM can do this), but IBM doesn't completely ban the use of their mainframe OSes in emulation. They are totally okay with people running them in their own emulators (zPDT and ZDT); the thing they won't authorise is people running them on the open source Hercules emulator, since their own emulators cost $$$$, and Hercules is free, and it appears they view the $0 of Hercules as a threat to the $$$$ of their mainframe ecosystem.

In the past they've even authorised third party commercial emulators, such as FLEX-ES. At some point they stopped allowing FLEX-ES for new customers, although I believe some customers who bought licenses when it was allowed are still licensed to use it. But, it isn't impossible they might authorise a third party commercial emulator again – make it expensive, non-open source, and make it only run on IBM hardware (such as POWER Systems), and there's a chance IBM might go along with it.

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by Someone on Tuesday March 05, 2024 @01:08PM (#39607083)
> from IBM banning the use of their mainframe OSes in emulation

I don’t think they would have tried that in the 1970s, when there was an antitrust suit against them for disallowing running their software on plug compatible (https://en.wikipedia.org/wiki/Plug_compatible) mainframes.

That (I think) made IBM offer reasonable licensing terms for their software (https://en.wikipedia.org/wiki/Amdahl_Corporation#Company_ori...: “Amdahl owed some of its success to antitrust settlements between IBM and the U.S. Department of Justice, which ensured that Amdahl's customers could license IBM's mainframe software under reasonable terms.”)

That case eventually got dropped in 1982, so it didn’t lead to any jurisprudence as to if/when such restrictions are permitted.

(Aside: for a case that ran for over a decade and produced over 30 million pages (https://www.historyofinformation.com/detail.php?id=923), I find it strange this case doesn’t seem to have made it to Wikipedia yet, and how little there’s elsewhere. Nice example of how bad the public digital record is)

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by TehCorwiz on Tuesday March 05, 2024 @12:26PM (#39606529)
I think this is a more nuanced point that just running "CUDA software" which is what's been commonly discussed. Nvidia is licensing their shared libraries in such a way that you can only run then on their hardware.

It's notable however, that both of the examples you give are for Operating Systems, rather than a library which is part of a larger work. Do you know of an example of a single application or library being hardware locked? the only instance I can think of off the top of my head are the old Dos versions of Autocad which had a physical dongle. But even that was DRM and not just an EULA restriction.

Actually, that might be an interesting direction for them to go. Include some key in Nvidia hardware which the library validates. Then they'd get DMCA protection for their DRM.

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by bri3d on Tuesday March 05, 2024 @12:36PM (#39606672)
Hardware-dongle DRM was the default licensing model in the 90s for any kind of enterprise-type software.

Pretty much all audio and video production and editing software for many years, and even today. C compilers, for many years, as well. PhysX for awhile. Native Instruments stuff. Saleae logic analyzer software.

Another message in this thread reminded me, too, of the Google Play frameworks on Android, which are also a very good analogy - Google ship these libraries licensed for use only on approved phones.

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by fragmede on Tuesday March 05, 2024 @01:41PM (#39607549)
> old Dos versions of Autocad which had a physical dongle.

Those didn't go away in the industry, though AutoCAD moved away from them. Resolume (professional VJ software) and Avid (professional video editing software) still have hardware dongles. Arguably so does Davinci, theirs are just much bigger ;). progeCAD (AutoCAD compatible CAD program) also has USB protection dongles available as a license option.

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by fancyfredbot on Tuesday March 05, 2024 @12:59PM (#39606955)
It's actually NVIDIA saying you can't reverse engineer anything you build using CUDA SDK in order to run it on another platform. If someone else built it with the SDK and you have never downloaded the SDK yourself then you would not be bound by this agreement. I don't think you could get the cublas etc libraries without agreeing to the EULA so it includes what you are saying, but also includes apps or libraries you build yourself using the SDK.

"You may not reverse engineer, decompile or disassemble any portion of the output generated using SDK elements fo the purpose of translating such output artifacts to target a non-NVIDIA platform."

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by asdff on Tuesday March 05, 2024 @02:30PM (#39608154)
Except the hackintosh community exists. Clearly there is no precedent to actually enforce anything and shut down these community tools.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by Lazonedo on Tuesday March 05, 2024 @05:16PM (#39609851)
> Except the hackintosh community exists. Clearly there is no precedent to actually enforce anything and shut down these community tools

You can't shut down the tools themselves, but you can shut down their use.

https://en.wikipedia.org/wiki/Psystar_Corporation

> On November 13, 2009, the court granted Apple's motion for summary judgement and found Apple's copyrights were violated as well as the Digital Millennium Copyright Act (DMCA) when Psystar installed Apple's operating system on non-Apple computers.

Besides the copyright violation, it is very important to note that the court also considered that circumventing the hardware checks were a violation of the DMCA and illegal in and of itself.

Apple doesn't do anything about the hackintosh ""community"" because they simply don't care about a bunch of random nerds in their basement running macOS but the moment a corporation starts using it to replace their macs you can bet they're going to be sued to oblivion. Not that it would ever happen, hackintosh are going to prove a complete dead end once Apple drops support for x86.

We live in a post-DMCA world. This isn't the era that allowed Bleem to win against Sony, and this is the era that saw the switch emulator developers shit their pants and promise millions to Nintendo in a settlement because they were very unconfident in the possibility of winning in a trial. NVIDIA, for better or worse, has a strong legal standing to clamp down on people who think it would be funny to run their libraries on non-NVIDIA hardware. Do it in your basement if you will, but don't try to push this in a data center.

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by dist-epoch on Tuesday March 05, 2024 @12:30PM (#39606580)
It seems like it should be pretty easy for cuDNN, cuBLAS to authenticate the hardware.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by parentheses on Tuesday March 05, 2024 @12:10PM (#39606320)
EULA permits the companies to have grounds to take someone to court. Their choice to prosecute. It's a reserved right more so than one that they use 100%.

In this case translating CUDA can allow AMD to chip away at NVidia's market share.

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by adastra22 on Tuesday March 05, 2024 @12:11PM (#39606336)
Not if the person being sued never “signed” the EULA.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by LoganDark on Tuesday March 05, 2024 @12:23PM (#39606483)
Nvidia cares about the people reverse-engineering CUDA, who don't have anything to reverse-engineer unless they actually download the SDK. Of course, when you download the SDK it has an associated license.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by TehCorwiz on Tuesday March 05, 2024 @12:29PM (#39606565)
It's also possible to do a clean-room reverse where one group tests the hardware and software and writes specifications and another group who has never seen the hardware or docs then does the implementation. This has been legally tested and protected going back to at least the early 1980s.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by mandevil on Tuesday March 05, 2024 @01:19PM (#39607253)
It is possible, but a) it is expensive as hell to get enough engineers whom you can prove in court have no exposure to the original software (most SWE's would get some exposure just naturally in college nowadays, leave alone at any sort of job) and b) CUDA is constantly changing and updating and so you need to have this expensive clean-room process going constantly or else you will fall behind.

The most famous case of clean-room reverse engineering is for the original BIOS chips back in the early 1980's, where the chips themselves couldn't change- they were hardware! It's going to be orders of magnitude more difficult to do that for software packages that change regularly.

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by TehCorwiz on Tuesday March 05, 2024 @02:37PM (#39608236)
I disagree on Cuda changing constantly. The hardware is stable once sold and new devices are usually backwards compatible by at least a version or two. The API is also locked down for already deployed versions, can't go pulling the rug from paying customers. However, new versions of both hardware and Cuda do introduce new things that'll need addressed. I don't think it's much of a moving target though.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by Me1000 on Tuesday March 05, 2024 @02:46PM (#39608340)
> it is expensive as hell

Probably, but Nvidia's market cap suggests there's more than $2 trillion in reasons to front that expense.

Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by dotnet00 on Tuesday March 05, 2024 @11:54AM (#39606113)
Should be emphasized again that contrary to the article's claim, the clause in question has been in CUDA's EULA, even in the downloads (contrary to the updated statement in the article), since Jan 2022.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by croes on Tuesday March 05, 2024 @12:55PM (#39606919)
Means Nvidia is even longer anti competitive than we thought.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by contravariant on Tuesday March 05, 2024 @01:01PM (#39606994)
Wait, you thought they started after 2022?
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by mort96 on Tuesday March 05, 2024 @11:59AM (#39606181)
Does that even matter? It's not like you need someone's permission to implement a system with a compatible interface to another. It violates the EULA but you don't need to accept the EULA unless you download the CUDA software, which I guess the authors of ZLUDA could avoid doing
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by jsheard on Tuesday March 05, 2024 @12:11PM (#39606332)
The complication is that most CUDA apps you would want to run on ZLUDA contain first-party libraries provided by Nvidia (e.g. cuDNN) which may have restrictive license terms saying you're not allowed to run them on a third-party runtime. ZLUDA itself may be legally in the clear as a cleanroom reimplementation free of Nvidia code, but it's not so clear-cut for the users of ZLUDA.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by mort96 on Tuesday March 05, 2024 @01:01PM (#39606986)
Aha, so we'd need clean-room re-implementations of those libraries too, in principle.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by gsich on Tuesday March 05, 2024 @12:28PM (#39606552)
My hardware - my rules.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by adastra22 on Tuesday March 05, 2024 @12:11PM (#39606327)
NVIDIA doesn’t have the authority to do that. There’s no NVIDIA SDK involved here.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by jrepinc on Tuesday March 05, 2024 @12:34PM (#39606631)
Fsck you nvidia even more. Just going the same evil ways as Nintendo I see. Good thing I don't waste my money on your products.
Re:Open-source project ZLUDA lets CUDA apps run on AMD GPUs by mtillman on Tuesday March 05, 2024 @12:42PM (#39606759)
I find myself more upset with AMD for completely dropping the ball on firmware and software. Almost intentional levels of incompetence.