94 ms·
The first conformant M1 GPU driver
- modeless 3y agoConformance is not easy. Congratulations!
- perteraul 3y agoSuper impressed by the whole Asahi Linux project - and this takes it a big step forward.
- naillo 3y agoThis blog is a real gem.
- matthew-wegner 3y agoWhy is M2 Ultra support missing? I'm curious more than anything--lack of developer hardware? Something technical? "The Khronos website lists all conformant implementations, including our drivers for the M1, M1 Pro/Max/Ultra, M2, and M2 Pro/Max." Edit: Interesting that so many people are downvoting this. I'm not complaining; I didn't know, so I asked a question. Seems like the answer is that it's too new, especially with the 30-day conformance review period on top.
- valine 3y agoFor what it’s worth M2 Ultra is the newest chip in the Apple silicon lineup. It was only introduced last June.
- pantalaimon 3y agolooks like bring-up was only two weeks ago https://www.youtube.com/watch?v=EQAE13sZlsY https://www.youtube.com/watch?v=EQAE13sZlsY
- 2OEH8eoCRo0 3y agoIt's missing because Apple doesn't release drivers or upstream the drivers so it's on hobbyists to reverse engineer them.
- matthew-wegner 3y agoWhat do you mean by "upstream" in this context? https://github.com/apple-open-source/macos https://github.com/apple-open-source/macos ? Something else?
- freedomben 3y agoYou're being downvoted because people assume you're making an implicit criticism with your question, and many people tend to assume the worst intent rather than the best intent like they're supposed to. Fortunately it usually balances out after some time. Adding a clarification like you did is the correct thing to do (and always a good idea, especially in a text forum).
- matthew-wegner 3y agoRight, but that clarification was pre-edit? I'm aware of people's sensitivity to putting demands on efforts like this, which is why I tried to frame it as the genuine curiosity it is. This sort of low-level work is out of my depth. Is there painstaking probing to find different addresses/states between a Max and an Ultra? The M2 Ultra has two GPU variants (60-core and 72-core), although the Pro and Max also have GPU count variants. Are those transparent from this OpenGL driver's point of view? Or is there timing/dispatch work involved? Hence the question! I would have made an explicit criticism if I had one. I implied nothing, but I realize that has no bearing on what the reader can or will infer...
- freedomben 3y agoYes I would have put it in the original (pre-edit), but better late than never :-) Yeah I've never done GPU driver hacking so I can't answer your question with optimal specificity, but there's always something new. It's usually (but not always) backwards compatible, but Apple is a special case since they are their only supported customer. That means that they can iterate very fast with flagrant disregard for backwards compatiblity (I don't necessarily mean that in a negative way, it can be great for development/progress), and it means that any changes they make have to be reverse engineered by setting debug breakpoints, examining state, signals, etc to try and figure out what they changed and how it works now. It's a truly monumental undertaking.
- Dylan16807 3y ago> Yes I would have put it in the original (pre-edit), but better late than never :-) Huh? The clarification is in the original (pre-edit). It's the second sentence. "Right, but that clarification was pre-edit?" wasn't a hypothetical, it was making a claim.
- eyelidlessness 3y agoI didn’t downvote you, and I understood your meaning clearly. I think people might read “why is ___ missing?” and skip over the rest, assuming the question represents an expectation.
- xiphias2 3y agoIt's quite expensive, so my guess is the same as yours: lack of developer hardware
- solardev 3y agoAs a user, what does this mean? Are there games that still target opengl?
- sspiff 3y agoYes, quite a few Linux games still run on OpenGL, even recent ones[1]. Most support Vulkan as a backend as well, and this would be preferred once supported on MacOS, but that is still a work in early stages of progress. [1] One example is the Clauswitz engine from Paradox Development Studio, which is used in all their games.
- valine 3y agoIt means general support for hardware acceleration in linux. OpenGL is used more places than you would think. Switch to software rendering and you’ll immediately see the difference just navigating the OS.
- pacifika 3y agoSecondLife
- jwmcq 3y agoSurprisingly there has not been a rush to go back and update multiple decades' worth of games to use newer rendering APIs.
- solardev 3y agoI was more hoping this would open up another pathway (in addition to Crossover 23 and GPTK) for Apple Silicon computers to be able to play modern games. Doesn't sound like that's the case.
- nicce 3y agoI have found GeForce Now perfect for the Apple’s new devices. Since the client is native code, you don’t even notice that game is running in cloud. And <10ms latency, at least for me. And you can play 7 hours in battery the best graphic games out there, with 1000nit display…
- cobrabyte 3y agoIt was fun to watch the livestreams showing the development of these drivers. Amazing work.
- btown 3y agohttps://www.youtube.com/c/AsahiLina https://www.youtube.com/c/AsahiLina for those who aren't aware - some of the most incredible low-level programming work I've ever seen!
- 4gotunameagain 3y agoIf only it weren't obscured behind unbearable levels of anime cringe. I guess I'm getting old.
- vGPU 3y agoIt’s just part of the “coder” subculture these days. To quote @SwiftOnSecurity: “I said that all furries are programmers. I have been contacted and am issuing a correction. There are three furries who are not programmers.” https://x.com/swiftonsecurity/status/511043756788043776?s=46 https://x.com/swiftonsecurity/status/511043756788043776?s=46
- zbentley 3y agoShrug. It's certainly unusual by the standard of programmers-as-geeky-yet-professional-folks, which is what most people expect these days. However, programming has, for most of the last 60 years, attracted many people from the weird, misfit, or cringe-du-jour segments of the population. This is nothing new; plenty of hackers in the '80s and '90s had public personas that were weirder than this.
- meragrin_ 3y ago> plenty of hackers in the '80s and '90s had public personas that were weirder than this. And they are?
- 3y ago
- lemper 3y agorosenzweig's drive and passion is enviable. I just hope that burnout won't come to her way. she's still have a long road ahead, yeah.
- bsaul 3y ago"Of course, Asahi Lina and I are two individuals with minimal funding. It’s a little awkward that we beat the big corporation…" Love the euphemism. This puts Apple to shame, plain and simple. They obviously don't care about standards, or compliance, because they like people to be walled in their own little private garden (still waiting for the facetime standard, or any kind of cross-platform technology created in the past 10 years). If i weren't an iOS dev, i would have ran away from the apple ecosystem a long time ago. I love their hardware, and loved the brand back in the 80s and 90s when apple was about creativity, putting humans first before machine, etc. But what this company has become is just a corrupted mess of greed behind a curtain of politically correct marketing videos.
- deleted 3y ago[deleted]
- jolux 3y agoApple ended up in a battle with a patent troll over FaceTime, which could be part of why it hasn’t been opened up.
- seeknotfind 3y agoLol. It's intentionally closed, so network effects can drive usage. Common Apple strategy, straight from Jobs.
- jolux 3y agoJobs is the guy who claimed they were going to make it an open standard originally.
- selectodude 3y agoJobs just added that to the keynote presentation after running it past nobody.
- 3y ago
- blindfolded_go 3y agoFantastic work, must really applaud the Asahi Linux team for their commitment and sheer competence.
- htk 3y agoAsahi and Alyssa are the titans of reverse engineering. Their work is pretty unbelievable. I would bet Apple is planning to hire them, or has tried already and they refused.
- Foobar8568 3y agoI bet Apple already tried and they refused due to NDA and non compete clauses, that or HR didn't validate their profile.
- andrewmcwatters 3y agoToo many people involved in technical hiring, and too many pointless interviews. It's likely anywhere they went to interview, the people there would have no idea how good they were in the first place.
- hoosieree 3y agoWhat a waste of talent... why accomplish things in real life when you can grind leetcode to give the appearance of being able to accomplish things? /s
- catchnear4321 3y agowhy bother appearing to accomplish anything when one could just opine anonymously on the interwebs?
- dan-robertson 3y agoIf I were in their position then maybe applying to random jobs wouldn’t be the right strategy. Instead either ensure you have enough contact information available for leads to come in, or reach out to connections at companies to get warm introductions. It won’t work everywhere but it needn’t work everywhere.
- IshKebab 3y agoYou also need soft skills to work in a company. There are lots of people in the open source world who are technically brilliant arseholes. Not saying that's the case here; just that "amazing programming" doesn't necessarily mean "Apple wants to employ them".
- leedrake5 3y agoI assume that this primarily benefits games and not any deep learning right? The most attractive aspect of Mac M1 is the huge memory boost. Might not be great for training due to the inability to distribute across multiple cards, but it makes for a great inference engine for stable diffusion, llama, and other large models.
- thangngoc89 3y agoCorrect. You need CUDA, or ROCm, MPS (native to macOS) backends for running deep learning. I found it relatively easy to train some Pytorch model on beefy server with CUDA and running interference on my Macbook Air.
- astrange 3y agoMPS is a Metal shader library rather than a programming language, which would be MSL (like GLSL/HLSL).
- simlevesque 3y agoThey're referring to this: https://pytorch.org/docs/stable/notes/mps.html https://pytorch.org/docs/stable/notes/mps.html
- zamadatix 3y agoThe compute shader portion is a good step but it's still not going to provide the interfaces most of these deep learning tools expect. That said eiln wrote an ANE (Apple Neural Engine) driver which enables using the dedicated hardware for this instead of the GPU. It is set to be merged into linux-asahi in the future.
- robert_foss 3y agoTensorFlow Lite does indeed support OpenGL ES.
- segfaultbuserr 3y agoThere are two modern cross-platform GPGPU standards that Apple Silicon can theoretically use or implement - SYCL and Vulkan Compute. SYCL is Khronos Group's vendor-neutral, high-level programming framework. Application support is limited, but hopefully with Intel's backing, the situation would gradually improve. Meanwhile, Vulkan Compute sidesteps the entire headache with compute shaders. But I'm not familiar with it in terms of application support. SYCL can be implemented on top of OpenCL and OpenCL's SPIR-V extension. It soon turned out that this route is unfeasible due to prevalent vendor lock-in that's not going to change anytime soon, so it has largely been abandoned by everyone else but Intel and Mesa. Right now SYCL is usually implemented by backends to GPU vendor's respective APIs, like ROCm, HIP or CUDA. Doing the same for Metal would be very challenging. Mesa already has experimental support of OpenCL w/ SPIR-V on Intel and AMDGPU, so theoretically it can be extended to Apple Silicon. Difficulty of implementing OpenCL's SPIR-V extension should be comparable with Vulkan compute shader (which also uses SPIR-V). However, currently OpenCL on Apple Silicon is entirely unsupported. The last time I checked, it's on the roadmap.
- 2upmedia 3y ago[flagged]
- klausa 3y agoPlease don't do this.
- fhools 3y agoThey are doing such good work. That was amazing to read and I learned something about finding hidden instructions by thinking about how a HW engineer would encode bits.
- Aissen 3y agoWow, very interesting that mesa can now emit an instruction (and use a hardware feature) that even Apple's GPU driver does not support.
- lifeinthevoid 3y agoExtremely impressive!
- wing-_-nuts 3y agoSo, dare I ask, how does the performance of this driver compare to native? I mean I know this implements some functionality that the native driver does not, I'm just curious how they compare apples to apples?
- xet7 3y agoIt is native GPU driver in Linux kernel.
- andrewmcwatters 3y ago> Unlike ours, the manufacturer’s M1 drivers are unfortunately not conformant for any standard graphics API, whether Vulkan or OpenGL or OpenGL ES. That means that there is no guarantee that applications using the standards will work on your M1/M2 (if you’re not running Linux). This isn’t just a theoretical issue. Consider Vulkan. The third-party MoltenVK layers a subset of Vulkan on top of the proprietary drivers. However, those drivers lack key functionality, breaking valid Vulkan applications. That hinders developers and users alike, if they haven’t yet switched their M1/M2 computers to Linux. This becomes very obvious to anyone who has to debug now-deprecated OpenGL apps in macOS, because the abstraction layers do not actually expose OpenGL state in ways that old Apple OpenGL debuggers can read. Which means unless you still have old Macs, with old versions of macOS installed where OpenGL is not Metal under the hood (I can't even remember the last version where that was true) then it's literally not possible to debug OpenGL on macOS anymore using stock debuggers. Your debugger and or app will just crash.
- mastercheif 3y agoMy blood pressure just drove up reading this.
- alberth 3y agoFor clarity, this isn't the first conformant linux drivers. Apple themselves are not conformant to OpenGL® ES 3.1. So this is literally the first conformant OpenGL ES 3.1 drivers for M-Series, for any operating system (Apple or Non-Apple). Hence why the call to action to donate to the team. https://asahilinux.org/support/ https://asahilinux.org/support/
- anentropic 3y agoMakes me wonder... is it possible to use this from macOS?
- klausa 3y agoCan you use Windows drivers for your GPU on Linux?
- bravetraveler 3y agoWith a cursed ndiswrapper fork, perhaps :D I jest, but using drivers from another OS has happened
- zamadatix 3y agoIntel did. Obviously there is more to it than just setting a different target and hitting compile but it's also not a ridiculous question because of that measure alone. It'd require enabling reduced security mode to load kexts or a custom kernel as well as a good amount of additional code for interfacing it with the macOS kernel interfaces but the majority of the code would be reused. Not trivial by any measure but also not an unreasonable approach in terms of total effort to get a working driver. I'd be very surprised if anyone was interested in doing all that work given the security limitations and ability to just use Linux. Edit: I forgot Metal is actually a userspace driver, you don't need to mess with the kernel side... though I can't remember if you still need to lower security to poke the right areas.
- klausa 3y ago
- nla 3y agoWay to go Alyssa!!!!! I knew you were going to get this done!
- nla 3y agoSomeone should ping Tim and let him know Alyssa is not working at Apple for some strange reason.
- darthrupert 3y agoWhy do people want her to stop working on Asahi so much?
- paines 3y agoApple is not Google. She could hack on OSX AND Linux(in sparetime)
- darthrupert 3y agoEven if that was true, most probably but she wouldn't. But who knows, perhaps she might. I don't claim any privilege to her decisions, just offering probabilities around human endurance.
- ok123456 3y agoHow do you know they're not?
- xbar 3y agoThank you A. Rosenzweig.
- Waterluvian 3y ago> Of course, Asahi Lina and I are two individuals with minimal funding. It’s a little awkward that we beat the big corporation… Is the big corporation even racing you? Does it care? What devs and superusers want is regularly at odds with what makes sense for the actual business cases of a product. I want all these things, too! But I recognize that it doesn't happen because what I want fails to make a solid business case, not because Apple is somehow incapable of writing an OpenGL driver for their own hardware. If I'm in charge of the resourcing that could be committed to broader graphics standards support for M1/M2, what is the concrete (not hypothetical) case one can present to sell me that this is the right thing to focus on? I won't pretend to have the answer to this. There may very well be a very strong case to make. But it just doesn't quite feel right how I notice, on a daily basis, this lack of exploration or even just appreciation of all the factors and constraints that exist outside the technical portion of the problem. Maybe I'm just sensitive to this kind of issue because I feel this pain often at work.
- deleted 3y ago[deleted]
- lamontcg 3y agohow close are we now to being able to plug in an eGPU into an Apple Silicon device?
- fulafel 3y agoIt might just work, eg here's a tryout on another arm platform where it seemed chipset bugs were the main problem : https://www.jeffgeerling.com/blog/2022/external-graphics-cards-work-on-raspberry-pi https://www.jeffgeerling.com/blog/2022/external-graphics-car...
- mschuster91 3y agoThat's two completely different things. I'm not even sure if the required hardware elements for eGPU - namedly, a "back transport" of rendered frames via Thunderbolt and shuffling them directly to the screen - are there on M-series machines.
- zamadatix 3y agoUsually you plug the eGPU into a monitor directly instead of backfeed it to the built in display. The bandwidth is already low enough without showing rendered frames back across the link too. There are some limitations on the PCIe/Thunderbolt but Marcan has written a few times he thinks it may be possible though probably not worthwhile from a performance perspective. Of course even base thunderbolt is a WIP at this point so that answer could always change.
- cp9 3y agoalyssa and asahi lina are both geniuses, it's unbelievable
- Bluescreenbuddy 3y ago"Of course, Asahi Lina and I are two individuals with minimal funding. It’s a little awkward that we beat the big corporation…" While I'm glad they did this, and it's a crazy fucking accomplishment, it's not really a beating. It's just Apple doesn't care. They were never in the race to begin with.
- mirekrusin 3y agoThis is reality-bending class of achievement without any random-luck help, just pure attention. Incredible.
- misterdata 3y agoNot a single mention of the word ‘Apple’ in the original post, instead ‘the manufacturer’ and ‘the big corporation’.. curious if that is deliberate and if so what the reasoning is (legal?)
- ohgodplsno 3y agoPresumably, because this isn't about Apple. They don't care about Apple. Merely about getting the M1/M2 arch to run Linux properly. It could have been Microsoft, Amazon, Google, treatment would have been the same.
- circuit10 3y agoBut they did refer to them but used strange phrasing to do it
- shmerl 3y agoEat that, Apple.
- deleted 3y ago[deleted]
- mike_hock 3y agoDo we know that there aren't some iterations of the hardware that lack the shuffle instruction? It seems a bit odd that the official compiler fails to emit the instruction.
- zamadatix 3y agoAmazing work. Congratulations to Alyssa, Lina, an the Asahi team. This is some hard core hacking!
- deleted 3y ago[deleted]
- LoganDark 3y agoI love this. Finding an unused/undocumented instruction to interleave bits extremely simply :)
- nwellinghoff 3y agoI really wish nerds would stop supporting Apple hardware and software. It is so closed and everything is a giant pain. Its one thing for the average non-techie that does not want to do anything advanced and just wants to swallow the blue pill. But for an actual techie to support a system that is the antithesis of general purpose compute...Can you even be considered a true techie anymore? I just don't get it.
- kaba0 3y agoHow is it any more of an antithesis, than HP, Dell, Lenovo.. etc?
- AnonMO 3y agoWhen you realize the world isn't strictly dividen it categories such as blue or red. you might begin to understand why people do what they do. also let me ask you a question since you're obviously for free and open source. how much have you contributed to riscv development or donated to move their cause forward? are you actively maintaining any open projects? because if you read the post the authors stated that they are small with limited funding which is the case for most open source projects.
- nwellinghoff 3y agoWho are you responding to? By closed I meant they artificially restrict you from doing things in the name of selling more devices. Like running VM clusters for testing unless you run it on "apple hardware" when there really is no requirement. Removing support for 3rd party GPUs. Having to buy a million dongles that use proprietary connectors (not really a problem anymore). Limiting what you can control at the OS level. Not letting you run what you want. The list goes on. I obviously think what the asahi linux team has done is bad ass. Just think us nerds have to force ourselves off the tech giants or the end result will likely be; you won't be able to easily buy something you actually control.
- okamiueru 3y agoA lot of dev companies force their employees to use bacbooks in part as a result of their locked down practices and the only way to actually compile and test for "everything", because of how much easier it is to cross compile to other platforms and markets. For that reason, I've personally had to use a M2 for a week now, and I find the experience unpleasant. The OS feels old and cumbersome. I had flashback to a time long ago when I needed to install custom apps in Windows for some basic functionality that's been built in gnome. Things like "alt + tab" actually bringing an app to the foreground, instead of prioritizing the minimized state. Why this deliberate action would have seemingly no effect is correct, I'm sure will be defended. Global shortcut to start up a terminal? Install a third party utility is probably the easiest. Want to place windows on the screen? Install a third party utility. Better screenshot functionality? Install a third party app. Change the default shell to a custom one? First you got to figure out how to access the root system through finder to actually find the executable. It goes on and on. And the performance is much worse than what I've become used to. The only thing it actually has going for it, which I believe is great, is battery life. But, that's it. I'm just glad I was able to disable the app validation check, because it had literally prevented me from installing a lot of third party software, and the suggested workarounds had no effect. Just the fact of phoning home every time run an executable makes me nauseous. I wonder how often the homebrew team get offers to add malware, because the checks there seem woefully insufficient.
- softfalcon 3y agoI wonder if support for OpenGL, Vulkan, etc will improve now that Apple is partnering with nVidia, Adobe, Autodesk, Microsoft, etc around the OpenUSD rendering/animation/CAD/3D-scene format? Considering the whole schtick of OpenUSD is "one file format that renders consistently everywhere" (paraphrasing), I would be surprised if Apple doesn't use it as a means to cement more 3D software vendors into macOS land. It's really hard to render consistently if the underlying drivers are all wonk and proprietary. I am curious to see how this plays out. In my mind, there are two options: 1. Apple conforms to the existing standards of OpenGL and Vulkan we see gaining steam for many film and game production pipelines. 2. Apple tries to throw its weight around and force devs to support their Metal standards even more, ultimately hoping to force the world onto Metal + macOS. My heart hopes for option 1, but my gut tells me Apple is going to push for option 2 with all the might it can muster. In my experience, Apple doesn't like any standards it doesn't control with an iron fist (not really saying much about Apple here though... nVidia, Autodesk, Adobe, and Microsoft are all the same). The next couple of years are going to be interesting for sure!
- gumby 3y ago> In my experience, Apple doesn't like any standards it doesn't control with an iron fist I would add some nuance to this statement: "Apple likes open standards when it is weak." The iMac and early OS X went big on open standards, and Jobs made a point of pointing this out: USB for the iMac, JPEG, MPG, mp3, Postscript etc for OSX. IP/TCP built in. They even paid the danegeld for .rtf. Then as they clawed their way back from the precipice, they started "adding value" again. The iphone was an HTML device, loudly repudiating the proprietary (and terrible) Flash much less the crappy, mostly stillborn "mobile HTML" attempts. You still get H.264, matter/threads, and other standards they don't control, where they don't have market power.
- colechristensen 3y ago> "Apple likes open standards when it is weak." Everyone does. AMD is the same. The market leader focuses on features, the runners up try to take them down with openness. The competition is good for consumers, but the motivation is one of self-interest, not the common good.
- fsiefken 3y agoNow if Steam and SteamVR compile to ARM, VR on a M1 might be a possibility!
- zamadatix 3y agoWould need the Vulkan driver for SteamVR on Linux.
- johnnyAghands 3y agoHuge!!
- ta8645 3y agoHave been eying a MacBook Air 15-in (M2), and wondering on the possibility of running Linux on it. Anyone had success, or failure, on doing this themselves? And, how hard will it be to port this M1 GPU driver to the M2?
- gorbypark 3y agoI am running Asahi on a 13” MacBook Air M2. The only real show stoppers are that the speakers and sleep/hibernation don’t work. Otherwise completely usable. WiFi, Bluetooth and all they keyboard functions like setting screen brightness work. There is no support for TouchID, either, which is somewhat obvious. In my opinion it’s ready to be a daily driver if you can stand using Arch or Fedora. I’m waiting for a Debian version, personally (there’s some instructions on getting it going already but I haven’t tried yet).
- terhechte 3y agoThe article says: "Conformant OpenGL® ES 3.1 drivers are now available for M1- and M2-family GPUs"
- samtheprogram 3y agoPretty sure sleep still doesn't work, unless the Asahi wiki FAQ / Wiki is out of date. Bit of a deal breaker for me until then.
- om154 3y agoCan someone ELI5 what this means?
- Topgamer7 3y agoYou can play games and use gui applications on the new M1 devices using Asahi Linux. Which means running Linux instead of MacOS. The only caveat is that most applications won't be compiled for ARM yet, so emulation will still be needed. This is in contrast of Apple dropping support for OpenGL on their devices, and using their own API layer: Metal.
- seabrookmx 3y agoSource? The mainstream distros already have comprehensive ARM support in their repos. Asahi is working on a Fedora respin which will mean all your usual packages are a `dnf` command away.
- fulafel 3y agoOpenGL is used for pretty much all graphics acceleration on Linux desktop - desktop compositing, browsers (booth 2D content and WebGL & WebGPU), games (also console game and windows game emulation), etc.
- tambourine_man 3y agoHow is the current graphics driver situation on Apple Silicon macOS? Would it make sense or even be possible to backport this OpenGL ES 3.1 implementation from Linux to macOS? Or maybe an OpenGL ES 3.1 / Metal compatibility layer
- stalfosknight 3y ago> Unlike ours, the manufacturer’s M1 drivers are unfortunately not conformant for any standard graphics API, whether Vulkan or OpenGL or OpenGL ES. Yes, it is conformant to a graphics API. It's called Metal¹. You might enjoy pretending that "the manufacturer" hasn't given a damn to provide a fully working and highly performant graphics API designed under the same roof alongside the people who designed the hardware, but this kind of petty dunking on Apple that seems to be so popular is not a good look. 1) https://en.wikipedia.org/wiki/Metal_(API) https://en.wikipedia.org/wiki/Metal_(API) Protip: Downvoting is not the same thing as refuting someone's argument with a cogent one of your own.
- deleted 3y ago[deleted]
- tayistay 3y agoMetal is not a standard graphics API. It's a platform-specific Apple thing. I use it and it's pretty nice, but it's not a cross-platform standard.
- sheerun 3y agoWaiting for ability to run machine learning models on Linux instead of MacOS on M1
- kristianp 3y agoIt's great to read about Rosenzweig's achievements with the graphic driver for the M series. How did they hack the proprietary compiler to output their instruction? What compiler are they referring to? The OpenGL compliance gives hope that a simple recompile will make some graphics applications available at high performance under Linux on Apple Silicon, this is good news. It's a niche of a niche though. Devs would be porting their apps to MacOS as a priority to Linux on the M1/2/3 if at all.
- mark_l_watson 3y agoI have a currently broken installation of Asahi Linux on an M1 iMac. I am motivated to fix that and update! I don’t know what is going to happen in the future, but I wouldn’t be surprised if Asahi Linux becomes widely used. From my experience of turning a 7 year old MacBook and an 8year old MacBook Air into great Ubuntu Linux boxes, I think that old Apple hardware will be a common host to Linux. It feels great to get use out of old hardware.
- mixmastamyk 3y agoFedora is supposed to be the new focus.
- Yaappii 3y agodamn pretty cool
- CoolCold 3y ago> Of course, Asahi Lina and I are two individuals with minimal funding. It’s a little awkward that we beat the big corporation… It's sort of battle when the opponent have not come to the battlefield at all due to no interest...I'd say corporataltion was beaten is bit of stretch here.
- djmips 3y agoThe atomic trick was very satisfying, especially extrapolating the swizzle instruction from the PowerVR heritage. I don't know but wouldn't be surprised if the Apple engineers are learning from this or at least they would appreciate the sheer cleverness. It reminds me when back in the day, the Sega Genesis video hardware was reverse engineered at Accolade and our engineers used the public Texas Instruments TMS9918 VDP documentation as a starting point to extrapolate the evolved 9918 derived VDP in the Genesis (Mega Drive).
- saagarjha 3y agoI’m sure they appreciate the work but Apple has internal documentation on their chips. It’s not like they make a black box and forget how they designed them when it comes to writing software for them.
- ironlenny 3y agoSome times an outsider's attempt to reverse engineer your product brings new insights.
- saagarjha 3y agoThat is true, but one does not simply implement a fully conformant bit shuffle instruction by accident.
- dev_tty01 3y agoOr sometimes an instruction isn't in the compiler because the hardware has some strange corner case failures so they aren't using it. I would be nervous about depending upon an unused instruction.
- devit 3y agoThe article claims that Apple's compiler doesn't use the instruction, so it seems like the compiler author did indeed forget or never learn about it.
- delta_p_delta_x 3y ago> Instead of one row after the next, pixels in memory follow a spiral-like curve. This is called a z-order curve[1, 2]. It makes texture mapping and mipmapping significantly more cache-friendly than the usual x-y ordering, because these operations are often performed in tiles of 2^n size. I'd say it's more a fractal pattern than spiral-like, to be precise. [1]: https://demonstrations.wolfram.com/ComparingXYCurvesAndZOrderCurvesForTextureCoding/ https://demonstrations.wolfram.com/ComparingXYCurvesAndZOrde... [2]: https://en.wikipedia.org/wiki/Z-order_curve?wprov=sfla1 https://en.wikipedia.org/wiki/Z-order_curve?wprov=sfla1
- xeonmc 3y agoInteresting. Wouldn't it be more strictly 2^(n*(2^m)) size where m is the number of dimensions?
- delta_p_delta_x 3y agoI meant 2^n along one side, strictly in two dimensions (which is generally the most common texture layout). In other words, square tiles.
- pmarreck 3y agoBravo! A tour de force.