PrimeGrid
Please visit donation page to help the project cover running costs for this month

Toggle Menu

Join PrimeGrid

Returning Participants

Community

Leader Boards

Results

Other

drummers-lowrise

Advanced search

Message boards : Number crunching : macOS's Rosetta 2 only loses about 20% performance emulating x86

Author Message
numbermaniac
Volunteer tester
Send message
Joined: 28 Mar 14
Posts: 180
ID: 305955
Credit: 6,612,340
RAC: 0
321 LLR Silver: Earned 100,000 credits (119,884)PPS LLR Amethyst: Earned 1,000,000 credits (1,054,944)SR5 LLR Gold: Earned 500,000 credits (508,863)SGS LLR Gold: Earned 500,000 credits (949,703)TRP LLR Gold: Earned 500,000 credits (502,390)321 Sieve Gold: Earned 500,000 credits (512,303)Generalized Cullen/Woodall Sieve (suspended) Gold: Earned 500,000 credits (503,510)PPS Sieve Amethyst: Earned 1,000,000 credits (1,577,628)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (34,269)TRP Sieve (suspended) Bronze: Earned 10,000 credits (32,679)AP 26/27 Silver: Earned 100,000 credits (161,720)GFN Gold: Earned 500,000 credits (500,739)PSA Silver: Earned 100,000 credits (141,661)
Message 145255 - Posted: 16 Nov 2020 | 2:40:07 UTC
Last modified: 16 Nov 2020 | 2:40:15 UTC

Apple Silicon M1 Emulating x86 is Still Faster Than Every Other Mac in Single Core Benchmark - MacRumors

Rosetta 2 running x86 code appears to be achieving 78%-79% of the performance of native Apple Silicon code.


This is pretty interesting. It sounds like Apple's M1 ARM processor only loses about 20% of its performance when emulating x86 code. And even with that, it's still out-performing every existing Intel Mac in single-core performance!

Looks like PrimeGrid will still be quite usable on Macs for now :)
____________
8915 × 2 ^ 1507177 + 1 -- 453,710 digit PPSE
6603 × 2 ^ 1411654 + 1 -- 424,955 digit PPSE (DC)

zombie67 [MM]Project donor
Volunteer tester
Avatar
Send message
Joined: 30 Nov 06
Posts: 263
ID: 4065
Credit: 1,405,507,629
RAC: 0
Discovered 9 mega primesEliminated 1 conjecture "k"Found 3 primes in the 2020 Tour de PrimesFound 1 mega prime in the 2020 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (10,118,548)Cullen LLR Jade: Earned 10,000,000 credits (13,526,070)ESP LLR Sapphire: Earned 20,000,000 credits (20,279,036)Generalized Cullen/Woodall LLR Jade: Earned 10,000,000 credits (11,205,056)PPS LLR Sapphire: Earned 20,000,000 credits (35,568,785)PSP LLR Jade: Earned 10,000,000 credits (13,269,813)SoB LLR Jade: Earned 10,000,000 credits (12,972,678)SR5 LLR Sapphire: Earned 20,000,000 credits (20,375,669)SGS LLR Jade: Earned 10,000,000 credits (11,029,775)TRP LLR Sapphire: Earned 20,000,000 credits (20,371,529)Woodall LLR Jade: Earned 10,000,000 credits (13,362,218)321 Sieve Emerald: Earned 50,000,000 credits (50,559,131)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,297,856)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,711,622)PPS Sieve Double Gold: Earned 500,000,000 credits (555,050,144)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (11,707,274)TRP Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,316,578)AP 26/27 Double Bronze: Earned 100,000,000 credits (127,594,642)GFN Double Silver: Earned 200,000,000 credits (379,659,050)PSA Emerald: Earned 50,000,000 credits (52,054,411)
Message 145257 - Posted: 16 Nov 2020 | 7:55:53 UTC
Last modified: 16 Nov 2020 | 7:57:19 UTC

I am doubtful that the M1 does cpu extensions like FMA or AVX. And Rosetta2 emulating something like that...unlikely.

Note: I *like* what apple is doing with their custom CPUs. I am just not sure if it will be useful here on PG. I would be happy to be proven wrong.
____________
Reno, NV

rogue
Volunteer developer
Avatar
Send message
Joined: 8 Sep 07
Posts: 1218
ID: 12001
Credit: 18,565,548
RAC: 0
PPS LLR Bronze: Earned 10,000 credits (31,229)PSA Jade: Earned 10,000,000 credits (18,533,435)
Message 145266 - Posted: 16 Nov 2020 | 13:42:56 UTC - in response to Message 145257.

I am doubtful that the M1 does cpu extensions like FMA or AVX. And Rosetta2 emulating something like that...unlikely.

Note: I *like* what apple is doing with their custom CPUs. I am just not sure if it will be useful here on PG. I would be happy to be proven wrong.


Agreed on FMA/AVX/AVX2 support.

mlucas runs on ARM and I know that Ernst has the goal of supporting PRP/primality tests for k*b^n+/-1 forms.

Any GPU app using OpenCL and no x86 asm should run on the M1. How fast is a different question.

If my wife lets me get one in spring, then I will port the mtsieve framework over to ARM. Most of the programs using the framework should port without a problem. Others will take a little more work.

Profile Pooh Bear 27Project donor
Avatar
Send message
Joined: 10 May 09
Posts: 709
ID: 39821
Credit: 407,730,319
RAC: 0
Discovered 1 mega primeEliminated 1 conjecture "k"Discovered 1 twin prime321 LLR Turquoise: Earned 5,000,000 credits (5,014,405)Cullen LLR Turquoise: Earned 5,000,000 credits (5,734,854)ESP LLR Turquoise: Earned 5,000,000 credits (5,421,149)Generalized Cullen/Woodall LLR Turquoise: Earned 5,000,000 credits (5,576,209)PPS LLR Jade: Earned 10,000,000 credits (17,389,837)PSP LLR Jade: Earned 10,000,000 credits (10,425,342)SoB LLR Turquoise: Earned 5,000,000 credits (8,986,628)SR5 LLR Turquoise: Earned 5,000,000 credits (5,248,659)SGS LLR Turquoise: Earned 5,000,000 credits (6,878,856)TRP LLR Turquoise: Earned 5,000,000 credits (5,416,106)Woodall LLR Turquoise: Earned 5,000,000 credits (6,400,237)321 Sieve Amethyst: Earned 1,000,000 credits (1,000,576)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,000,977)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (6,843,367)PPS Sieve Emerald: Earned 50,000,000 credits (78,673,438)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Turquoise: Earned 5,000,000 credits (6,473,750)TRP Sieve (suspended) Turquoise: Earned 5,000,000 credits (8,243,608)AP 26/27 Jade: Earned 10,000,000 credits (12,531,383)GFN Double Silver: Earned 200,000,000 credits (202,192,765)PSA Turquoise: Earned 5,000,000 credits (5,042,125)
Message 145267 - Posted: 16 Nov 2020 | 14:46:12 UTC

It seems if there can be a M1 ARM application made, then phones and pads could get code to crunch?
____________
My lucky numbers are 121*2^4553899-1 and 3756801695685*2^666669±1

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Avatar
Send message
Joined: 21 Jan 10
Posts: 13513
ID: 53948
Credit: 236,960,660
RAC: 0
Found 5 primes in the 2021 Tour de PrimesFound 5 mega primes in the 2021 Tour de PrimesThe "Shut up already!" badge:  This loud mouth has mansplained on the forums over 10 thousand times!  Sheesh!!!Discovered the World's First GFN-19 prime!!!Discovered 6 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,822,730)Cullen LLR Ruby: Earned 2,000,000 credits (3,624,591)ESP LLR Turquoise: Earned 5,000,000 credits (5,021,269)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,145,754)PPS LLR Jade: Earned 10,000,000 credits (16,008,485)PSP LLR Turquoise: Earned 5,000,000 credits (5,197,957)SoB LLR Sapphire: Earned 20,000,000 credits (34,291,181)SR5 LLR Jade: Earned 10,000,000 credits (10,007,110)SGS LLR Ruby: Earned 2,000,000 credits (3,252,256)TRP LLR Turquoise: Earned 5,000,000 credits (5,084,329)Woodall LLR Ruby: Earned 2,000,000 credits (2,911,985)321 Sieve Jade: Earned 10,000,000 credits (10,061,196)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,170,256)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,059,304)PPS Sieve Sapphire: Earned 20,000,000 credits (22,885,121)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,035,522)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,051,121)AP 26/27 Jade: Earned 10,000,000 credits (10,118,303)GFN Emerald: Earned 50,000,000 credits (76,771,161)PSA Jade: Earned 10,000,000 credits (12,445,029)
Message 145269 - Posted: 16 Nov 2020 | 15:53:17 UTC - in response to Message 145267.

It seems if there can be a M1 ARM application made, then phones and pads could get code to crunch?


(Regarding phones and pads...) Doubtful.

iOS doesn't support BOINC. We have nobody to develop Android apps. So anything phone/tablet is a non-starter at the moment.

Then there's the part about us not really having a whole bunch of apps that *don't* use AVX anymore. Right now, the only non-AVX app we have is PPS-Sieve, and I'm not putting GPUs and phones together in the same app.

The only other sieve on the horizon is CW sieve, and there again we wouldn't want to mix GPUs and phones.

For non-AVX apps, I could see it being practical to have an app for Apple's ARM laptop. Whether we would *want* to do so is a different question. It's not clear whether we'll want to support it. We have enough trouble supporting MACs with x86 processors.
____________
My lucky number is 75898524288+1

Yves Gallot
Volunteer developer
Project scientist
Send message
Joined: 19 Aug 12
Posts: 644
ID: 164101
Credit: 305,010,093
RAC: 0
GFN Double Silver: Earned 200,000,000 credits (305,010,093)
Message 145272 - Posted: 16 Nov 2020 | 17:59:33 UTC
Last modified: 16 Nov 2020 | 22:25:58 UTC

The Apple M1 CPU is a 2 x 4-core ARMv8: four performance cores (L1=128KB, L2=12MB shared) and four power-efficiency cores (L1=64KB, L2=4MB shared).
The SIMD instructions of ARMv8 are Neon (128-bit registers) which are similar to SSE4 instruction set.
Then M1 CPU will be faster than Intel Celeron (Gemini Lake) because of a larger cache and maybe a higher frequency but slower than Intel Core i3-10x00 (Comet Lake) because of AVX2/FMA3.
The speed of the Apple M1 GPU is 2600 GFLOPS (FP32/INT32). This is similar to the GeForce GTX 1650 (TPD 75W). But because the TDP of the M1 will be lower, a GPU app will certainly not run at full speed (GPU apps are slower on the mobile version of Nvidia GPUs).
In conclusion, a cheap gaming laptop with an i5 / Ryzen 5 and a GTX 1650 / Radeon RX 560X will clearly outperform a Mac with new M1 chip for crunching.

numbermaniac
Volunteer tester
Send message
Joined: 28 Mar 14
Posts: 180
ID: 305955
Credit: 6,612,340
RAC: 0
321 LLR Silver: Earned 100,000 credits (119,884)PPS LLR Amethyst: Earned 1,000,000 credits (1,054,944)SR5 LLR Gold: Earned 500,000 credits (508,863)SGS LLR Gold: Earned 500,000 credits (949,703)TRP LLR Gold: Earned 500,000 credits (502,390)321 Sieve Gold: Earned 500,000 credits (512,303)Generalized Cullen/Woodall Sieve (suspended) Gold: Earned 500,000 credits (503,510)PPS Sieve Amethyst: Earned 1,000,000 credits (1,577,628)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (34,269)TRP Sieve (suspended) Bronze: Earned 10,000 credits (32,679)AP 26/27 Silver: Earned 100,000 credits (161,720)GFN Gold: Earned 500,000 credits (500,739)PSA Silver: Earned 100,000 credits (141,661)
Message 145292 - Posted: 17 Nov 2020 | 14:22:36 UTC - in response to Message 145269.

Right now, the only non-AVX app we have is PPS-Sieve


The AP27 app can run without AVX; it has an SSE mode which can be activated using either the -sse2 or -sse41 flags. But that requires app_config.xml, which can't be accessed on Android unless the phone is rooted. (and that's assuming the Android client actually reads config files)
Could be fine for ARM Macs though, as SSE will likely be emulated in Rosetta 2 using ARM's NEON instruction set.
____________
8915 × 2 ^ 1507177 + 1 -- 453,710 digit PPSE
6603 × 2 ^ 1411654 + 1 -- 424,955 digit PPSE (DC)

Yves Gallot
Volunteer developer
Project scientist
Send message
Joined: 19 Aug 12
Posts: 644
ID: 164101
Credit: 305,010,093
RAC: 0
GFN Double Silver: Earned 200,000,000 credits (305,010,093)
Message 145294 - Posted: 17 Nov 2020 | 15:23:44 UTC - in response to Message 145292.

The AP27 app can run without AVX; it has an SSE mode which can be activated using either the -sse2 or -sse41 flags. But that requires app_config.xml, which can't be accessed on Android unless the phone is rooted. (and that's assuming the Android client actually reads config files)
Could be fine for ARM Macs though, as SSE will likely be emulated in Rosetta 2 using ARM's NEON instruction set.

The GPU is more than ten times as fast as NEON code:
CPU: 3.2 GHz * 4 (Neon) * 8 (cores) = 102 INT32 GIPS
GPU: 2.6 FMA32 TFLOPS => 1300 INT32 GIPS

If you want to run a PrimeGrid app on Android or ARM Macs, the most efficient method is to translate OpenCL code to Vulkan compute shader.

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Avatar
Send message
Joined: 21 Jan 10
Posts: 13513
ID: 53948
Credit: 236,960,660
RAC: 0
Found 5 primes in the 2021 Tour de PrimesFound 5 mega primes in the 2021 Tour de PrimesThe "Shut up already!" badge:  This loud mouth has mansplained on the forums over 10 thousand times!  Sheesh!!!Discovered the World's First GFN-19 prime!!!Discovered 6 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,822,730)Cullen LLR Ruby: Earned 2,000,000 credits (3,624,591)ESP LLR Turquoise: Earned 5,000,000 credits (5,021,269)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,145,754)PPS LLR Jade: Earned 10,000,000 credits (16,008,485)PSP LLR Turquoise: Earned 5,000,000 credits (5,197,957)SoB LLR Sapphire: Earned 20,000,000 credits (34,291,181)SR5 LLR Jade: Earned 10,000,000 credits (10,007,110)SGS LLR Ruby: Earned 2,000,000 credits (3,252,256)TRP LLR Turquoise: Earned 5,000,000 credits (5,084,329)Woodall LLR Ruby: Earned 2,000,000 credits (2,911,985)321 Sieve Jade: Earned 10,000,000 credits (10,061,196)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,170,256)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,059,304)PPS Sieve Sapphire: Earned 20,000,000 credits (22,885,121)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,035,522)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,051,121)AP 26/27 Jade: Earned 10,000,000 credits (10,118,303)GFN Emerald: Earned 50,000,000 credits (76,771,161)PSA Jade: Earned 10,000,000 credits (12,445,029)
Message 145304 - Posted: 17 Nov 2020 | 20:14:53 UTC - in response to Message 145292.

Right now, the only non-AVX app we have is PPS-Sieve


The AP27 app can run without AVX; it has an SSE mode which can be activated using either the -sse2 or -sse41 flags. But that requires app_config.xml, which can't be accessed on Android unless the phone is rooted. (and that's assuming the Android client actually reads config files)
Could be fine for ARM Macs though, as SSE will likely be emulated in Rosetta 2 using ARM's NEON instruction set.


Of course a non-AVX version of the apps can be made for ARM processors, but it would be much slower. Do you have an old computer from about 10 years ago that predates the Sandy Bridge AVX CPUs? It will be like running on that.

Phone/pads are dead in the water because BOINC doesn't run on iOS and we have no Android developers. Even when we *did* have an app that was suitable for Android devices, we couldn't do it because we couldn't get anyone to work on the app.

Unless something radical changes, the only question is whether we're going to support Apple's ARM CPU under MacOS.
____________
My lucky number is 75898524288+1

Post to thread

Message boards : Number crunching : macOS's Rosetta 2 only loses about 20% performance emulating x86

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2023 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 0.00, 0.00, 0.00
Generated 23 Mar 2023 | 15:27:17 UTC