mersenneforum.org  

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

Reply
 
Thread Tools
Old 2018-01-26, 23:03   #12
danaj
 
"Dana Jacobsen"
Feb 2011
Bangkok, TH

22×227 Posts
Default

Presumably given the forum you're looking at testing Mersenne numbers, not general purpose testing. It isn't clear from your post, and I hate guessing at the question.

First check out the simple GMP program here: Rosetta-Code Lucas-Lehmer in GMP.

That should give you a decent idea of what GMP can do. There are certainly more optimizations, but they start getting more complicated. If it's worth doing, prime95 probably does it regardless of how "complicated" it is to write.

gwnum is more efficient than GMP once past 2000-4000 digits, and it keeps getting faster. This is pretty well known -- the underlying math library is just better tuned for large numbers and the particular operations. GMP is more portable and easier to write custom programs with, which is great, but these aren't a big problem for prime95, which would far rather have the speed.
danaj is offline   Reply With Quote
Old 2018-01-27, 00:00   #13
Wetitpig
 
Jan 2018

3·5 Posts
Default

Actually I am just worried because it is not completely open-source.
Wetitpig is offline   Reply With Quote
Old 2018-01-27, 00:02   #14
Wetitpig
 
Jan 2018

3·5 Posts
Default

Quote:
Originally Posted by danaj View Post
Presumably given the forum you're looking at testing Mersenne numbers, not general purpose testing. It isn't clear from your post, and I hate guessing at the question.

First check out the simple GMP program here: Rosetta-Code Lucas-Lehmer in GMP.

That should give you a decent idea of what GMP can do. There are certainly more optimizations, but they start getting more complicated. If it's worth doing, prime95 probably does it regardless of how "complicated" it is to write.

gwnum is more efficient than GMP once past 2000-4000 digits, and it keeps getting faster. This is pretty well known -- the underlying math library is just better tuned for large numbers and the particular operations. GMP is more portable and easier to write custom programs with, which is great, but these aren't a big problem for prime95, which would far rather have the speed.
I have seen it and the program done will be very slowly. I know.
Wetitpig is offline   Reply With Quote
Old 2018-01-27, 01:50   #15
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Quote:
Originally Posted by Wetitpig View Post
Actually I am just worried because it is not completely open-source.
Mlucas may interest you then. Even Mlucas will leave a simple GMP program in the dust.
Dubslow is offline   Reply With Quote
Old 2018-01-27, 05:41   #16
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

72·197 Posts
Default

Quote:
Originally Posted by Wetitpig View Post
Actually I am just worried because it is not completely open-source.
What do you mean? Only the "crc" part (that does the server reports in a "trusted" form) is not open source. The rest, you can download the sources and compile it by yourself. What you will get, will be an "untrusted" client, but that you have anyhow, if you write your own code which will be much slower, and still untrusted.
LaurV is offline   Reply With Quote
Old 2018-01-27, 05:46   #17
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Quote:
Originally Posted by LaurV View Post
What do you mean? Only the "crc" part (that does the server reports in a "trusted" form) is not open source. The rest, you can download the sources and compile it by yourself. What you will get, will be an "untrusted" client, but that you have anyhow, if you write your own code which will be much slower, and still untrusted.
Forget not the usage restrictions. Certain definitions of "open source" can be construed so that unrestricted usage is a requirement. (Certainly "libre software" definitely requires that.)
Dubslow is offline   Reply With Quote
Old 2018-01-27, 07:35   #18
Wetitpig
 
Jan 2018

3×5 Posts
Default

Quote:
Originally Posted by LaurV View Post
What do you mean? Only the "crc" part (that does the server reports in a "trusted" form) is not open source. The rest, you can download the sources and compile it by yourself. What you will get, will be an "untrusted" client, but that you have anyhow, if you write your own code which will be much slower, and still untrusted.
So I just do manual reporting
Wetitpig is offline   Reply With Quote
Old 2018-01-27, 07:36   #19
Wetitpig
 
Jan 2018

3·5 Posts
Default

Quote:
Originally Posted by Dubslow View Post
Mlucas may interest you then. Even Mlucas will leave a simple GMP program in the dust.
Thanks. I will build it and try.
Wetitpig is offline   Reply With Quote
Old 2018-01-29, 11:19   #20
Wetitpig
 
Jan 2018

1510 Posts
Default

Quote:
Originally Posted by Batalov View Post
We didn't want to give away the answer to your quest too early!
After all, "life is journey - not a destination!"

But if you want to see the destination, then you can mouse over this hidden text:
..."a custom program for testing prime number using libgmp" has no chances against Prime95 for Mersenne primes/composites.
It will be beat with Prime95's both hands tied behind his back.
After some trials I now found that the break even point is at around 2^400000 - 1.
Now I will optimize wven morw to see how it goes.
Wetitpig is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
29.2 benchmark help Prime95 Software 69 2017-05-23 23:49
29.2 benchmark help #2 (Ryzen only) Prime95 Software 10 2017-05-08 13:24
Benchmark Variances Fred Software 5 2016-04-01 18:15
Benchmark Estimate Primeinator Information & Answers 8 2009-06-11 23:39
Does anyone have i7 920? for Benchmark? cipher Twin Prime Search 2 2009-04-14 20:16

All times are UTC. The time now is 17:50.


Sun Aug 1 17:50:10 UTC 2021 up 9 days, 12:19, 0 users, load averages: 2.73, 2.32, 1.92

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.