mersenneforum.org  

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

Reply
 
Thread Tools
Old 2020-05-20, 12:40   #34
tdulcet
 
Jun 2018

2×3 Posts
Post Install Script for Linux

I wrote a script to download, setup, build and run Mlucas on Linux. It supports x86 Intel and AMD and ARM CPUs: https://github.com/tdulcet/Distribut...Scripts#mlucas

If the required dependencies (Make and the GNU C compiler) are already installed, it should work on any Linux distribution. Otherwise, it will install the required dependencies on Ubuntu and Debian/Raspbian. Pull requests are welcome!

By creating a Makefile and using Make's jobs (-j) feature with one job for each CPU thread, this script will build Mlucas significantly faster than if you manually ran the gcc commands in the Mlucas README. For example, if your CPU has four CPU threads, it will build approximately four times faster. This script follows the recommended instructions on the Mlucas README for each architecture and CPU, which should provide the best performance for most users. It also saves the Makefile so users can easily change the gcc parameters and rerun make.

There is a log of the script running on Travis CI here. Note that there are over 20,000 lines of output, most of which are warnings from gcc. There are also separate scripts to download, setup and run Prime95 and CUDALucas on Linux.
tdulcet is offline   Reply With Quote
Old 2020-05-21, 19:02   #35
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

7×23×71 Posts
Default

@tdulcet - thanks for this! Yes, parallel-buildability is the one clear advantage automake has over my beloved command-line mode.

I think a good way to proceed is to let other Mlucas-building GIMPSers try your script out, if feedback is positive I'll be happy to add a link to it, along with suitable text and credit-to-you, on the README page. Sound good?
ewmayer is offline   Reply With Quote
Old 2020-05-22, 02:00   #36
tdulcet
 
Jun 2018

2·3 Posts
Default

@ewmayer Sounds great. Thanks! Feedback is always welcome.
tdulcet is offline   Reply With Quote
Old 2020-06-07, 20:40   #37
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

7·23·71 Posts
Default

Quote:
Originally Posted by tdulcet View Post
@ewmayer Sounds great. Thanks! Feedback is always welcome.
FYI, I added a note re. your script under "News" at the Mlucas readme page - hopefully that will encourage a few more people to try it out and provide feedback.
ewmayer is offline   Reply With Quote
Old 2020-07-05, 11:05   #38
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

2·5·31 Posts
Default

Curiosity has got the better of me.
Will the new ARM cpu being designed to run Mac OS11 be able to run Mlucas, or is it far too early to know ...

Thanks
bayanne is offline   Reply With Quote
Old 2020-07-05, 23:35   #39
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

101100101001112 Posts
Default

Quote:
Originally Posted by bayanne View Post
Curiosity has got the better of me.
Will the new ARM cpu being designed to run Mac OS11 be able to run Mlucas, or is it far too early to know ...

Thanks
I intend to port my ARM inline-asm routines to the forthcoming "Apple cores", yes.
ewmayer is offline   Reply With Quote
Old 2020-07-08, 23:36   #40
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

262478 Posts
Default

Couple significant announcements, of the I-have-good-news-and-bad-news variety.

o First, the bad: I have found and fixed a pair of critical bugs affecting FFT lengths of form 3*2k. This means current GIMPS double-checks at FFT length 3M (3072K) and recently-reached-by-the-GIMPS-first-time-test-wavefront 6M (6144K). The bug is specific to 256-bit SIMD builds, meaning x86 avx and avx2-targeting builds. Assuming a multithreaded build, only FFT radix sets of form 192,[powers of 2] are affected, but radix-192 is the most common leading radix appearing in the runtime-based mlucas.cfg tuning file for GIMPS-relevant FFT lengths of the above form, in my experience. ARM builds are not affected, but I rebuilt those binaries as a matter of course, to make sure my bugfix didn't inadvertently break anything there.

o Now the good news: Thanks to Loïc Le Loarer, we have a vastly improved version of the primenet.py assignment-management script for users to try out. This uses Primenet v5 API calls to do cool stuff like register one's computer and monitor progress of one's various runs across multiple devices, as shown in the attachment below.

Check out the Mlucas readme page for details and updated links!
Attached Thumbnails
Click image for larger version

Name:	primenet_dashboard.png
Views:	18
Size:	167.2 KB
ID:	22748  
ewmayer is offline   Reply With Quote
Old 2020-07-09, 03:41   #41
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

102308 Posts
Default

Quote:
Originally Posted by ewmayer View Post
I have found and fixed a pair of critical bugs affecting FFT lengths of form 3*2k. This means current GIMPS double-checks at FFT length 3M (3072K) and recently-reached-by-the-GIMPS-first-time-test-wavefront 6M (6144K). The bug is specific to 256-bit SIMD builds, meaning x86 avx and avx2-targeting builds. Assuming a multithreaded build, only FFT radix sets of form 192,[powers of 2] are affected, but radix-192 is the most common leading radix appearing in the runtime-based mlucas.cfg tuning file for GIMPS-relevant FFT lengths of the above form, in my experience. ARM builds are not affected, but I rebuilt those binaries as a matter of course, to make sure my bugfix didn't inadvertently break anything there.
This raises some questions.
100Mdigit exponents use 18M ffts.
For example, complex FFT radices 36 16 16 32 32
which is 32 2k.
Are they affected too? Have they been checked for whether they're affected?
How many versions back do the relevant bugs go?
But it would not affect SSE2 builds, correct?
kriesel is offline   Reply With Quote
Old 2020-07-09, 05:29   #42
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

7·23·71 Posts
Default

Quote:
Originally Posted by kriesel View Post
This raises some questions.
100Mdigit exponents use 18M ffts.
For example, complex FFT radices 36 16 16 32 32
which is 32 2k.
Are they affected too? Have they been checked for whether they're affected?
How many versions back do the relevant bugs go?
But it would not affect SSE2 builds, correct?
The patch-related notes on the readme detail all this - your example is FFT length 9*2^k, not the 3*2^k possibly affected by the bug. The bug is actually quite easy to look for based on certain key params in the carry-related sourcefiles, now that I know to double-check those prior to release.

Bug is only related to new code introduced in v19, and if your run at whatever FFT length and radices doesn't crash for expos < 98% the max permitted for the given FFT length (look for the p[ = ...]/pmax_rec on startup, it's unaffected by the bug.

Last fiddled with by ewmayer on 2020-07-09 at 05:30
ewmayer is offline   Reply With Quote
Old 2020-07-09, 11:59   #43
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT)

569610 Posts
Default

Are any exponents potentially affected tested and double checked with mlucas?
henryzz is offline   Reply With Quote
Old 2020-07-09, 14:10   #44
tdulcet
 
Jun 2018

2×3 Posts
Default New PrimeNet script

Quote:
Originally Posted by ewmayer View Post
Thanks to Loïc Le Loarer, we have a vastly improved version of the primenet.py assignment-management script for users to try out.
Thank you Loïc Le Loarer for creating this new PrimeNet script! I just updated my Install Script for Linux to use it. It will automatically set most of the --register options with the computers system info.

Quote:
Originally Posted by ewmayer View Post
I have found and fixed a pair of critical bugs affecting FFT lengths of form 3*2k.
@ewmayer I tried to download the new source tarballs, but I am getting the old MD5 checksums and not what is listed on the Mlucas README. I was going to update my scripts with the new checksums.
tdulcet is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mlucas v18 available ewmayer Mlucas 48 2019-11-28 02:53
Mlucas version 17.1 ewmayer Mlucas 96 2019-10-16 12:55
MLucas on IBM Mainframe Lorenzo Mlucas 52 2016-03-13 08:45
Mlucas on Sparc - Unregistered Mlucas 0 2009-10-27 20:35
mlucas on sun delta_t Mlucas 14 2007-10-04 05:45

All times are UTC. The time now is 11:25.

Sat Aug 15 11:25:37 UTC 2020 up 2 days, 8:01, 2 users, load averages: 1.40, 1.78, 1.73

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.