mersenneforum.org  

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

Reply
 
Thread Tools
Old 2011-02-09, 18:25   #34
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

12E216 Posts
Default

Quote:
Originally Posted by Prime95 View Post
I found my notes about how to get out of dependency hell. The 32-bit Linux version is now available!

The 32-bit version was built on Ubuntu 10.04, the 64-bit version was built on Ubuntu 10.10. If needed I can install 64-bit Ubuntu 10.04 and rebuild the 64-bit version. Just let me know if you run into glibc problems.

Ubuntu 9.10 64-bit

Code:
./mprime: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./mprime)


Luigi

Last fiddled with by ET_ on 2011-02-09 at 18:25
ET_ is offline   Reply With Quote
Old 2011-02-09, 18:38   #35
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

2×3×19×31 Posts
Default

Completion percentage is certainly not right:
Code:
[Feb 9 10:00] Waiting 5 seconds to stagger worker starts.
[Feb 9 10:00] Worker starting
[Feb 9 10:00] Setting affinity to run worker on logical CPUs 2,3
[Feb 9 10:00] Optimal P-1 factoring of M58021673 using up to 4608MB of memory.
[Feb 9 10:00] Assuming no factors below 2^70 and 2 primality tests saved if a factor is found.
[Feb 9 10:00] Optimal bounds are B1=660000, B2=16830000
[Feb 9 10:00] Chance of finding a factor is an estimated 5.62%
[Feb 9 10:00] Using Core2 type-3 FFT length 3M, Pass1=1K, Pass2=3K, 2 threads
[Feb 9 10:00] Setting affinity to run helper thread 1 on logical CPUs 2,3
[Feb 9 10:00] Available memory is 1494MB.
[Feb 9 10:00] Using 1472MB of memory.  Processing 51 relative primes (384 of 480 already processed).
[Feb 9 10:05] M58021673 stage 2 is 91.868590% complete.
[Feb 9 10:19] M58021673 stage 2 is 92.737674% complete. Time: 867.268 sec.
[Feb 9 10:35] M58021673 stage 2 is 93.600987% complete. Time: 938.293 sec.
[Feb 9 10:50] M58021673 stage 2 is 94.456527% complete. Time: 900.866 sec.
[Feb 9 11:05] M58021673 stage 2 is 95.374253% complete. Time: 911.726 sec.
[Feb 9 11:20] M58021673 stage 2 is 96.330139% complete. Time: 912.869 sec.
[Feb 9 11:35] M58021673 stage 2 is 97.283906% complete. Time: 926.810 sec.
[Feb 9 11:51] M58021673 stage 2 is 98.237672% complete. Time: 945.193 sec.
[Feb 9 12:06] M58021673 stage 2 is 99.200625% complete. Time: 883.005 sec.
[Feb 9 12:21] M58021673 stage 2 is 100.000000% complete. Time: 883.203 sec.
[Feb 9 12:35] M58021673 stage 2 is 100.000000% complete. Time: 872.055 sec.
[Feb 9 12:47] Available memory is 1476MB.
[Feb 9 12:47] Using 1326MB of memory.  Processing 45 relative primes (435 of 480 already processed).
[Feb 9 12:49] M58021673 stage 2 is 100.000000% complete. Time: 844.224 sec.
[Feb 9 13:04] M58021673 stage 2 is 100.000000% complete. Time: 882.639 sec.
[Feb 9 13:19] M58021673 stage 2 is 100.000000% complete. Time: 873.327 sec.
[Feb 9 13:33] M58021673 stage 2 is 100.000000% complete. Time: 880.313 sec.
James Heinrich is offline   Reply With Quote
Old 2011-02-09, 19:02   #36
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

7,691 Posts
Default

Quote:
Originally Posted by ET_ View Post
Code:
./mprime: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./mprime)
Do you think if I download Ubuntu 10.04 and build 64-bit mprime that it will run properly on your Ubuntu 9.10 system?

Linux folks, help me out here! Why is it so hard to build one mprime executable that runs on all Linux variants? Or is it simply that I adopted the bleeding edge 10.10 release too soon?
Prime95 is offline   Reply With Quote
Old 2011-02-09, 19:33   #37
tichy
 
Nov 2010

22×19 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Do you think if I download Ubuntu 10.04 and build 64-bit mprime that it will run properly on your Ubuntu 9.10 system?

Linux folks, help me out here! Why is it so hard to build one mprime executable that runs on all Linux variants? Or is it simply that I adopted the bleeding edge 10.10 release too soon?
Ad 1. If the glibc versions are different and not backward compatible then problaby not.

Ad 2. I don't know if it is hard in a general sense - I'd rather say that it is hard doing it the way you do it. If I had to do it, that is to prepare a staticaly linked binary, I'd separate the build process from the actual linux distribution used. I think this can be achieved by praparing a cross-target build environment employing custom toolchain based on selected glibc/gcc/(kernel ?) combo. Of course once you make a decision on the oldest glibc version supported (which would be the baseline for your custom toolchain) it will imply a clear cut for users having older installations, but then they can always make their own builds.
I think googling for topics on cross-compilation would bring more details on that - there are many of these since the popularity of embedded deviced programming environments.
I have some printouts in the cabinet at work (and some practical knowledge regarding cross compiling), so if you don't mind waiting till tomorrow I can check them for you.
Of course I may be wrong will all the above, but then I hope someone can jump in here and correct me.

HTH

[EDIT] If the above is valid then an added value would be having two build enviroments for 32- and 64-bit binary on a single linux box.

Last fiddled with by tichy on 2011-02-09 at 20:05
tichy is offline   Reply With Quote
Old 2011-02-09, 20:33   #38
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

769110 Posts
Default

Quote:
Originally Posted by ET_ View Post
./mprime: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./mprime)
I had an old Ubuntu 9.04 64-bit CD lying around. I installed that and built a new 64-bit mprime. Download it and give it a try.
Prime95 is offline   Reply With Quote
Old 2011-02-09, 20:47   #39
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

9,629 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Linux folks, help me out here! Why is it so hard to build one mprime executable that runs on all Linux variants? Or is it simply that I adopted the bleeding edge 10.10 release too soon?
Because some distros Linux are the new Windows. :-) (In more ways than one. There was a time when kernels were even faster incompatible than recently.)

Idea: you could 'exec' curl calls to an external binary, and cut that Gordian knot. The users should be then instructed to have a working curl binary on their system. [Some programs do that with gzip, instead of linking to zlib.]
Batalov is offline   Reply With Quote
Old 2011-02-10, 12:20   #40
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

12E216 Posts
Default

Quote:
Originally Posted by Prime95 View Post
I had an old Ubuntu 9.04 64-bit CD lying around. I installed that and built a new 64-bit mprime. Download it and give it a try.
Thanks, I'll test it as I get home tonight, if it's the actual linux 64-bit link on post #1!

Luigi

Last fiddled with by ET_ on 2011-02-10 at 12:22
ET_ is offline   Reply With Quote
Old 2011-02-10, 14:15   #41
Rhyled
 
Rhyled's Avatar
 
May 2010

32×7 Posts
Thumbs up Thanks for the quick fix

Quote:
Originally Posted by Rhyled View Post
I ran a couple of benchmarks against the new 26.5 - 64 bit Windows version today. When reviewing my benchmarks, they are reported as version 26.4 build 1
When checking my latest benchmark, I noticed that both the Prime95 version and my clock speed are now being reported correctly. Thanks for the quick work.

Last fiddled with by Rhyled on 2011-02-10 at 14:15
Rhyled is offline   Reply With Quote
Old 2011-02-10, 18:35   #42
tichy
 
Nov 2010

7610 Posts
Cool glibc or not glibc

Is glibc a must ? If one would like to staticaly link C library into a binary (this is one of the options which could be considered for mprime to avoid problems encountered by George) then there are reports that glibc is not necessarily the best choice. Instead, uClibc (or other alternatives) could be used as a C library and uClibc++ as a C++ library.
tichy is offline   Reply With Quote
Old 2011-02-11, 01:04   #43
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

67168 Posts
Default

RAM usage in worker window titles don't match what the worker is actually doing:
Attached Thumbnails
Click image for larger version

Name:	PrimeRAM.png
Views:	231
Size:	22.6 KB
ID:	6216  
James Heinrich is offline   Reply With Quote
Old 2011-02-11, 04:21   #44
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

7,691 Posts
Default

Build 2 is available.
Prime95 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prime95 version 27.3 Prime95 Software 148 2012-03-18 19:24
Prime95 version 26.3 Prime95 Software 76 2010-12-11 00:11
Prime95 version 25.5 Prime95 PrimeNet 369 2008-02-26 05:21
Prime95 version 25.4 Prime95 PrimeNet 143 2007-09-24 21:01
When the next prime95 version ? pacionet Software 74 2006-12-07 20:30

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


Wed Dec 8 04:00:51 UTC 2021 up 137 days, 22:29, 1 user, load averages: 1.48, 1.22, 1.17

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.