Go Back > Great Internet Mersenne Prime Search > Software > Mlucas

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

1012 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:

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's Avatar
Sep 2002
Rep├║blica de California

2×5,581 Posts

@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
Jun 2018

5 Posts

@ewmayer Sounds great. Thanks! Feedback is always welcome.
tdulcet is offline   Reply With Quote

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 21:24.

Tue Jun 2 21:24:13 UTC 2020 up 69 days, 18:57, 2 users, load averages: 2.24, 2.21, 2.16

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.