Yetiowner / Increasing-code-complexity

Every day, I commit a new and more complicated version of some simple code.
227 stars 6 forks source link

Add ARM64 Support #13

Closed XInTheDark closed 1 year ago

XInTheDark commented 1 year ago

On Macs, the program is not optimized for the M1, M1 Pro, M1 Max, M1 Ultra, and M2 chips. More information on Apple Silicon (from good, reliable Wikipedia):

Apple silicon is a series of system on a chip (SoC) and system in a package (SiP) processors designed by Apple Inc., mainly using the ARM architecture. It is the basis of most new Mac computers as well as iPhone, iPad, iPod Touch, Apple TV, and Apple Watch, and of products such as AirPods, HomePod, HomePod Mini, and AirTag.

Apple announced its plan to switch Mac computers from Intel processors to Apple silicon at WWDC 2020 on June 22, 2020.[1][2] The first Macs built with the Apple M1 processor were unveiled on November 10, 2020. In 2022, the newest Mac models have been built with Apple silicon; only older models of the Mac Mini and the Mac Pro still use Intel Core and Xeon processors respectively.[3][4]

Apple fully controls the integration of Apple silicon chips with the company's hardware and software products. Johny Srouji is in charge of Apple's silicon design.[5] Manufacturing of the chips is outsourced to semiconductor contract manufacturers such as Samsung and TSMC.

The Apple "M" series is a family of systems on a chip (SoC) used in Mac computers from November 2020 or later, iPad Pro tablets from April 2021 or later, and iPad Air tablets from March 2022 or later. The "M" designation was previously used for Apple motion coprocessors.

Apple M1[edit] Main article: Apple M1 Apple M1[edit] The M1, Apple's first system on a chip designed for use in Macs, is manufactured using TSMC's 5 nm process. Announced on November 10, 2020, it is used in the MacBook Air (M1, 2020), Mac mini (M1, 2020), MacBook Pro (13-inch, M1, 2020), iMac (24-inch, M1, 2021), iPad Pro (5th generation) and iPad Air (5th generation). It comes with 4 performance cores and 4 efficiency cores, for a total of 8 CPU cores. It comes with up to 8 GPU cores, with the entry level MacBook Air having only 7 GPU cores. The M1 has 16 billion transistors.[168]

Apple M1 Pro[edit] The M1 Pro is a more powerful version of the M1, with six to eight performance cores, two efficiency cores, 14 to 16 GPU cores, 16 Neural Engine cores, up to 32 GB unified RAM with up to 200 GB/s memory bandwidth, and more than double the transistors. It was announced on October 18, 2021, and is used in the 14- and 16-inch MacBook Pro. Apple said the CPU performance is about 70% faster than the M1, and that its GPU performance is about double. Apple claims the M1 Pro can deliver up to 20 streams of 4K or 7 streams of 8K ProRes video playback (up from 6 offered by Afterburner card for 2019 Mac Pro).

Apple M1 Max[edit] The M1 Max is a larger version of the M1 Pro chip, with eight performance cores, two efficiency cores, 24 to 32 GPU cores, 16 Neural Engine cores, up to 64 GB unified RAM with up to 400 GB/s memory bandwidth, and more than double the number of transistors. It was announced on October 18, 2021, and is used in the 14- and 16-inch MacBook Pro, as well as the Mac Studio. Apple says it has 57 billion transistors.[169] Apple claims the M1 Max can deliver up to 30 streams of 4K (up from 23 offered by Afterburner card for 2019 Mac Pro) or 7 streams of 8K ProRes video playback.

Apple M1 Ultra[edit] The M1 Ultra consists of two M1 Max dies connected together by a silicon interposer through Apple's UltraFusion technology.[170] It has 114 billion transistors, 16 performance cores, 4 efficiency cores, 48 to 64 GPU cores and 32 Neural Engine cores; it can be configured with up to 128 GB unified RAM of 800 GB/s memory bandwidth. It was announced on March 8, 2022, as an optional upgrade for the Mac Studio. Apple claims the M1 Ultra can deliver up to 18 streams of 8K ProRes video playback.[171]

Apple M2[edit] Main article: Apple M2 Apple announced the M2 SoC on June 6, 2022, at WWDC, along with the new MacBook Air and the new 13-inch MacBook Pro. It is the successor to the Apple M1. The M2 is made with TSMC's "Enhanced 5-nanometer technology" N5P process and contains 20 billion transistors, a 25% increase from the previous generation M1. The M2 can be configured with up to 24 gigabytes of RAM and 2 terabytes of storage. It has 8 CPU cores (4 performance and 4 efficiency) and up to 10 GPU cores. The M2 also increases the memory bandwidth to 100 GB/s. Apple claims CPU improvements up to 18% and GPU improvements up to 35% compared to the previous M1.[172]

We should optimise for ARM64 architectures.

Yetiowner commented 1 year ago

No