![]() |
![]() |
#1 |
Oct 2006
Berlin, Germany
659 Posts |
![]()
Hi,
this is the first time I try to compile gmp-ecm. I need a static linked version optimized for core2. What is your opinion of my used configure options? Code:
$ ./configure CC="gcc -std=gnu99" CFLAGS="-W -Wall -Wundef -O3 -pedantic -fomit-frame-pointer -m64 -mtune=core2 -march=core2" $ make LDFLAGS="--static -static-libgcc" $ strip ecm $ ldd ecm not a dynamic executable $ ls -l ecm -rwxrwxr-x 1 yoyoadm yoyoadm 1948104 Dec 25 00:21 ecm yoyo |
![]() |
![]() |
![]() |
#2 |
Oct 2006
Berlin, Germany
659 Posts |
![]()
Now the problem with ecm is, that it requires extrem amount of memore already in stage 1 for a c305:
ecm -v -timestamp -chkpnt checkpnt -maxmem 10000 -inp in -savea save 25000000000 1 GNU MP: Cannot allocate memory (size=1074003984) Can I do something on compile/linking against it? |
![]() |
![]() |
![]() |
#3 | |
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
32·1,303 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Oct 2006
Berlin, Germany
10100100112 Posts |
![]()
The -maxmem is a relict for stage 2. I thought that memory consumption in stage 1 isn't very big.
|
![]() |
![]() |
![]() |
#5 |
Einyen
Dec 2003
Denmark
23·431 Posts |
![]()
I got Linux installed on my old Core2Quad computer and tried to compile it.
Here is a 64bit version you can try: gmpecm-svn3013-core2-linux.tar.gz GMP 6.1.2 is compiled with: ./configure ABI=64 CFLAGS="-O3 -m64 -march=core2 -mtune=core2" --enable-static --disable-shared make make install make check GMPECM svn 3013 compiled with: autoreconf -i ./configure ABI=64 CFLAGS="-O3 -m64 -march=core2 -mtune=core2" CPPFLAGS="-I/usr/local/include" LDFLAGS="-static -static-libgcc -static-libstdc++" --disable-assert --enable-static --disable-shared (added stack options, see below) make make ecm-params make check sudo make install It would not accept the stack options the normal way in the LDFLAGS, so I opened the Makefile after the configure step. I searched for the line LIBECM_LDFLAGS and replaced the line it was in with: LIBECM_LDFLAGS = -Wl,--stack,16777216,65536 I tried to add it to the normal LDFLAGS in the line about LIBECM_LDFLAGS in the Makefile, but it would not accept the "--stack" option in that line, I have no idea why. |
![]() |
![]() |
![]() |
#6 |
Oct 2006
Berlin, Germany
659 Posts |
![]()
Thank you.
Wat is the reason to increase the stack size from default (2M) to 16M? Last fiddled with by yoyo on 2016-12-25 at 22:49 |
![]() |
![]() |
![]() |
#7 | |
Einyen
Dec 2003
Denmark
344810 Posts |
![]() Quote:
I'm not sure if it is actually necessary anymore. It might also have fixed and old bug there P+1 could not use B1 > 2^32, but I do not remember exactly. |
|
![]() |
![]() |
![]() |
#8 |
Einyen
Dec 2003
Denmark
23·431 Posts |
![]()
I managed to compile a 32bit version as well: gmpecm-svn3013-core2-linux32bit.tar.gz
Using the exact same options for GMP 6.1.2 and GMPECM except I changed ABI=64 to ABI=32 and -m64 to -m32. Though I had to install gcc-multilib to get it to accept 32bit: "sudo apt-get install gcc-multilib" Do you need Windows binaries as well for Core2? Last fiddled with by ATH on 2016-12-25 at 22:32 |
![]() |
![]() |
![]() |
#9 |
Oct 2006
Berlin, Germany
659 Posts |
![]()
I use the Windows binaries from Jeff already.
What about Mac versions? |
![]() |
![]() |
![]() |
#10 |
Einyen
Dec 2003
Denmark
23×431 Posts |
![]()
Sorry I have no Mac or access to any Mac
![]() Make sure you test those binaries that they really are static and that the 32 bit version is really 32 bit and that they work on your test cases. |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error compiling version 29.1 on Arch Linux | graysky | Software | 5 | 2017-03-22 18:20 |
compiling ggnfs in Linux | framontb | Factoring | 2 | 2013-09-13 02:58 |
Linux static linked version of mprime | AlsXZ | Software | 0 | 2009-10-07 14:07 |
Compiling new version of GMP-ECM | M0CZY | GMP-ECM | 3 | 2006-05-27 09:54 |
which linux client should I use? static or dynamic linked one? | nngs | Software | 2 | 2005-01-20 04:05 |