mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Mlucas (https://www.mersenneforum.org/forumdisplay.php?f=118)
-   -   Mlucas v19.1 available (https://www.mersenneforum.org/showthread.php?t=26483)

kriesel 2021-05-10 15:10

aFor about half the stated price, and no ID theft cooperation required
[URL]https://www.ebay.com/itm/301323374960[/URL]
and plugs into a standard US 120VAC 15A or 20A outlet. Variations are available for other nations' standards.
All these, including the original [URL="https://www.globalindustrial.com/p/energy-saver?infoParam.campaignId=WR&msclkid=77b176673ab21083db9116fe748ca608&utm_source=bing&utm_medium=cpc&utm_campaign=%5BADL%5D%20%5BPLA%5D%20%5BTools%20%26%20Instruments%5D%20%7BTest,%20Measurement%20%26%20Inspection%7D%20(Neutral)%20-%20%5BNormal%20SKUs%5D&utm_term=4582489600871789&utm_content=Tools%20%26%20Instruments%20-%20Test,%20Measurement%20%26%20Inspection%20-%20(Neutral)&adlclid=77b176673ab21083db9116fe748ca608"]KillaWatt,[/URL] obstruct both outlets of a duplex outlet.
Your local building supply or hardware store will gladly supply a cube tap or multi-outlet power strip to deal with that.

ewmayer 2021-05-10 21:10

[QUOTE=bayanne;578137]My new iMac will be arriving shortly, and I hope to compile and run MLucas v19.1 on it.

However where do I find the simple version on how to compile on ARM cpu?[/QUOTE]

Hi, Bayanne - tdulcet and danc2 have put together a very nice auto-install-and-tune script, but that is alas Linux-only. But a simple DIY command-line build for Arm-based iMac is straightforward, here the condensed instructions - this assumes you have the native Clang compiler installed, 'which clang' to check that. First download the v19.1 source tarball, which is linked at the Mlucas [url=http://www.mersenneforum.org/mayer/README.html]README[/url] page, unpack as detailed, then
[i]
cd ~/*19.1
mkdir obj
cd obj
clang -c -O3 -DUSE_ARM_V8_SIMD -DUSE_THREADS ../src/*.c >& build.log
grep error build.log
[Assuming above grep comes up empty]clang -o Mlucas *.o -lm -lpthread -lrt
[/i]
Note Clang does not need explicit library-linkage of the math, pthread and realtime libraries, i.e. does not need the user to invoke [i]-lm -lpthread -lrt[/i] at link time; if you include them and get a Clang linker error, try omitting them and relinking with just [i]clang -o Mlucas *.o[/i]

To autotune for 8-core iMac M1, a hybrid of 4 'performance' and 4 'efficiency' cores: [i]./Mlucas -s m -iters 1000 -cpu 0:7[/i]

Assuming all that works, please post a copy of the resulting mlucas.cfg file containing optimal-FFT-parameters for your machine here. You can do assignments auto-management using the primenet.py script, a copy of which is in ~/*19.1/src . I suggest you create a run-directory at top level in your user-dir, copy the Mlucas binary, mlucas.cfg and primenet.py there, then run primenet.py as described at the README.

bayanne 2021-05-11 09:16

Thanks, will let you know how I get on ...

ewmayer 2021-05-11 20:10

How much RAM are you getting in your iMac? I really dislike the lack of RAM-expandability in the M1-based Apple offerings, as detailed in articles like this:

[url=https://appleinsider.com/articles/21/04/06/theoretically-you-can-upgrade-ram-ssd-on-your-m1-mac-mini-but-you-shouldnt]Theoretically, you can upgrade RAM & SSD on your M1 Mac mini, but you shouldn't[/url] | AppleInsider

Been busy last few months adding p-1 factoring support to the in-development v20 code - stage 2 really benefits from lots of RAM. Glad I always use humbler micro-PC-style systems among my optimization targets, making sure stage 2 performs at least halfway-decently with just 4-16GB RAM will also come in handy on M1 systems.

bayanne 2021-05-22 06:31

[QUOTE]How much RAM are you getting in your iMac?[/QUOTE]

As much as I was able to get, i.e. 16gb

ewmayer 2021-05-22 21:27

[QUOTE=bayanne;578847]As much as I was able to get, i.e. 16gb[/QUOTE]

For p-1 of current-wavefront (6M FFT) exponents, that should allow you to cut 20-25% work off the minimum-memory option for my stage 2 implementation, depending on how much of it you allow stage 2 to use: 8GB => 20%, 12GB => 25%. I'm working on the v20 stage 2 restart-from-interrupt code right now.

bayanne 2021-06-12 04:29

[QUOTE=ewmayer;578883]For p-1 of current-wavefront (6M FFT) exponents, that should allow you to cut 20-25% work off the minimum-memory option for my stage 2 implementation, depending on how much of it you allow stage 2 to use: 8GB => 20%, 12GB => 25%. I'm working on the v20 stage 2 restart-from-interrupt code right now.[/QUOTE]

Stuck at present, sent you a PM ...

bayanne 2021-06-18 05:35

[QUOTE=bayanne;580749]Stuck at present, sent you a PM ...[/QUOTE]

Now built, and crunching away, thanks for your help.

Is there a way of contacting Primenet with a progress report on the exponent?

ewmayer 2021-06-18 19:57

[QUOTE=bayanne;581310]Is there a way of contacting Primenet with a progress report on the exponent?[/QUOTE]

As I noted in my earlier e-mail, see the "Get exponents from Primenet" section of the README - it's linked in the Index at top of the page; please read it carefully, as it's your first go.

You'll need to copy the primenet.py script from your /src dir to whatever dir(s) you are planning to run instances from - for Apple M1, just a single instance using 1-8 threads (depending on how much you want to stress your CPU & cooling) seems a good compromise between throughput and ease-of-use.

bayanne 2021-06-19 11:09

[QUOTE=ewmayer;581365]As I noted in my earlier e-mail, see the "Get exponents from Primenet" section of the README - it's linked in the Index at top of the page; please read it carefully, as it's your first go.

You'll need to copy the primenet.py script from your /src dir to whatever dir(s) you are planning to run instances from - for Apple M1, just a single instance using 1-8 threads (depending on how much you want to stress your CPU & cooling) seems a good compromise between throughput and ease-of-use.[/QUOTE]

I probably did not express my request very clearly. I was hoping to update my Account Assignments Details which at present only show that my assignment was assigned on 2021-06-16 and that the last update was the same day. I have tried running primenet.py but it has not updated my progress on the exponent, or given the the estimated finish time.
Can this be done with primenet.py?

M344587487 2021-06-19 12:55

[QUOTE=bayanne;581310]Now built, and crunching away, thanks for your help.

Is there a way of contacting Primenet with a progress report on the exponent?[/QUOTE]
If you have a watt meter, it'd be interesting to know how much power the M1 chip draws under mlucas load. I've only just noticed Lorenzo's stats otherwise I'd be bugging you for that too, what a tasty thing to have missed.


Apple's chips are intriguing, almost to the point where they may break down my incredibly anti-Apple stance. In a year or two if a Linux port gets stable enough that mac OS can comfortably be nuked from orbit they may get some cash from me yet.


All times are UTC. The time now is 04:24.

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