Tells us about the content discussed about supporting metal? Because there is no good gpu as of now?
Out of curiosity I played with the latest cycles-x branch and tried to port it to metal - more or less as a personal exercise.
The first annoying thing was, that the metal compiler needs an explicit address space qualifier for each and every pointer or reference, which floods the code with it, but at least it is probably solvable with brute force and much typing. It would be nice, if Apple would add at least add a compiler flag to treat every pointer as “thread”, except it has an other qualifier.
The bigger problem is, that metal until now (2.4) does not support lambdas, which are used in the cycles code quite a lot. The next metal version will usually be presented at the next WWDC 2022 and it is not guaranteed, that this will be included. It would technically for sure be possible to rewrite it or maintain two versions of these parts, but that would uglify everything and is not very tempting.
Fore sure there are more obstacles, but I did only scratch the surface so far.
So my questions to the developer team are:
Do you know more? If my observations are correct, would you wait for Apple do catch up the other platforms with the metal framework in order to not fragment the cycles code even more? (would mean no cycles metal port before summer 2022)
So, the news is that Apple is contributing a Metal backend to Cycles. The relevant task is here:
We’ve been talking to Apple about this for a while, but have not been able to share it until now.
Big news probably related timing wise to the m1x arm macs being announced Monday
Yeah, although I really hope a more powerful (30 inch) Apple Silicon iMac will be released soon, which will really be able to utilize Blender’s powers.
We’re really excited to work with the Community on enabling Cycles on Metal. Cycles works great on macOS, and we want to ensure you experience it as such also.
Any questions or feedback on the work as it lands over the coming weeks is both welcome and encouraged, and we’d certainly like to hear from those looking to early adopt and try out Cycles on Metal in your workflows.
When will the first test build available?
I’m eager to test it with the M1
We’ll bring a feature branch up with a fully Metal-enabled version over the coming weeks, as we tidy up the code and break it up into atomic commits that make sense for code review.
The first commit was the most invasive, touching all function signatures that took an undecorated pointer.
I expect our next commits will add the metal_compat.h and they remainder of the kernel changes needed to compile as MSL, along with the main kernel entry point wrappers. Then we’ll add the host side device.
This is amazing news! Big thanks to Apple for the support!
I do have a question about what the future might hold for Apple and Blender after Cycles is up and running on Metal. It sounds like moving the entire Blender code base away from OpenGL is going to be a huge endeavor. Does Apple intend to provide future assistance to the Blender team when the time comes to make the switch to a native Metal version (Or Vulkan/MoltenVK)?
That’s fantastic Jason!
I’ve been hoping for this since the disappointment that my nicely specced AMD iMac couldn’t use GPU for cycles. I temporarily used a Linux box, but I’ve since switched to an M1 Mac mini, and those GPU cores are chomping at the bit to do some work. I know your work is cut out for you, but there has been talk on other forums about viewport using metal as well, and possible AI denoise support, just FYI
I’d say those two things and of course cycles and evee support are the four main integrations.
There are people talking of Blender being ported to iPad but I’m not even sure that makes sense, as the UI would need a huge rewrite. Although I can currently sculpt on iPad with an apple pencil using sidecar connected to the mac, some improvements there would be very welcome. That’s all I can think of now.
Thanks for the feedback - we are certainly intending to support Blender as a whole, and our teams are focused on the overall workflow experience of using Blender on Mac and how that can be improved.
On the technical side, we’re ready to talk about Cycles on Metal, and get that tech contributed back smoothly for the 3.1 release.
good news sure looking forward to try this.
This is great. What’s the best way to give you feedback and bug reports as you drop the first iteration of Cycles on Metal? I’ll also be testing it on the new M1X MBP 16" and on my iMac Pro.
Awesome!! Thanks guys for working on this
Once there is an actual implementation to test, it will go through the regular Blender channels. Bug reports go to the Blender bug tracker, and for feedback we can create a topic here on devtalk.
I would love to contribute via testing - our lab at Wayne state got upgraded to M1 iMacs - and I teach Blender also in my design courses.
@jason-apple Best news in years
Glad to see Apple officially joining the Blender crowd. And I am very much looking forward to how it will benefit the community.
This is all so exciting! Can we have a broad time estimate? I am switching to the MIX Macs coming up, soon! So this was very welcome news!
It looks like it will begin with the 3.1 release. Keep your eye open for the 3.1 betas to drop. Original target was November this year but that may be pushed back since August was the original 3.0 date.
Well they called them M1 Pro and M1 Max, so lol. But also, the performance on these things specially GPU side is absolutely NUTS. Key advantage being that over 64GB of memory is now available to the GPU. In one of the ads in the Event, I caught one of the guys saying something about now being able to load the 100GB Starship Enterprise into memory (as an example). So it seems Apple is happy to utilise some swap in case things balloon. But this is great. Can’t wait for some numbers on the performance gains with Metal support in blender!