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 : General discussion : Raspberry Pi ?

Author Message
Profile CoffeemanProject donor
Send message
Joined: 29 May 19
Posts: 11
ID: 1132353
Credit: 5,905,982
RAC: 10,919
Cullen LLR Bronze: Earned 10,000 credits (74,634)SoB LLR Ruby: Earned 2,000,000 credits (4,010,656)321 Sieve (suspended) Bronze: Earned 10,000 credits (51,230)AP 26/27 Silver: Earned 100,000 credits (137,462)WW Amethyst: Earned 1,000,000 credits (1,632,000)
Message 130726 - Posted: 27 Jun 2019 | 17:53:51 UTC


A friend and I are thinking to setup a Raspberry Pi for Primegrid. Has anyone done that, how well does that work? I know that Intel CPUs have AVX-512 and GPUs in Desktops help a lot. But Raspberry Pi is so cheap, I could get a bunch of them.

Related: can Raspberry Pi be modified, specific to BOINC/Primegrid projects? Its an adaptable platform, so what could be done to make a dedicated machine just for these prime searches?

Thanks for you advice!

Profile GrebulonerProject donor
Volunteer tester
Avatar
Send message
Joined: 2 Nov 09
Posts: 395
ID: 49572
Credit: 2,099,022,480
RAC: 1,556,115
Discovered 2 mega primesFound 2 primes in the 2018 Tour de PrimesFound 4 primes in the 2019 Tour de PrimesFound 3 primes in the 2020 Tour de PrimesFound 1 mega prime in the 2020 Tour de PrimesFound 4 primes in the 2021 Tour de Primes321 LLR Sapphire: Earned 20,000,000 credits (20,547,101)Cullen LLR Sapphire: Earned 20,000,000 credits (20,754,874)ESP LLR Sapphire: Earned 20,000,000 credits (20,453,074)Generalized Cullen/Woodall LLR Sapphire: Earned 20,000,000 credits (20,310,104)PPS LLR Emerald: Earned 50,000,000 credits (51,079,843)PSP LLR Sapphire: Earned 20,000,000 credits (20,571,669)SoB LLR Sapphire: Earned 20,000,000 credits (28,692,370)SR5 LLR Sapphire: Earned 20,000,000 credits (21,257,664)SGS LLR Sapphire: Earned 20,000,000 credits (21,429,807)TRP LLR Sapphire: Earned 20,000,000 credits (20,191,201)Woodall LLR Sapphire: Earned 20,000,000 credits (20,376,385)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (55,630,889)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (4,178,073)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (56,046,594)PPS Sieve Double Gold: Earned 500,000,000 credits (521,014,891)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Turquoise: Earned 5,000,000 credits (9,468,384)TRP Sieve (suspended) Jade: Earned 10,000,000 credits (10,076,645)AP 26/27 Double Gold: Earned 500,000,000 credits (500,106,006)GFN Double Silver: Earned 200,000,000 credits (256,908,571)WW Double Silver: Earned 200,000,000 credits (293,748,000)PSA Double Bronze: Earned 100,000,000 credits (126,200,096)
Message 130727 - Posted: 27 Jun 2019 | 18:10:42 UTC - in response to Message 130726.

Raspberry Pi CPUs (ARM) aren't compatible with Primegrid apps, sorry. There may be other projects that it works with, though.
____________
Eating more cheese on Thursdays.

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Avatar
Send message
Joined: 21 Jan 10
Posts: 13648
ID: 53948
Credit: 285,237,625
RAC: 54,414
The "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 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 2 primes in the 2021 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,132,712)Cullen LLR Turquoise: Earned 5,000,000 credits (5,038,114)ESP LLR Turquoise: Earned 5,000,000 credits (6,177,890)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,234,442)PPS LLR Sapphire: Earned 20,000,000 credits (20,751,038)PSP LLR Turquoise: Earned 5,000,000 credits (7,956,186)SoB LLR Sapphire: Earned 20,000,000 credits (36,067,618)SR5 LLR Jade: Earned 10,000,000 credits (10,007,110)SGS LLR Ruby: Earned 2,000,000 credits (3,718,606)TRP LLR Turquoise: Earned 5,000,000 credits (5,084,329)Woodall LLR Turquoise: Earned 5,000,000 credits (5,007,789)321 Sieve (suspended) 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 (78,031,938)WW Sapphire: Earned 20,000,000 credits (32,204,000)PSA Jade: Earned 10,000,000 credits (12,445,029)
Message 130728 - Posted: 27 Jun 2019 | 18:13:51 UTC - in response to Message 130726.
Last modified: 27 Jun 2019 | 18:17:34 UTC


A friend and I are thinking to setup a Raspberry Pi for Primegrid. Has anyone done that, how well does that work? I know that Intel CPUs have AVX-512 and GPUs in Desktops help a lot. But Raspberry Pi is so cheap, I could get a bunch of them.

Related: can Raspberry Pi be modified, specific to BOINC/Primegrid projects? Its an adaptable platform, so what could be done to make a dedicated machine just for these prime searches?

Thanks for you advice!


Absolutely, as long as you're willing to think outside the box.

If, for example, the screen on your computer that is running PrimeGrid isn't quite level, you could wedge the Raspberry Pi under one side to level the display.

If you have a laptop running PrimeGrid, you could put one Raspberry Pi under each corner to raise the laptop up a little in order to improve cooling. You'll need three or four Raspberry Pis for this.

Even better, you could *not* buy any Raspberry Pis, and instead donate the money you just saved to Primegrid. (Link to donation page.)

Note that in terms of power consumption, this is an extremely efficient application for the Raspberry Pi since you don't even need to turn them on!

Realistically, however, unless you're a hard-core programmer, the answer is no. Our applications are compiled for a different (x86) architecture, and make heavy use of the high performance capabilities of modern CPUs. Raspberry Pi is designed for the polar opposite side of the computing spectrum. One would need to port our applications (not a trivial task), and then the reward would be absolutely abysmal performance. There are also undoubtedly all sorts of hurdles that you would have to overcome, such as disk space and memory.

And after all that, you would have to make sure IT ACTUALLY WORKS. Someone several years ago had the bright idea of porting our TRP sieve to Android. A whole bunch of people started using it. Half a year later we discovered every result it returned was wrong. By then, it was too late to rerun the lost sieve tasks.

So, if you eat, drink, and sleep C++, then yes, you might be able to get something to run ("crawl" might be more accurate) after a whole lot of effort. If that's not your skill set, then no.
____________
My lucky number is 75898524288+1

Yves Gallot
Volunteer developer
Project scientist
Send message
Joined: 19 Aug 12
Posts: 672
ID: 164101
Credit: 305,042,960
RAC: 0
GFN Double Silver: Earned 200,000,000 credits (305,042,960)
Message 130740 - Posted: 28 Jun 2019 | 10:19:53 UTC - in response to Message 130726.

A friend and I are thinking to setup a Raspberry Pi for Primegrid. Has anyone done that, how well does that work? I know that Intel CPUs have AVX-512 and GPUs in Desktops help a lot. But Raspberry Pi is so cheap, I could get a bunch of them.

Raspberry Pi is not cheap if you get a bunch of them.
20 Raspberry Pi 4 1GB with their power supply and cooling system (~160 W) are more expensive than a low-end PC with a GTX 1660 which is much more efficient for computations.

Yves Gallot
Volunteer developer
Project scientist
Send message
Joined: 19 Aug 12
Posts: 672
ID: 164101
Credit: 305,042,960
RAC: 0
GFN Double Silver: Earned 200,000,000 credits (305,042,960)
Message 130741 - Posted: 28 Jun 2019 | 11:21:34 UTC - in response to Message 130740.

Just a quick comparison of peak performance:
GTX 1660: 1408 32-bit cores @ 1.785 GHz
Cortex A72: 4 cores with 128-bit ARM NEON SIMD @ 1.5 GHz

1408 * 1.785 / (4 * 4 * 1.5) ~ 100 => 1 GTX 1660 ~ 100 Raspberry Pi 4

Profile CoffeemanProject donor
Send message
Joined: 29 May 19
Posts: 11
ID: 1132353
Credit: 5,905,982
RAC: 10,919
Cullen LLR Bronze: Earned 10,000 credits (74,634)SoB LLR Ruby: Earned 2,000,000 credits (4,010,656)321 Sieve (suspended) Bronze: Earned 10,000 credits (51,230)AP 26/27 Silver: Earned 100,000 credits (137,462)WW Amethyst: Earned 1,000,000 credits (1,632,000)
Message 130745 - Posted: 28 Jun 2019 | 19:31:51 UTC - in response to Message 130741.


Thanks!

I think this makes it clear. So Raspberries are better for eating.

Profile Nicholas Peter Bamber
Send message
Joined: 23 Dec 18
Posts: 93
ID: 1087751
Credit: 9,107,682
RAC: 4,806
321 LLR Silver: Earned 100,000 credits (261,540)Cullen LLR Gold: Earned 500,000 credits (781,596)ESP LLR Silver: Earned 100,000 credits (192,840)Generalized Cullen/Woodall LLR Gold: Earned 500,000 credits (611,930)PPS LLR Gold: Earned 500,000 credits (911,852)PSP LLR Bronze: Earned 10,000 credits (41,598)SoB LLR Bronze: Earned 10,000 credits (84,381)SR5 LLR Silver: Earned 100,000 credits (114,163)SGS LLR Gold: Earned 500,000 credits (618,540)TRP LLR Silver: Earned 100,000 credits (161,546)Woodall LLR Gold: Earned 500,000 credits (613,821)321 Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,014,239)Generalized Cullen/Woodall Sieve (suspended) Silver: Earned 100,000 credits (104,315)PPS Sieve Amethyst: Earned 1,000,000 credits (1,001,187)AP 26/27 Amethyst: Earned 1,000,000 credits (1,043,094)GFN Gold: Earned 500,000 credits (739,935)WW Gold: Earned 500,000 credits (556,000)PSA Silver: Earned 100,000 credits (255,106)
Message 130849 - Posted: 2 Jul 2019 | 20:37:05 UTC - in response to Message 130728.


And after all that, you would have to make sure IT ACTUALLY WORKS. Someone several years ago had the bright idea of porting our TRP sieve to Android. A whole bunch of people started using it. Half a year later we discovered every result it returned was wrong. By then, it was too late to rerun the lost sieve tasks.


Ouch. How did you recover if I might ask?

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Avatar
Send message
Joined: 21 Jan 10
Posts: 13648
ID: 53948
Credit: 285,237,625
RAC: 54,414
The "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 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 2 primes in the 2021 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,132,712)Cullen LLR Turquoise: Earned 5,000,000 credits (5,038,114)ESP LLR Turquoise: Earned 5,000,000 credits (6,177,890)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,234,442)PPS LLR Sapphire: Earned 20,000,000 credits (20,751,038)PSP LLR Turquoise: Earned 5,000,000 credits (7,956,186)SoB LLR Sapphire: Earned 20,000,000 credits (36,067,618)SR5 LLR Jade: Earned 10,000,000 credits (10,007,110)SGS LLR Ruby: Earned 2,000,000 credits (3,718,606)TRP LLR Turquoise: Earned 5,000,000 credits (5,084,329)Woodall LLR Turquoise: Earned 5,000,000 credits (5,007,789)321 Sieve (suspended) 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 (78,031,938)WW Sapphire: Earned 20,000,000 credits (32,204,000)PSA Jade: Earned 10,000,000 credits (12,445,029)
Message 130853 - Posted: 3 Jul 2019 | 0:30:59 UTC - in response to Message 130849.


And after all that, you would have to make sure IT ACTUALLY WORKS. Someone several years ago had the bright idea of porting our TRP sieve to Android. A whole bunch of people started using it. Half a year later we discovered every result it returned was wrong. By then, it was too late to rerun the lost sieve tasks.


Ouch. How did you recover if I might ask?


We shrugged. There was nothing we could do about it.

Androids are slow, so the total number of tasks run by them was a very small percentage of the total.

It means we missed some factors, so the TRP search is going to end up testing some candidates that should have been sieved out. We can live with that. A few missed factors wasn't worth re-running many months of work.

This was one (of several) reasons we started double checking everything, even sieves.
____________
My lucky number is 75898524288+1

Message boards : General discussion : Raspberry Pi ?

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2021 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 1.94, 1.91, 2.05
Generated 18 Sep 2021 | 7:05:59 UTC