mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > GMP-ECM

Reply
 
Thread Tools
Old 2014-07-17, 17:20   #353
lorgix
 
lorgix's Avatar
 
Sep 2010
Scandinavia

3×5×41 Posts
Default

Most speed-comparisons I remember favor MPIR.
lorgix is offline   Reply With Quote
Old 2014-08-24, 11:48   #354
Rysiu
 
Aug 2014

3 Posts
Default

Could someone compile the ECM based on GMP 6.0 and with the option of multi-threading (OpenMP)? (for Linux 64-bit)
Rysiu is offline   Reply With Quote
Old 2014-08-24, 22:38   #355
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

10010111111012 Posts
Default

Quote:
Originally Posted by Rysiu View Post
Could someone compile the ECM based on GMP 6.0 and with the option of multi-threading (OpenMP)? (for Linux 64-bit)
What do you expect multi-threading to get you that the python ECM script does not do for you already? We use the python script to set the number of independent threads for ECM, where each thread does its own curve.
VBCurtis is offline   Reply With Quote
Old 2014-10-20, 08:23   #356
Karl M Johnson
 
Karl M Johnson's Avatar
 
Mar 2010

6338 Posts
Default

What a glorious day for a new ECM binary!
This one is a native binary for Haswell 4xxx/5xxx CPUs, with AVX2 support.
A great deal of gratitude goes to ATH for providing the updated automated compilation environment.
MPIR 2.7.0 was used for compilation of GMP-ECM 6.4.4.


Of course, the native binary performed best in a preliminary benchmark (512 curves B1=1M B2=1B against C98; 5960X @ 4 GHz; YAFU 1.34):
Code:
ECM 7 SVN
Nehalem: 03:41.880
Core 2.: 03:42.380
Generic: 04:20.390


ECM 6.4.4
Haswell native: 03:19.018
Core i7.......: 03:45.265

ECM 6.4.2
Core i7: 03:39.280
Core 2.: 03:45.585
Very interested in the performance of latest dev version of ECM, but its compilation fails right now.

Happy factoring!
Attached Files
File Type: 7z ecm644-x64-haswell.7z (386.0 KB, 134 views)
Karl M Johnson is offline   Reply With Quote
Old 2014-10-22, 07:19   #357
Karl M Johnson
 
Karl M Johnson's Avatar
 
Mar 2010

3×137 Posts
Default

Another binary, latest SVN this time, for Haswell.
Has taken 184.36 seconds to complete the benchmark, making it the fastest Haswell binary.
Attached Files
File Type: 7z ecm700svn2540-x64-haswell.7z (805.9 KB, 116 views)
Karl M Johnson is offline   Reply With Quote
Old 2014-10-23, 18:50   #358
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

216810 Posts
Default

Quote:
Originally Posted by Karl M Johnson View Post
Another binary, latest SVN this time, for Haswell.
Has taken 184.36 seconds to complete the benchmark, making it the fastest Haswell binary.
Hmm... is gmp faster than mpir?

On a Haswell 4670K:

Your latest Haswell binary here:

Code:
Step 1 took 66281ms
Step 2 took 20531ms
My binary which I linked with GMP 6.0.0
Code:
Step 1 took 50421ms
Step 2 took 16688ms
EDIT: Both binaries are the same GMP-ECM version.

Last fiddled with by kracker on 2014-10-23 at 18:52
kracker is offline   Reply With Quote
Old 2014-10-23, 19:02   #359
Karl M Johnson
 
Karl M Johnson's Avatar
 
Mar 2010

6338 Posts
Default

Well I'll be!
Mayhaps it has something to do with using beta MPIR?
Or, perhaps GMP is indeed faster than MPIR?
Need more data.

PS
Can I get that binary of yours, please?

Last fiddled with by Karl M Johnson on 2014-10-23 at 19:03
Karl M Johnson is offline   Reply With Quote
Old 2014-10-23, 19:12   #360
lorgix
 
lorgix's Avatar
 
Sep 2010
Scandinavia

11478 Posts
Default

I'd be very surprised if GMP turned out to be faster than MPIR.
Also, I suggest you use something like a c200 for benchmarking.


Anyone have a recent binary for Nehalem?
lorgix is offline   Reply With Quote
Old 2014-10-23, 19:16   #361
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

23·271 Posts
Default

Quote:
Originally Posted by Karl M Johnson View Post
Well I'll be!
Mayhaps it has something to do with using beta MPIR?
Or, perhaps GMP is indeed faster than MPIR?
Need more data.

PS
Can I get that binary of yours, please?
Sure. I hope my numbers are right though... I ran them both atleast twice.
Attached Files
File Type: 7z ecm_gmp_6.0.0_x64.exe.7z (249.1 KB, 133 views)
kracker is offline   Reply With Quote
Old 2014-10-24, 04:50   #362
Karl M Johnson
 
Karl M Johnson's Avatar
 
Mar 2010

3×137 Posts
Default

Got interesting results.
On a C100, the difference between the binaries is too little to be evident.
However, on a C200:
Code:
GMP-ECM: 02:11.230
MPIR-ECM: 02:28.293
GMP-ECM is indeed faster on a C200 than MPIR-ECM!

Well, whaddaya know
Karl M Johnson is offline   Reply With Quote
Old 2014-10-24, 08:32   #363
Karl M Johnson
 
Karl M Johnson's Avatar
 
Mar 2010

3×137 Posts
Default

It gets worse on a C1000:
Code:
MRIP-ECM: 15:33.286
GMP-ECM: 12:48.195
Karl M Johnson is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Project Links masser Sierpinski/Riesel Base 5 25 2011-11-26 09:21
Links to Precompiled Msieve versions wblipp Msieve 0 2011-07-17 20:59
Links davieddy Information & Answers 9 2010-10-08 14:27
Links question ET_ PrimeNet 0 2008-01-26 09:35
Links. Xyzzy Forum Feedback 2 2007-03-18 02:17

All times are UTC. The time now is 01:29.


Sat Jul 17 01:29:26 UTC 2021 up 49 days, 23:16, 1 user, load averages: 0.86, 1.05, 1.15

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.