mersenneforum.org  

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

Reply
 
Thread Tools
Old 2021-07-31, 20:10   #1
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

101101100011002 Posts
Default Mlucas v20 available

Mlucas v20 has gone live. Use this thread to report bugs, build issues, and for any other related discussion.

Major feature-add: p-1 support
Major ease-of-use add: An automake script makemake.sh

Details at the above link.

Special thanks to Mihai Preda and George Woltman for the total-immersion course in state-of-the-art p-1 stage 2 optimizations, and Paul Underwood for remote access to his Odroid N2 with 4GB RAM, which allowed me to test my stage 2 implementation in an Arm-NEON-SIMD build context. Thanks also to Teal Dulcet for help with the make-Makefile scripting, and Ken Kriesel for trying the automake under WSL.

Please subscribe to this thread if you want to be notified of patch uploads.

Last fiddled with by ewmayer on 2021-08-01 at 20:15 Reason: remove hack-of-mlucas.sh bit; no longer needed
ewmayer is online now   Reply With Quote
Old 2021-08-01, 06:24   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

53×73 Posts
Default

On the Arm a53 of my Odroid N2, P-1 takes 8 days for stage 1 and about 10 days for stage 2 using 54.9% of the 4GB of RAM (105Mb numbers).

On the a73 of it a PRP test takes about 6 months.

Ernst, are you gonig to implement "proof certification" soon?

Last fiddled with by paulunderwood on 2021-08-01 at 06:34
paulunderwood is offline   Reply With Quote
Old 2021-08-01, 08:19   #3
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

482910 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
On the Arm a53 of my Odroid N2, P-1 takes 8 days for stage 1 and about 10 days for stage 2 using 54.9% of the 4GB of RAM (105Mb numbers).

On the a73 of it a PRP test takes about 6 months.

Ernst, are you gonig to implement "proof certification" soon?
+1

Also, Paul: do your timings refer to a 4-cores multithreaded P-1?

Last fiddled with by ET_ on 2021-08-01 at 08:20
ET_ is offline   Reply With Quote
Old 2021-08-01, 09:06   #4
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

53·73 Posts
Default

Quote:
Originally Posted by ET_ View Post
+1

Also, Paul: do your timings refer to a 4-cores multithreaded P-1?
No. It is the 2 core chip. The N2 is 2+4 cores: a53+a73. I am running P-1 on the a53 and PRP on the a73.

Last fiddled with by paulunderwood on 2021-08-01 at 09:06
paulunderwood is offline   Reply With Quote
Old 2021-08-01, 16:10   #5
tdulcet
 
tdulcet's Avatar
 
"Teal Dulcet"
Jun 2018

23×5 Posts
Default

Quote:
Originally Posted by ewmayer View Post
I see tdulcet's mlucas.sh "do everything" script has not yet been updated, so users of same should edit their copy to change the 2 occurrences of '19.1' on lines 9 and 10 to '20', and the md5 checksum on line 11 to 9b19a56bf9d598a141fd2f655e61f175.
I just pushed the changes to the install/setup script and PrimeNet script for Mlucas v20 to my repository. I wanted to wait until v20 was officially released before doing so. Anyone interested can see the full changes here (scroll down the page). Feedback is welcome.

The install/setup script will also now automatically create a jobs.sh script, as documented on the Mlucas README. It has always dynamically created a Mlucas.sh script, but that only worked when run from a cron job. The new jobs.sh script can be manually run and will not start Mlucas or the PrimeNet script if they are already running.

Our PrimeNet script is now the first and only one to fully supports P-1 factoring with Mlucas, both standalone (the 4 worktype) and when done before a LL/PRP test.

As a side note, one of my systems testing standalone P-1 factoring with Mlucas v20 beta just found its first factor: 105310747.
tdulcet is offline   Reply With Quote
Old 2021-08-01, 20:14   #6
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

22×5×11×53 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Ernst, are you gonig to implement "proof certification" soon?
That's gonna be the major feature add for v20.1. I am hopeful that that will need less time than the p-1 proof-of-principle-work-and-code-it-up did. No fundamental new algorithms or flavors-of-modmul (p-1 needed several new ones of those) needed, just compute a bunch of interim proof-related residues and deposit in files along the way. Teal & Dan's primenet.py is already being enhanced by them to support proofs, so I can focus on the data-processing side of things.

Quote:
Originally Posted by paulunderwood View Post
No. It is the 2 core chip. The N2 is 2+4 cores: a53+a73. I am running P-1 on the a53 and PRP on the a73.
Doing standalone p-1 on the weak a53 seems like a good use - the a73 can do PRPs in not-completely-hopeless time, but uses very little of your 4GB RAM. Do you have any numbers on how much the a53 p-1 is slowing your a73 PRP testing, due to competition for memory bandwidth?

Quote:
Originally Posted by tdulcet View Post
I just pushed the changes to the install/setup script and PrimeNet script for Mlucas v20 to my repository. I wanted to wait until v20 was officially released before doing so. Anyone interested can see the full changes here (scroll down the page).
Great - thanks. I'll modify the OP accordingly.

Quote:
As a side note, one of my systems testing standalone P-1 factoring with Mlucas v20 beta just found its first factor: 105310747.
Congrats! AFAICT yours is the first v20-found factor - 'tis a modest stage 1 factor, but still. All my early beta-test runs were reproducing known stage 1 and 2 factors which I extracted from my gpuowl-on-R7 results files, and past 2 weeks have run a dozen-or-so p-1 jobs on status-unknown expos ~110m on my 2c/4t avx-512 NUC, but none found a factor.
ewmayer is online now   Reply With Quote
Old 2021-08-01, 21:49   #7
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

22×5×11×53 Posts
Default

Did some unclosed-element cleanup (yes, I am a dinosaur, I still hand-create and edit my html) and spell-checking on the README.html file; also realized that my 'ln -s' example in the Performance-tune section had the source and destination arguments for the link command the wrong way round. Revision uploaded.
ewmayer is online now   Reply With Quote
Old 2021-08-02, 00:17   #8
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

386910 Posts
Default

Quote:
Originally Posted by ewmayer View Post
Doing standalone p-1 on the weak a53 seems like a good use - the a73 can do PRPs in not-completely-hopeless time, but uses very little of your 4GB RAM. Do you have any numbers on how much the a53 p-1 is slowing your a73 PRP testing, due to competition for memory bandwidth?
Running (v20) P-1 on the a53 caused the a73 v19 PRP run "clocks" to increase from 00:23:19 to 00:24:49.
paulunderwood is offline   Reply With Quote
Old 2021-08-11, 23:42   #9
Dylan14
 
Dylan14's Avatar
 
"Dylan"
Mar 2017

2×293 Posts
Default

I've updated the PKGBUILD for Arch Linux to v20 for mlucas. Notable changes:
1. the sysctl-missing.patch is no longer needed.
2. The -lgmp flag is added to the line which begins with gcc -g -o.
3. The gmp package has been added as a dependency.

Note that this still builds it in the way it was done before (check /proc/cpuinfo, run compilation, then check build.log, then link if log is empty) instead of using the handy bash script.
Dylan14 is offline   Reply With Quote
Old 2021-09-02, 20:36   #10
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

1166010 Posts
Default

v20.1 is out. I suggest users upgrade at their earliest convenience to gain the benefit of various bugfixes, as well as a significantly faster p-1 stage 2.

Please also check your worktodo.ini files for Test|DoubleCheck|PRP assignments mangled by a v20.0 bug. The assignment-repair procedure is detailed in post #2 of the v20.1 thread.

Last fiddled with by ewmayer on 2021-09-02 at 20:36
ewmayer is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mlucas v19.1 available ewmayer Mlucas 46 2021-07-06 19:40
Mlucas v19 available ewmayer Mlucas 89 2021-02-01 20:37
Mlucas v18 available ewmayer Mlucas 48 2019-11-28 02:53
MLucas on IBM Mainframe Lorenzo Mlucas 52 2016-03-13 08:45
mlucas on sun delta_t Mlucas 14 2007-10-04 05:45

All times are UTC. The time now is 20:53.


Sat Oct 23 20:53:33 UTC 2021 up 92 days, 15:22, 0 users, load averages: 1.39, 1.49, 1.38

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.