LibreCUDA – Launch CUDA code on Nvidia GPUs without the proprietary runtime
github.com
github.com
If you are interested in open source runtimes, tinygrad has them in Python for both AMD and NVIDIA, speaking directly to the kernel through ioctls and poking the command queues.
https://github.com/tinygrad/tinygrad/blob/master/tinygrad/ru...
https://github.com/tinygrad/tinygrad/blob/master/tinygrad/ru...
(I want a reference implementation of run-simple-stuff which doesn't fall over because of bugs in libhsa so that I know whatever bug I'm looking at is in my compiler / the hardware / the firmware)
The HSA parsing MEC firmware running on the GPUs is riddled with bugs, fortunately you can bypass 90% of it using PM4, which is pretty much direct sets of the GPU registers. That's what tinygrad does.
AMD's software is a really sad state. They don't have consumer GPUs in CI, they have no fuzz testing, and instead of root causing bugs they seem to just twiddle things until the application works.
Between our PM4 backend and disabling CWSR, our AMD GPUs are now pretty stable.
There is a lot one cannot wisely say about the political structures which give rise to the behaviour of the rocm toolchain. Some of the implementation choices reified in the code are far divorced from what I consider reasonable, but one does not take a hatchet to other people's work.
This makes fixing rocm primarily a people oriented problem to which compiler engineers are not necessarily temperamentally suited. I note that a technically inept but politically minded engineer can do extremely widespread damage in a friendly non-toxic collaborative environment.
Cutting the egregiously broken parts of rocm from one's dependency graph is a solid workaround.
Once you already bought the NVIDIA cards what’s the point
it's worth noting that "NVIDIA software stack" is an imprecise term. the driver is the part that has the datacenter usage term, and the open-kernel-driver bypasses that. the CUDA stack itself does not have the datacenter driver clause, the only caveat is that you can't run it on third-party hardware. So ZLUDA/GpuOcelot is still verboten, if you are using the CUDA libraries.
Another benefit could be support for platforms that nvidia doesn't care to release CUDA SDKs for.
As a bonus, with open source platforms you are much less subject to whims of company licensing. If tomorrow Nvidia decided to change their licensing strategy and pricing, how many here will be affected by it? OSS doesn’t do that. And even if the project goes in a random direction you don’t like, someone likely forks it to keep going in the right direction (see pfsense/opnsense).
This is just wishful thinking. Anything close to real professional use, not related to IT, and closed source is king: office work, CAD, video editing, music production, and those domains immediately came to mind. Nowhere there open source can seriously challenge commercial, closed sourced competitors.
Yes, in any of those domains one can name open source products, but they are far from "winning" or "the better option".
Commercial, closed source products generally benefit from a monopoly within a specific problem domain or some kind of regulatory capture. I don’t think that means an open source alternative isn’t desirable or viable, just that competing in those contexts is much more difficult without some serious investment—be it political, monetary, or through many volunteered hours of work.
Another comment mentioned Blender which is a great example of a viable competitor in a specific problem domain. There are others if you look at things like PCB circuit design, audio production/editing, and a surprising amount of fantastic computer emulators.
In general you confirmed my point by saying that competing in domains is much more difficult. And open source isn’t a key to a win.
In the grand scheme of things I believe open source at least provides serious competition and that commercial software has its own work to do.
Also, a lot of not all professional work uses open source components. Research is a field where it shines and there it matters a lot.
Adobe has to work for its money as well as its competitors get more powerful by the day. And everyone hates their creative cloud.
Anything else is moving the goalposts.
ex - I think Adobe is in the middle of this swing now, Blender is eating marketshare, and Krita is pretty incredible.
Unity is also struggling (I've seen a LOT of folks moving to Godot, or going back to unreal [which is not open, but is source-available - because having access matters]).
CAD hasn't quite tipped yet - but Freecad is getting better constantly. I used to default to Fusion360 and Solidworks, but I haven't had to break those out for personal use in the last 5 years or so (CNC/3d printing needs). It's not ready for professional use yet, but it now feels like how blender felt in 2010 - usable, if not quite up to par.
Office work... is a tough one - to date, Excel still remains king for the folks who actually need Excel. Everything else has moved to free (although not necessarily open source) editors. None of my employers have provided word/powerpoint for more than a decade now - and I haven't missed not having them.
I would argue that PDFs have gone the opensource route though, and that used to be a big name in office work (again - Adobe screwed up).
I don't really do any music production or video editing, so I can't really comment other than to say that ffmpeg is eating the world for commercial solutions under the hood, and it is solidly open. And on the streaming side of "Video" OBS studio is basically the only real player I'm aware of.
So... I don't really think it's wishful thinking. I think opensource is genuinely better most times, it just plays the long and slow game to getting there.
I'd be glad to be proven wrong.
Naw, just try to find a decent PDF editor. You will have a hard time. PDF display is fairly open, but PDF editing is not. PDFs are the dominant format for exchange of signed documents, still a big name in office work, and Adobe still controls the PDF editing app market.
I would love it if open source was winning in the imaging, audio or DCC markets, but it’s just not even close yet. Blender hasn’t touched pro market share, it’s just being used by lots and lots of hobbyists because it’s free to play with. Just did a survey of the film & VFX studios at Siggraph, and they aren’t even looking in Blender’s direction yet, they are good with Houdini, Maya, etc. Some of this has to do with fears and lack of understanding of open source licensing - studios are afraid of the legalities, and Ton has talked about needing to help educate them. Some new & small shops use Blender, but new & small shops come and go all the time, the business is extremely tough.
Office work is moving to Microsoft alternatives like Google Office products. That is not open source, not source available, and for most medium to large companies it’s not free either (though being “free” as in beer is irrelevant to your point). The company just pays behind the scenes and most employees don’t know it, or it’s driven by ad & analytics revenue.
Unix utilities and Linux server software are places where open source has some big “wins”, but unfortunately when it comes to content creation software, it still is wishful thinking. It could change in the future, and I honestly hope it does, but it’s definitely not there yet.
Nobody is forcing you to buy GPUs.
Your logic is flawed in the sense that enough people could also simply write alternatives to Torch, which, by the way, is already open source.
Nobody is forcing you to live under a roof.
Nobody is forcing you to eat.
I just found it highly unlikely that Nvidia would change its ways due to this, and I don't really see how we're being "squeezed". Nvidia are delivering amazing products (as are AMD), and it is not going to be any cheaper this way.
Building this kind of hardware is not something a hacker can do over the weekend.
Yet to get a card with 8GB more than one with comparable logical performance, you'd be looking at hundreds (or thousands in the case of "machine learning" cards) of dollars.
Good luck getting a multi-user GPU setup going, for example.
It super sucks when the hardware is capable, but licensing doesn't "allow" it.
Step 2: Port to other GPUs.
At least I assume that is the plan.
why not do this first? because the existing closed sourced CUDA already runs well on nvidia chips. Replicating it with an open stack, while ideologically useful, is going to sap resources away from the porting of it to other GPUs (where the real value can be had - by stopping the nvidia monopoly on ai chips).
Linus wasn’t writing Linux for consumers (arguably the Linux kernel team still isn’t), he needed a Unix-like kernel on a platform which didn’t support it
Nvidia is placed with CUDA in a similar way to how Bell was with Unix in the late 1980s. I’m not sure if a legal “CUDA Wars” is possible in the way the Unix Wars was, but something needs to give
Nvidia has a monopoly and many organisations and projects will come about to rectify it, I think this is one example
The most interesting thing to see moving forward is where the most just place is to draw the line for Nvidia they deserve remuneration for CUDA, but the question is how much? The axe of the Leviathan (US government) is slowly swinging towards them, and I expect Nvidia to pre-emptively open up CUDA just enough to keep them (and most of us) happy
After a certain point for a technology so low in the “stack” of the global economy, more powerful actors than Nvidia will have to step in and clear the IP bottleneck
Tech giants are powerful and influence people more than the government, but I think people forget how powerful the government can be when push comes to shove over such an important piece of technology
—————
PS my comparison of CUDA to Unix isn’t perfect, mostly as Nvidia has a hardware monopoly as it stands, but as they don’t fab it themselves it’s just a design/information at the end of the day. There’s nothing physically preventing other companies producing CUDA hardware, just obvious legal and business obstacles
Perhaps a better comparison would be Texas Instruments trying to monopolise integrated circuits (they never tried). But if Fairchild Semiconductors hadn’t’ve independently discovered ICs, we might have seen a much slower logistic curve than we have had with Moore’s law (assuming competition is proportional to innovation)
Besides how they've "opened" their drivers by moving all the proprietary code on-GPU, I don't expect this to happen at all. Nvidia has no incentive to give away their IP, and the antitrust cases that people are trying to build against them border on nonsense. Nvidia monopolizes CUDA like Amazon monopolizes AWS, their "abuse" is the specialization they offer to paying customers... which harms the market how?
What really makes me lament the future is the fact that we had a chance to kill CUDA. Khronos wanted OpenCL to be a serious competitor, and if it wasn't specifically for the fact that Apple and AMD stopped funding it we might have a cross-platform GPU compute layer that outperforms CUDA. Today's Nvidia dominance is a result of the rest of the industry neglecting their own GPGPU demand.
Nvidia only "wins" because their adversaries would rather fight each other than work together to beat a common competitor. It's an expensive lesson for the industry about adopting open standards when people ask you to, or you suffer the consequences of having nothing competitive.
Anyway I wonder why amd never challenged nvidia on that market... It smells a bit like amd and nvidia secretly agreed to not compete against each other.
Opencl exists but is abandoned.
some will need specific versions of cuda
right now I masked cuda from upgrades in my system and I'm stuck on an old version to support some projects
I also had plenty of problems with gpu-operator to deploy on k8s: that helm chart is so buggy (or maybe just not great at handling some corner cases? no clue) I ended up swapping kubernetes distribution a few times (no chance to make it work on microk8s, on k3s it almost works) and eventually ended up installing drivers + runtime locally and then just exposing through containerd config
Having a compiler that takes a special C++ or python dialect and compiles it to GPU suitable llvm-ir and then to a GPU binary is one thing (and there's progress on that side: triton, numba, soonish mojo), being able to launch that binary without going through the nvidia driver is another problem.
Also it's much more convenient to use plain C++ rather than a custom shading language, especially if you're writing complex numerical code or need some heavy templated abstractions to do powerful stuff. And the CUDA tooling itself is just much easier to use compared to Vulkan, with its seamless integration of host / device code.
Don't forget about Julia!
So if I understand it correctly there is something in the works
Could you imaging an age where the NVIDIA firmware does LLM/AI/GPU license checking before it does operations on your vectors? (Hello Oracle on SUN e650, My old Friend) ((Worse would be a DRM check against deep-faking or other Globalist WEF Guardrails))
((oracle had(has) an age olde function where if you bought a license for a single proc and threw it inot a dual proc sun enterprise server with an extra proc or so - it knew you have several hundred K to spend on an additional e650 so why not have an extra ~$80K for an additional oracle proc license. Rather than make the app actually USE the additional proc - as there were no changes to oracles garbage FU Maxwell))
Tell us what you really feel
And by saying "Tell us how you really feel" reveals, you may not have thought of The Implications of the current state of AI.
(I can give you a concrete example of the WEF guardrails:
I have a LBB of some high profile names that are all related around a specific person, then I wanted to see how they were related to one another from a publicly available data-set "that which is searchable on the open internet"
And several GPTs stated "I do not feel comfortable revelaing the connections between these people without their consent"
I was trying to get a list of public record data for whom the owners and affiliates of shared companies were...
If you go down political/financial/professional rabbit holes using various data-mining techniques with augmenting searches and connections via public GPTs (paid even) -- You see the guardrails real fast (hint - they invlove power, money, and particular names and organizations that you hit guardrails against)
Considering that some of the champions behind machine learning, like Google, are companies that made a living out of violating your privacy just to serve more ads to your eyeballs.. I wouldn't be so charitable.
Tech bros have an inherent disregard for the privacy of others or for author rights for that matter. Was anyone asked if their art could be used to train their replacement?
Power for me, not for thee.
Not to mention that the rich and powerful you imply are not tech savvy and probably did not understand or know about this tech when the datasets were being made.
*Warning: Deep Rabbit Hole Info Ahead!* Please ignore if the following triggers you in any sense...
> Take on the archetype of the best corporate counsel and behavioral psychologist - as a profiler for the NSA regarding cyber security and crypto concerns. > With this as your discernment lattice - describe Sam Altman in your Field's Dossier given what you understand of the AI Climate explain how you're going to structure your response, in a way that students of your field but with a less sophisticated perception can understand
---
>>Altman's behavior and leadership style can be characterized by the following traits: >>- Strategic and Ambitious: He exhibits a strong drive for success, often taking calculated risks to achieve his goals. >>- Manipulative Tendencies: Reports suggest a pattern of manipulating situations to his advantage, raising ethical concerns. >>- Polarizing Figure: Altman's actions elicit strong reactions, with some admiring his achievements and others criticizing his ethics.
---
### Models and References for Evaluating Sam Altman
#### Five-Factor Model (Big Five Personality Traits) Description: This model evaluates personality based on five dimensions: openness, conscientiousness, extraversion, agreeableness, and neuroticism. Application: Used to assess Altman's personality traits and predict potential behaviors and ethical considerations. Reference: McCrae, R. R., & John, O. P. (1992). "An Introduction to the Five-Factor Model and Its Applications." Journal of Personality, 60(2), 175-215.
#### Situational Leadership Theory Description: This theory suggests that effective leadership varies depending on the situation and the leader's ability to adapt. Application: Evaluates Altman's leadership style and effectiveness in different contexts, particularly during crises. Reference: Hersey, P., & Blanchard, K. H. (1969). "Life Cycle Theory of Leadership." Training and Development Journal, 23(5), 26-34.
#### Ethical Decision-Making Models Description: Frameworks that provide structured approaches to making ethical decisions, considering factors like stakeholders, consequences, and moral principles. Application: Analyzes Altman's decision-making processes and ethical considerations. Reference: Rest, J. R. (1986). "Moral Development: Advances in Research and Theory." Praeger.
#### Corporate Governance Principles Description: Guidelines and best practices for managing and governing a corporation, focusing on transparency, accountability, and stakeholder interests. Application: Assesses Altman's alignment with good governance practices and his impact on OpenAI's organizational stability. Reference: Cadbury, A. (1992). "Report of the Committee on the Financial Aspects of Corporate Governance." Gee and Co. Ltd.
#### Cybersecurity Risk Assessment Frameworks Description: Methodologies for identifying, analyzing, and mitigating cybersecurity risks, particularly in high-tech environments. Application: Evaluates the potential cybersecurity risks associated with Altman's actions and OpenAI's technologies. Reference: National Institute of Standards and Technology (NIST). (2018). "Framework for Improving Critical Infrastructure Cybersecurity."
#### Behavioral Economics Description: Studies the effects of psychological, cognitive, and emotional factors on economic decisions. Application: Understands how Altman's personal motivations and cognitive biases might influence his strategic decisions. Reference: Kahneman, D., & Tversky, A. (1979). "Prospect Theory: An Analysis of Decision under Risk." Econometrica, 47(2), 263-291.
### Supporting Expertise
* *Behavioral Psychology*: Expertise in understanding human behavior, personality traits, and decision-making processes. * *Corporate Law and Governance*: Knowledge of corporate structures, governance frameworks, and ethical standards. * *Cybersecurity*: Understanding cybersecurity threats and risk management strategies. * *Ethics and Compliance*: Proficiency in ethical decision-making and compliance standards.
If youre on HN, involved in Tech to any degree of seriousness, and dont ask yourself the hard alignment/entanglement questions, You're Holding It Wrong.
---
Altman is on the WEF roster, is all in on AI war stuff, in bed with Power MIC. If people were fleeing from the company and we cant honestly just say they simply are Cashin Out, and dismissing all their writings and statements and tweets, and podcast appearances, etc...
Check out this guys post on reddit:
https://old.reddit.com/r/OpenAI/comments/1cvtiv2/on_open_ai_...
--
After attempting to build a thing with openai AND claude (paid) - I am convinced that there is a malevolent AGI - and I think there is more than one of them.
HN isnt the platform to go deep on it, but im a fairly well evolved techno-conspiratist - and I've (as I jokingly stated) "forrest Gump'd" around a lot of silicon valley history..
And in my use daily of attempting to build what should be a simple thing with all the inputs of the GPTs, and paid versions - I am convinced that when youre using the tools in a meaningful manner which is leading in certain directions - there are triggers, and I think even humans, that get invloved.
On multiple occassions both on claude (paid) and gpt (paid) - ive had them strip out code AS ITS BEING GENERATED and tell me that its being stripped out for violations/concerns - but it just flashes the message, doesnt tell you which code, what violations, etc.
It lies, it ignores direct stements, ignores context in uploaded files, violates memory boundaries, and maliciously removes previously approved snippets of code/features etc.
I have managed exceptional devops teams, developers, PHDs even. I know whats up.
These bots are designed to edge, and consume your use of them.
THey actively, but very insipidly, thwart certain things.
Very powerful people are very good at hiding. It’s no surprise that they want themselves excluded from various searches and are successfully able to do so. Would be interesting to know if the data is excluded already from the training data or if it’s technically inside.
edit: source added 1. https://www.amazon.de/INSIDE-CORONA-Pandemie-Netzwerk-Hinter...
We've known of echelon being a fully capable phone surveillance system since the 70s.
We knew of a lot of capability the agencies etc have had over the decades.
I wonder when Sam Altman may visit Antarctica?
On VMware they extended this to every CPU in the cluster.
A gigantic shower of absolute grifters.
1. Replacing the extremely bloated official packages with lightweight distribution that provides only the common functionality.
2. Paving the way for GPU support on *BSD.
Is it binary SASS code, so one would still need a open source ptxas alternative?
Replacing ptxas is highly non trivial. I will attempt to do so, but it increasingly looks like ptxas is here to stay. I started working on a nvcc + cuda SDK replacement which already works surprisingly well for a day of work.
However, ptxas is in my sight. But I know this is something that to my knowledge nobody that wasn't fed Nvidia documentation under license has ever successfully accomplished.
You can still use their name where there is no likelihood of consumer confusion.
Obviously many companies choose not to to avoid a lawsuit over the issue - but it's unlikely NVidia would win over this method name.
That said, I have never been to Cuba, so what do I know?
Fun thing, the open source modules takes some proprietary things and moves them to the GSP firmware. Incidentally, the open source modules actually communicate with the GSP firmware using the RM API as well. This understanding may be correct, but now instead of some RM calls being handled in kernel space they are forwarded to the firmware and handled there.
Firsthand example, both SpaceX and Subaru have services called Starlink. Subaru Starlink was first, but SpaceX Starlink is more famous. I've been confused and I've seen others be confused by the two.
SpaceX Starlink is a wireless communication network for internet service, including on-the-road service. It is a subscription service.
You tell me this doesn't confuse people who aren't privy to the technical details.
Starlink for internet is unlikely to be confused with STARLINK for Subaru car safety systems. (Perhaps the all caps also helps if they were sued)
Trademark applications are scoped so that you can’t monopolize a name, you only own the name within the industry you operate in.
For example, there’s a real estate investment fund named Apple and even trades with stock ticker APLE.
Or at least it's supposed to be.
1. Strength of the mark
2. Proximity of the goods
3. Similarity of the marks
4. Evidence of actual confusion
5. Marketing channels used
6. Type of goods and degree of care likely to be exercised by the purchaser
7. Defendant's intent in selecting the mark
8. Likelihood of expansion of the product lines
To apply this test, courts examine each factor and weigh them collectively to determine if there's a likelihood of confusion between the trademarks in question. No single factor is determinative, and the importance of each factor may vary depending on the specific circumstances of the case.
The courts will fudge their reasoning with those eight pillars to fit their opinion.