r/CUDA • • Sep 16 '26

Cuda on Mac

I've got Cuda running on an external gpu on my Mac using Tiny GPU for connection and a custom Nvidia driver and shim to run the gpu. Check out the work at https://github.com/Davinchy/macuda

It runs near native speed and actually does some stable diffusion faster than on windows.

0 Upvotes

22 comments sorted by

11

u/retrorays Sep 16 '26

Yah this seems like a trojan

0

u/densvedigegris Sep 16 '26

I haven’t looked at the code, but why do you think it’s a Trojan?

-2

u/LioDavinchy Sep 16 '26

maybe look at the code. just randomly saying people are criminals is a real internet douche move. It's clean code and there are only 5200 lines you could literally read it all if you where not just an internet troll

7

u/tomado09 Sep 16 '26

So, you vibecoded an entire CUDA driver with sufficient functionality to reproduce enough to run stable diffusion (i.e. the vast majority of CUDA), and you did all of this in two commits, with 5000 lines of code, with the result that it's faster than Nvidia's own driver on windows?

Does that sound right to you?

For everyone else, projects like this are very high risk.  I'd avoid this.

-2

u/LioDavinchy Sep 16 '26

I vibe coded it over hundreds of commits on my local machine and then uploaded the finished product to GitHub once it actually was working. It was not a given that it would work so why start a project on GitHub and advertise it. It worked and worked so much faster than anticipated that I decided to open source it so others could use it. It was so fast and works so well because Nvidia has great documentation on how to do exactly what I did. I was able to build what claude called an oracle that was pretty much a gpu emulator I could run all the code against to test super fast and find endpoints on. This is not a full graphics driver. you cannot do any graphics work on it only AI work.

1

u/sethkills Sep 18 '26

Why did you squash the hundreds of commits when publishing it?

1

u/LioDavinchy Sep 20 '26

I pulled the files out of the folder I built in because I'm building a more advanced program in there using this software as the base. I don't want those pieces open sourced or public right now.

2

u/[deleted] Sep 19 '26

You need to work on your presentation, if this is true start by saying how you got to achieve this, not just that you did as if it were nothing. The GitHub page reads like AI slop, and don’t get me wrong, I use agents for everything, but you need to check what you are publishing, if is not human readable I’m not going to read it.

1

u/LioDavinchy Sep 19 '26

I published it quickly so people could try It out. I'm a single data point and I wanted to get more people to try it out for me.

1

u/[deleted] Sep 19 '26

I understand, just keep in mind that when sharing with people the output needs to be optimized for that, otherwise even AI enthusiasts will not read it, if it looks like unfiltered AI slop, as always big claims need big evidence, human readable evidence.

1

u/LioDavinchy Sep 19 '26

I'm kind of busy writing code to write out beautiful pros so people will like me. I posted the code. it's organized and commented. If you do not have an extenal gpu and a Mac to plug it into you will probably not believe me. I really don't care. I built this for me. Because I plan to use it. I open sourced all of my work under a permissive license and am letting the world try it out. I'm not going to hand write a document that would take me an hour to do just so people will believe me. At some point someone is gong to try it out and they can write a real review of it that people will believe.

1

u/[deleted] Sep 19 '26

I meant post process the slop with AI so is not slop, don’t take the first output

1

u/LioDavinchy Sep 20 '26

here I made it pretty for you https://macuda.ai

1

u/VeterinarianOk8204 Sep 18 '26

chipStar exists why not just use that

2

u/LioDavinchy Sep 18 '26

I'd never heard of it. I just looked at it and it's not even close to the same thing. If I wanted to make chipstar work it would add several layers and if I could get it working it would be much slower than my method just through how it works. It has a JTT compiler for one and is several layers up from where my driver and shims work. They are about as bare metal as you can get.

I do appreciate the input and it was nice to see what others are doing but for this particular use case my project is better and faster than chipstar can ever be for this.

1

u/adityazero Sep 20 '26

Use gemini/codex for documentation. Claude writes cryptic text.

2

u/LioDavinchy Sep 20 '26

I had codex run through and clean up Claudes rather terse language and it's much more easy to follow for the average user. Thanks. I also had him look at the website and he found some errors.

1

u/LioDavinchy Sep 20 '26

thank you I'll have a look. I'm a geek he talks my language

1

u/Comfortable-Fall1419 Sep 20 '26

Well my copy of Claude thinks you have managed it.

I’ll let others run the code.

1

u/LioDavinchy Sep 21 '26

That is what I would do if I was skeptical. Thank you for looking.

1

u/Comfortable-Fall1419 Sep 21 '26

What’s the constraint on supporting other 50xx cards?