#asahi-gpu · 2022-08-16 15:34
mort_compute is just part of the normal vulkan API, right? So if vulkan gets sorted out, won't that kind of take care of compute?#asahi-gpu · 2022-08-16 15:33
danielslina: yeah, they still go through the 3D queue iirc#asahi-gpu · 2022-08-16 15:33
linaI might've missed something#asahi-gpu · 2022-08-16 15:33
linadaniels: Huh, last week I was looking at the kernel driver and I think the compute queue was not used? Or is that going through the 3D ones?#asahi-gpu · 2022-08-16 15:17
danielslina: (ah sorry, I didn't spot the subtlety of compute vs. CL - core compute support is there, it's just not hooked up to Clover because Clover ... rusticl ftw!)#asahi-gpu · 2022-08-16 15:16
danielsChainfire: Metal on Linux isn't a thing#asahi-gpu · 2022-08-16 15:16
ChainfireThis may perhaps be silly question, but would it be easier to support Metal than OpenCL ?#asahi-gpu · 2022-08-16 15:13
danielslina: Panfrost does have compute#asahi-gpu · 2022-08-16 15:13
ChainfireI care more about it than graphics :') But I have neither the time nor the relevant experience to work on it, at least short term. Either way, that's good to know, thanks.#asahi-gpu · 2022-08-16 14:41
linaIt's not especially hard or anything as far as I know, but it's something someone needs to explicitly pick up#asahi-gpu · 2022-08-16 14:40
linaNot even Panfrost has compute yet...#asahi-gpu · 2022-08-16 14:39
linaCompute needs someone to care about it... I could work on adding kernel support, but without someone to first work on the OpenCL side in Mesa, that's not very useful ^^;#asahi-gpu · 2022-08-16 14:33
Chainfirelina> will this open the gates for compute as well, or is that something again far beyond graphics?#asahi-gpu · 2022-08-16 14:22
linaBy the way, for those who missed it, I'm going to stream starting the actual GPU driver tomorrow ^^#asahi-gpu · 2022-08-16 14:06
mort_shows a deep philosophical difference between myself and whatever company or community is behind D I suppose#asahi-gpu · 2022-08-16 14:06
mort_sort of like how C#'s closed source history would make me unlikely to choose it even if there are open-source implementations of it today#asahi-gpu · 2022-08-16 14:05
mort_I never looked at dlang really, the fact that it was pushed so hard while the compiler was closed source really left a bad taste in my mouth#asahi-gpu · 2022-08-16 13:46
ChainfirePython is slow, yes, certainly much too slow for domains like drivers. But its expressiveness and resulting development speed (if used correctly - like any dynamic language you can really shoot future-self in the foot) makes it prime for productivity where man-hours are worth much more than CPU cycles#asahi-gpu · 2022-08-16 13:32
opticronmostly for the same reasons you're discovering :D#asahi-gpu · 2022-08-16 13:31
opticronDlang is my favorite hobby language and python is a close 2nd#asahi-gpu · 2022-08-16 13:23
linaAnd easy to benchmark, so it can also answer some questions about Rust vs. C performance#asahi-gpu · 2022-08-16 13:23
linaIt's a pretty good PCIe guinea pig driver#asahi-gpu · 2022-08-16 13:23
linaYes, the folks writing the NVMe driver are working on PCIe and DMA abstractions too as a side effect#asahi-gpu · 2022-08-16 12:52
_jannau_and have a simple enough driver to prove the bindings work#asahi-gpu · 2022-08-16 12:27
svenhrm.. thinking about it some more you'd gain some rust bindings for common kernel apis like DMA#asahi-gpu · 2022-08-16 12:23
sventhat being said, i'm not sure you'd gain much from writing it in rust#asahi-gpu · 2022-08-16 12:22
sventhe kernel driver is just very complex because it has to support all the random broken hardware out there and because it has to be fast#asahi-gpu · 2022-08-16 12:22
svenand yet it's spread very widely#asahi-gpu · 2022-08-16 12:21
svennvme is simple enough, you can write a driver in <1000 lines#asahi-gpu · 2022-08-16 12:21
Sobek[m]Any reason why NVMe is a prime target for rust drivers ?#asahi-gpu · 2022-08-16 12:18
_jannau_Sobek[m]: nothing beyond https://lore.kernel.org/rust-for-linux/CANiq72=L3soKyYPVu4pm0qzUrj7ovYfyXNGQJU1r0AAhXA63aA@mail.gmail.com/T/#m011e38cb8290531fe19aaa83d0903722959d7ee0 in public as far as I'm aware#asahi-gpu · 2022-08-16 11:50
Sobek[m]Do you have any pointers at that NVMe effort out of curiosity ?#asahi-gpu · 2022-08-16 11:39
mort_for a monolithic kernel with way too much ring 0 code, rust truly seems like a good to dramatically reduce security bugs#asahi-gpu · 2022-08-16 11:37
linaYeah, the first large driver, though people are working on reasonably nontrivial drivers like NVMe too.#asahi-gpu · 2022-08-16 11:37
mort_it will be the first major test of Rust in the kernel, right? Everything else seems to mostly have been proof of concept stuff unless I've missed something#asahi-gpu · 2022-08-16 11:36
linaI hope the DRM folks like the idea ^^;#asahi-gpu · 2022-08-16 11:36
linaThanks!#asahi-gpu · 2022-08-16 11:36
linaSpend an hour or so to get fancy color-coded nested GPU structure diff displays, that sort of thing...#asahi-gpu · 2022-08-16 11:36
mort_great work on that by the way! I hope the rewrite in rust goes as smoothly as it can#asahi-gpu · 2022-08-16 11:35
linaYeah, hah. Though on the flipside, you can do some really crazy things with the object model. It was perfect for prototyping the GPU driver for that reason.#asahi-gpu · 2022-08-16 11:34
mort_but it makes sense, when you consider that operations which in low-level languages are literally a single register-register instruction is at least a hash table lookup or two lol#asahi-gpu · 2022-08-16 11:33
mort_python is extremely surprisingly slow#asahi-gpu · 2022-08-16 11:33
linaThat was a bit of a revelation, because in C that would've taken much more code, and in Python it would've been way too slow...#asahi-gpu · 2022-08-16 11:33
linaWhen I was using D it was a bit scary, because I was writing algorithms the same way I'd write them in Python for experiments, even poorly optimized textbook O(n^2) stuff... and then the app kept running at 60 FPS.#asahi-gpu · 2022-08-16 11:33
mort_it's my go-to tool for natural language processing stuff but it's really bad at that tbh unless all you do is use libraries which have the inner loop in C#asahi-gpu · 2022-08-16 11:32
mort_yea..#asahi-gpu · 2022-08-16 11:32
linaPython is actually pretty good at moving bulk data around, but the moment you need an inner loop, it does kind of fall apart...#asahi-gpu · 2022-08-16 11:31
mort_the same would work for most other languages but not for JS sadly, since that has a much more limited address space it seems#asahi-gpu · 2022-08-16 11:30
mort_I found python nice to work with actually when dealing with giant data sets, it's surprisingly effective to just give yourself a ton of swap space and store all your data in python's built-in datastructures, since then you get pretty good powerful disk-backed but RAM-cached datastructures for free#asahi-gpu · 2022-08-16 11:28
linaI think it's going to be my go-to language for things that I'd write in Python but I need better performance for