mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2018-07-17, 10:49   #1
SELROC
 

37·181 Posts
Default All integer Mersenne prime checker for ARM

https://github.com/ncw/iprime
  Reply With Quote
Old 2018-07-17, 11:00   #2
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

2·33·109 Posts
Default

How does the performance compare to mlucas?
henryzz is online now   Reply With Quote
Old 2018-07-17, 11:04   #3
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

2×3×11×73 Posts
Default

Quote:
Originally Posted by SELROC View Post
One should ask Nick if he used armV8 vectorized instructions...

BTW, Ernst Mayer ported his multithreading asm-aware code to Arm as well. It works like a charm on Raspberries and Ernst is working on implementing prp testing as well...

Last fiddled with by ET_ on 2018-07-17 at 11:55
ET_ is offline   Reply With Quote
Old 2018-07-17, 11:11   #4
ldesnogu
 
ldesnogu's Avatar
 
Jan 2008
France

10001001102 Posts
Default

Quote:
Originally Posted by ET_ View Post
One should ask Nick if he used armV8 vectorized instructions...
That's ARMv5T code (for StrongARM as far as I could see). So 32-bit and no SIMD.


OTOH I expect the code to be very carefully tuned, Nick is an excellent programmer
ldesnogu is offline   Reply With Quote
Old 2018-07-17, 17:10   #5
GP2
 
GP2's Avatar
 
Sep 2003

50318 Posts
Default

Look at the dates, the files are mostly from 5 years ago, a few from 3 years ago.

Seems to be abandonware, unfortunately.
GP2 is offline   Reply With Quote
Old 2018-07-17, 23:27   #6
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

124528 Posts
Default

Quote:
Originally Posted by GP2 View Post
Look at the dates, the files are mostly from 5 years ago, a few from 3 years ago.

Seems to be abandonware, unfortunately.
Dec 2015 for iprime is more recent than the last announced release (not prerelease or beta) of:
CUDALucas 2.05.1 Feb 2015
CUDAPm1 0.20 Nov 2013
mfaktc 0.21 Oct 2014
mfakto 0.14 Nov 2014
gpulucas 0.9.4 Feb 2012
and almost clLucas at Jan 2016.
Some of these are in heavy current use, because they adequately fulfill the function.

Iprime unfortunately seems not to have save files implemented, per the road map in the read.md.

Last fiddled with by kriesel on 2018-07-17 at 23:28
kriesel is online now   Reply With Quote
Old 2018-07-24, 20:30   #7
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

2·32·647 Posts
Default

It actually would be useful to compare timings between Nick's non-SIMD integer code vs Mlucas on ARMv8, if someone has bandwidth to test them both on the same system, I would be appreciative.
ewmayer is offline   Reply With Quote
Old 2018-07-24, 23:50   #8
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

13·137 Posts
Default

Quote:
Originally Posted by ewmayer View Post
It actually would be useful to compare timings between Nick's non-SIMD integer code vs Mlucas on ARMv8, if someone has bandwidth to test them both on the same system, I would be appreciative.
1) Would an RPi Model 3B+ suffice?
2) What timings do you need/want?
wombatman is offline   Reply With Quote
Old 2018-07-25, 20:53   #9
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

2D7E16 Posts
Default

Quote:
Originally Posted by wombatman View Post
1) Would an RPi Model 3B+ suffice?
2) What timings do you need/want?
That's an ARMv8 CPU, yes? If so, build Mlucas (as per online readme page) for v8/simd, then:

1. If the integer checker supports multithreading, run Mlucas self-tests on all 4 cores via './Mlucas -s m -iters 100 -cpu 0:3', afterward have a look at the mlucas.cfg file and run the integer code at the nearest FFT lengths to those in whatever short-length timing mode it supports;

2. If the integer checker does not support multithreading, do as in [1] but run Mlucas self-tests on just 2 core via './Mlucas -s m -iters 100'.

Since the 2 codes will likely permit appreciably different max-exponents at any given transform length, the timing comparisons will need to be interepreted in that light, i.e. in "timing for comparable exponent" fashion.

Thanks!

Last fiddled with by ewmayer on 2018-07-25 at 20:54
ewmayer is offline   Reply With Quote
Old 2018-07-27, 04:05   #10
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

13×137 Posts
Default

Looks like the iprime code is single-threaded, so I ran mlucas single-thread as well. I only did one test of iprime, and here's why:

iprime:

Testing 2**20000047-1 with fft size 2**20 for 100 iterations
Residue 0xDD61B3E031F1E0BA
That took 4m23.108015142s for 100 iterations which is 2.631080151s per iteration

mlucas:

1024 msec/iter = 159.98 (used the exponent here for the iprime test)

So mlucas is ~10x faster than iprime for the same FFT size and exponent. And iprime crashed trying to run p = 49005071.

Last fiddled with by wombatman on 2018-07-27 at 04:06
wombatman is offline   Reply With Quote
Old 2018-07-27, 22:13   #11
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

2·32·647 Posts
Default

Thanks, Wombatman! A quick determination of "it's hopeless" is arguably as useful as the "this looks promising" ones.

I got only a modest 1.5x per-cycle boost from SIMD-assembly-versus-not on ARMv8 (I suspect because, unlike x86, the ARM is designed to share as many underlying functional units between SIMD and non-SIMD instructions as possible, i.e. both SIMD and basic C-code access the same number of hardware resources, but careful SIMD coding makes better use of same), so the non-SIMD using nature of the integer code would seem to serve as only a small mitigation.
ewmayer is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
(M48) NEW MERSENNE PRIME! LARGEST PRIME NUMBER DISCOVERED! dabaichi News 571 2020-10-26 11:02
How does one prove that a mersenne prime found with CUDALucas is really prime? ICWiener Software 38 2018-06-09 13:59
Prime numbers Grid, to test an odd integer on 44 Zarck Math 5 2012-03-06 14:43
The 40th known Mersenne prime, 220996011-1 is not PRIME! illman-q Miscellaneous Math 33 2004-09-19 05:02
Primes for a mersenne integer DWT FNT gbvalor Math 1 2003-09-08 16:05

All times are UTC. The time now is 17:44.


Sun Aug 1 17:44:19 UTC 2021 up 9 days, 12:13, 0 users, load averages: 2.66, 2.09, 1.73

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.