![]() |
|
|
#89 |
|
"Oliver"
Sep 2017
Porta Westfalica, DE
110011000012 Posts |
If you have set your Iterations between screen outputs by chance to exactly the number of iterations to be done, the following will happen:
Code:
[Worker #1 Nov 15 19:48] Iteration: 100000 / 100000 [100.00%], roundoff: 0.070, ms/iter: 0.026, ETA: 30:25:40 |
|
|
|
|
|
#90 | |
|
Serpentine Vermin Jar
Jul 2014
D4E16 Posts |
Quote:
|
|
|
|
|
|
|
#91 |
|
Serpentine Vermin Jar
Jul 2014
2·13·131 Posts |
The download page has just been updated... v29.4 build 5 is now the official build. George gave his stamp of approval...
Enjoy! https://www.mersenne.org/download/ |
|
|
|
|
|
#92 | |
|
Sep 2003
2×5×7×37 Posts |
Quote:
|
|
|
|
|
|
|
#93 | |
|
Serpentine Vermin Jar
Jul 2014
2×13×131 Posts |
Quote:
|
|
|
|
|
|
|
#94 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
Quote:
|
|
|
|
|
|
|
#95 | |
|
"Robert Gerbicz"
Oct 2005
Hungary
3×547 Posts |
Quote:
Code:
printf("%d\n",strcmp("6.1.2","5.1.0"));
printf("%d\n",strcmp("10.0.0","5.1.0"));
Code:
1 -1 ps. not forget https://gmplib.org/manual/Useful-Mac...Constants.html "Global Constant: const char * const gmp_version The GMP version number, as a null-terminated string, in the form “i.j.k”. This release is "6.1.2". Note that the format “i.j” was used, before version 4.3.0, when k was zero." |
|
|
|
|
|
|
#96 |
|
Einyen
Dec 2003
Denmark
1101011111002 Posts |
There are variables for the version and minor version, so something like this should work:
Code:
if ((__GNU_MP_VERSION<5) || (__GNU_MP_VERSION==5 && __GNU_MP_VERSION_MINOR<1)) { jacobi_check=0; }
Last fiddled with by ATH on 2017-11-18 at 13:49 |
|
|
|
|
|
#97 |
|
Sep 2003
2×5×7×37 Posts |
But this is at compile time only. It needs a runtime check, to check the version of the shared library. So the global variable gmp_version is needed instead.
|
|
|
|
|
|
#98 | |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
6,793 Posts |
Quote:
Sorry, [/rant] on the state of software development these days.
|
|
|
|
|
|
|
#99 | |
|
Einyen
Dec 2003
Denmark
22·863 Posts |
Quote:
Code:
sscanf(gmp_version,"%i.%i",&ver,&mver);
if ((ver<5) || (ver==5 && mver<1)) { jacobi_check=0; }
Code:
ver=0; mver=0; i=0;
while(gmp_version[i]>=48 && gmp_version[i]<=57) { ver=ver*10+gmp_version[i]-48; i++; }
i++;
while(gmp_version[i]>=48 && gmp_version[i]<=57) { mver=mver*10+gmp_version[i]-48; i++; }
if ((ver<5) || (ver==5 && mver<1)) { jacobi_check=0; }
Last fiddled with by ATH on 2017-11-20 at 16:10 |
|
|
|
|
![]() |
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 |