mersenneforum.org  

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

Reply
 
Thread Tools
Old 2016-02-29, 22:31   #408
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

22×863 Posts
Default

Sorry I always forget to consider which dll files are needed with the binaries. I added libwinpthread-1.dll to the zip files.
ATH is offline   Reply With Quote
Old 2016-03-08, 22:27   #409
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

2×5×11×47 Posts
Default

Anyone willing to supply the latest linux binaries please?
pinhodecarlos is offline   Reply With Quote
Old 2016-03-09, 00:00   #410
WraithX
 
WraithX's Avatar
 
Mar 2006

55410 Posts
Default

Quote:
Originally Posted by pinhodecarlos View Post
Anyone willing to supply the latest linux binaries please?
The release of version 7.0 is nearing completion. Release candidate 2 is now available. See here for details:
http://lists.gforge.inria.fr/piperma...ch/004333.html
WraithX is offline   Reply With Quote
Old 2016-04-07, 12:21   #411
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

10011000000012 Posts
Default

Quote:
Originally Posted by WraithX View Post
The release of version 7.0 is nearing completion. Release candidate 2 is now available. See here for details:
http://lists.gforge.inria.fr/piperma...ch/004333.html
Had issues while making ecm-params.
The file README.gpu is still missing.
I had to look bk to the configure files to find the -enable_gpu parameter.

Luigi
ET_ is offline   Reply With Quote
Old 2016-04-07, 15:07   #412
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

22·3·983 Posts
Default

Quote:
Originally Posted by ET_ View Post
Had issues while making ecm-params.
The file README.gpu is still missing.
I had to look bk to the configure files to find the -enable_gpu parameter.

Luigi
I recommend that you get the svn version.

Paul
xilman is offline   Reply With Quote
Old 2016-04-08, 08:28   #413
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

10011000000012 Posts
Default

Quote:
Originally Posted by xilman View Post
I recommend that you get the svn version.

Paul
I found the rc1 in the inria forge, and still no README.gpu

I will recheck, maybe I did something wrong...
ET_ is offline   Reply With Quote
Old 2016-04-08, 15:48   #414
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

22·3·983 Posts
Default

Quote:
Originally Posted by ET_ View Post
I found the rc1 in the inria forge, and still no README.gpu

I will recheck, maybe I did something wrong...
I meant to get svn checkout https://scm.gforge.inria.fr/anonscm/svn/ecm/ SVN repository direct from inria. Thereafter svn update will keep you on the bleeding edge.

Good luck!

Paul
xilman is offline   Reply With Quote
Old 2016-04-12, 02:38   #415
johnadam74
 
"John A Burroughs"
Jan 2016
Warwick, RI

2510 Posts
Default

Anyone have a foolproof way of compiling this version of the software? I'm trying to compile it on my i7 5820K with Windows. I have tried Cygwin64, mingw64 and Visual Studio and I receive different errors on each program.

I've even tried the SVN latest version.

I'm open to suggestions since I've never had trouble compiling a program before and I've been working on this for over a week now.

Thanks,


John
johnadam74 is offline   Reply With Quote
Old 2016-04-12, 03:43   #416
WraithX
 
WraithX's Avatar
 
Mar 2006

2×277 Posts
Default

Quote:
Originally Posted by johnadam74 View Post
Anyone have a foolproof way of compiling this version of the software? I'm trying to compile it on my i7 5820K with Windows. I have tried Cygwin64, mingw64 and Visual Studio and I receive different errors on each program.

I've even tried the SVN latest version.

I'm open to suggestions since I've never had trouble compiling a program before and I've been working on this for over a week now.

Thanks,


John
It is easy to compile once you have your environment set up for it. Since you didn't say what you've tried specifically, or what errors you ran into, I'll give you a run down based on how I compile GMP and GMP-ECM.

First, you'll need MSYS. I get the one from here:
https://sourceforge.net/projects/min...nary-packages/
The current latest is from 2013-05-15, and is called msys+7za+wget+svn+git+mercurial+cvs-rev13.7z
I then extract that to:
c:\msys\msys-20130515\

Then you'll need mingw64. You can get that here:
https://sourceforge.net/projects/min.../mingw-builds/
Choose which compiler version you want, the latest is 4.8.5, 4.9.3, or 5.3.0. Probably go with 4.9.3, unless you want 5.3.0. Then choose "threads-posix", then choose "seh", then download the latest available. Once I've done that I extract it to:
c:\mingw64\mingw64-4.9.3-20150903\

Then, go back into the msys folder and edit the following file:
c:\msys\msys-20130515\etc\profile
to change:
Code:
if [ $MSYSTEM == MINGW32 ]; then
  export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
to this:
Code:
if [ $MSYSTEM == MINGW32 ]; then
#    export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
  export PATH=".:/c/mingw64/mingw64-4.9.3-20150903/bin:/usr/local/bin:/bin:$PATH"
Then, download the latest GMP from https://gmplib.org/ The current latest is 6.1.0.
Open up an msys shell by double clicking the c:\msys\msys-20130515\msys.bat file. Let's say you extracted GMP to c:\gmp\gmp-6.1.0\, then in the msys shell, you would run the following commands:
cd /c/gmp/gmp-6.1.0/
./configure
make
make check

If all of that completes successfully, then you need to copy two files:
1) copy gmp.h from c:\gmp\gmp-6.1.0\ to c:\mingw64\mingw64-4.9.3-20150903\x86_64-w64-mingw32\include\
2) copy libgmp.a from c:\gmp\gmp-6.1.0\.libs\ to c:\mingw64\mingw64-4.9.3-20150903\x86_64-w64-mingw32\lib\

Now you have msys, mingw64, and gmp set up correctly. To get gmp-ecm compiled, download the latest svn, let's say you save those files to:
c:\gmp-ecm\svn_2915\
Then, in the msys shell, you would:
cd /c/gmp-ecm/svn_2915/
autoreconf -i
./configure --enable-asm-redc --build=x86_64-w64-mingw32 --disable-assert
make
make check

This should all complete successfully for you. If you run into any errors, let us know and we can try to help you resolve them. If you don't run into any errors, then you will have a working ecm.exe file that you can use to factor numbers!
WraithX is offline   Reply With Quote
Old 2016-04-12, 10:06   #417
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

22×3×983 Posts
Default

Quote:
Originally Posted by WraithX View Post
Now you have msys, mingw64, and gmp set up correctly. To get gmp-ecm compiled, download the latest svn, let's say you save those files to:
c:\gmp-ecm\svn_2915\
Then, in the msys shell, you would:
cd /c/gmp-ecm/svn_2915/
autoreconf -i
./configure --enable-asm-redc --build=x86_64-w64-mingw32 --disable-assert
make
make check

This should all complete successfully for you. If you run into any errors, let us know and we can try to help you resolve them. If you don't run into any errors, then you will have a working ecm.exe file that you can use to factor numbers!
The latest, as of last night, is SVN 2916 and it works well for me. Note that 2914 and below have a serious bug in the GPU portion of GMP-ECM.

I would (and did last night)also run make ecm-params between make and make check for (near) optimal performance.

Last fiddled with by xilman on 2016-04-12 at 10:09
xilman is offline   Reply With Quote
Old 2016-04-12, 12:52   #418
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

72·11 Posts
Default

Quote:
Originally Posted by johnadam74 View Post
Anyone have a foolproof way of compiling this version of the software? I'm trying to compile it on my i7 5820K with Windows. I have tried Cygwin64, mingw64 and Visual Studio and I receive different errors on each program.

I've even tried the SVN latest version.

I'm open to suggestions since I've never had trouble compiling a program before and I've been working on this for over a week now.

Thanks,


John
It builds fine for me with Visual Studio 2013 and CUDA 7.5 (for the GPU build). It won't build with Visual Studio 2015 at the moment becasuse NVIDIA has yet to update its CUDA toolkit to work with this compiler.

If you can let me know what issues you ran into in using the Visual Studio build, I might be able to help.
Brian Gladman 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 04:27.


Fri Jul 7 04:27:57 UTC 2023 up 323 days, 1:56, 0 users, load averages: 1.29, 1.67, 1.60

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, 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.

โ‰  ยฑ โˆ“ รท ร— ยท โˆ’ โˆš โ€ฐ โŠ— โŠ• โŠ– โŠ˜ โŠ™ โ‰ค โ‰ฅ โ‰ฆ โ‰ง โ‰จ โ‰ฉ โ‰บ โ‰ป โ‰ผ โ‰ฝ โŠ โА โŠ‘ โŠ’ ยฒ ยณ ยฐ
โˆ  โˆŸ ยฐ โ‰… ~ โ€– โŸ‚ โซ›
โ‰ก โ‰œ โ‰ˆ โˆ โˆž โ‰ช โ‰ซ โŒŠโŒ‹ โŒˆโŒ‰ โˆ˜ โˆ โˆ โˆ‘ โˆง โˆจ โˆฉ โˆช โจ€ โŠ• โŠ— ๐–• ๐–– ๐–— โŠฒ โŠณ
โˆ… โˆ– โˆ โ†ฆ โ†ฃ โˆฉ โˆช โІ โŠ‚ โŠ„ โŠŠ โЇ โŠƒ โŠ… โŠ‹ โŠ– โˆˆ โˆ‰ โˆ‹ โˆŒ โ„• โ„ค โ„š โ„ โ„‚ โ„ต โ„ถ โ„ท โ„ธ ๐“Ÿ
ยฌ โˆจ โˆง โŠ• โ†’ โ† โ‡’ โ‡ โ‡” โˆ€ โˆƒ โˆ„ โˆด โˆต โŠค โŠฅ โŠข โŠจ โซค โŠฃ โ€ฆ โ‹ฏ โ‹ฎ โ‹ฐ โ‹ฑ
โˆซ โˆฌ โˆญ โˆฎ โˆฏ โˆฐ โˆ‡ โˆ† ฮด โˆ‚ โ„ฑ โ„’ โ„“
๐›ข๐›ผ ๐›ฃ๐›ฝ ๐›ค๐›พ ๐›ฅ๐›ฟ ๐›ฆ๐œ€๐œ– ๐›ง๐œ ๐›จ๐œ‚ ๐›ฉ๐œƒ๐œ— ๐›ช๐œ„ ๐›ซ๐œ… ๐›ฌ๐œ† ๐›ญ๐œ‡ ๐›ฎ๐œˆ ๐›ฏ๐œ‰ ๐›ฐ๐œŠ ๐›ฑ๐œ‹ ๐›ฒ๐œŒ ๐›ด๐œŽ๐œ ๐›ต๐œ ๐›ถ๐œ ๐›ท๐œ™๐œ‘ ๐›ธ๐œ’ ๐›น๐œ“ ๐›บ๐œ”