![]() |
![]() |
#34 | |
Oct 2019
11 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#35 |
"Ed Hall"
Dec 2009
Adirondack Mtns
5×727 Posts |
![]()
That is correct.
I think B2 will have to address the segmentation fault issue. I think I've seen it with the wip branch in the past, but not with the trunk branch. Last fiddled with by EdH on 2019-10-25 at 00:20 |
![]() |
![]() |
![]() |
#36 | |
Oct 2019
11 Posts |
![]() Quote:
I managed to use the following command to recompile the trunk version and run ./yafu "tune" successfully (without USE_AVX2=1) Code:
make clean make x86_64 NFS=1 USE_SSE41=1 Last fiddled with by Ferrier on 2019-10-25 at 03:46 |
|
![]() |
![]() |
![]() |
#37 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
1110001100112 Posts |
![]() Quote:
Thanks for the report. Hopefully B2 sees this and has a chance to chime in about the avx2 issue. |
|
![]() |
![]() |
![]() |
#38 |
Oct 2019
11 Posts |
![]()
Hi EdH,
I followed the instructions and get yafu working. But I noticed in factor.log that when doing siqs factoring, it is still using msieve-1.38 which I think the latest version per your msieve install guide is 1.54 (I double checked that I have modified the msieve path in Makefile per your guide) Any idea on this? Thanks Last fiddled with by Ferrier on 2019-10-25 at 16:54 |
![]() |
![]() |
![]() |
#39 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
5×727 Posts |
![]() Quote:
That text is hard coded into the factor/qs/SIQS.c source code. I don't think it represents the current version of msieve in any way. This is another question for B2. -Ed |
|
![]() |
![]() |
![]() |
#40 |
"Ben"
Feb 2007
337110 Posts |
![]()
The Xeon Gold 6136 supports AVX512, but you will have to get the code in branches/wip to use it. To do that go here: https://sourceforge.net/p/yafu/code/.../branches/wip/ and click on download snapshot.
Should compile in linux with NFS=1 USE_AVX2=1 SKYLAKEX=1 assuming you have a recent version of gcc (I think 7.3 or better). The msieve-1.38 that you see, as EdH mentioned, is hardcoded into the siqs codebase. It is only used to solve siqs matrices and is perfectly suited for that (newer versions of msieve wouldn't help). More recent versions of msieve are used in NFS jobs. So you are doing everything correct. |
![]() |
![]() |
![]() |
#41 | |
Oct 2019
11 Posts |
![]() Quote:
I tried to compile yafu wip Code:
svn co https://svn.code.sf.net/p/yafu/code/branches/wip $HOME/Math/yafuwip I modified the Makefile with msieve path and yafu.ini suggested by OP trying to compile, had the same issue: https://www.mersenneforum.org/showpo...9&postcount=18 But lscpu shows Intel(R) Xeon(R) Gold 6136 CPU supporting avx2 avx512f avx512cd Here is my output: Code:
root@c3:~/Math/yafuwip# make NFS=1 USE_AVX2=1 SKYLAKEX=1 gcc -g -DUSE_AVX2 -DUSE_AVX512F -DUSE_AVX512BW -march=skylake-avx512 -DUSE_AVX2 -DUSE_SSE41 -mavx2 -DUSE_SSE41 -m64 -msse4.1 -DUSE_NFS -O3 -fomit-frame-pointer -Wall -I. -Iinclude -Itop/aprcl -Itop/ -I../msieve/zlib -I../gmp/include -I../gmp-ecm/include/ -c -o factor/qs/msieve/lanczos.o factor/qs/msieve/lanczos.c In file included from factor/qs/msieve/lanczos.c:20:0: include/qs.h:30:10: fatal error: cofactorize.h: No such file or directory #include "cofactorize.h" ^~~~~~~~~~~~~~~ compilation terminated. Makefile:369: recipe for target 'factor/qs/msieve/lanczos.o' failed make: *** [factor/qs/msieve/lanczos.o] Error 1 |
|
![]() |
![]() |
![]() |
#42 |
"Ed Hall"
Dec 2009
Adirondack Mtns
5×727 Posts |
![]()
Hi Ferrier,
This is actually a misplaced (or unregistered file - I'm not sure which) The fix is to move (or copy) cofactorize.h from the yafu/factor/qs** directory into the yafu/include directory and give that a try. **I'm pretty sure that's where it was. If not, try to "locate" it. -Ed |
![]() |
![]() |
![]() |
#43 | |
Oct 2019
10112 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#44 | |
Oct 2019
11 Posts |
![]() Quote:
Code:
make NFS=1 USE_AVX2=1 SKYLAKEX=1 Some observations: Run ./yafu RSA-100 caused Code:
root@c3c:~/Math/yafuwip# ./yafu 1522605027922533360535618378132637429718068114961380688657908494580122963258952897654000350692006139 fac: factoring 1522605027922533360535618378132637429718068114961380688657908494580122963258952897654000350692006139 fac: using pretesting plan: normal fac: using specified qs/gnfs crossover of 93 digits fac: using specified qs/snfs crossover of 75 digits div: primes less than 10000 fmt: 1000000 iterations rho: x^2 + 3, starting 200 iterations on C100 rho: x^2 + 2, starting 200 iterations on C100 rho: x^2 + 1, starting 200 iterations on C100 nfs: searching for brent special forms... nfs: searching for homogeneous cunningham special forms... nfs: searching for XYYXF special forms... nfs: couldn't find special form pm1: starting B1 = 150K, B2 = gmp-ecm default on C100 ecm: 30/30 curves on C100, B1=2k, B2=gmp-ecm default ecm: 74/74 curves on C100, B1=11k, B2=gmp-ecm default ecm: 214/214 curves on C100, B1=50k, B2=gmp-ecm default, ETA: 0 sec pm1: starting B1 = 3750K, B2 = gmp-ecm default on C100 double free or corruption (out) Aborted (core dumped) ./yafu 'siqs(some c95)' works too (with obvious 10% time saving compared to trunk version!) Last fiddled with by Ferrier on 2019-10-29 at 04:43 |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How I Install CADO-NFS onto my Ubuntu Machines | EdH | EdH | 3 | 2019-06-24 03:42 |
How I Install GMP-ECM onto my Ubuntu Machines | EdH | EdH | 12 | 2019-04-16 09:28 |
How I Install msieve onto my Ubuntu Machines | EdH | EdH | 0 | 2018-02-23 14:43 |
How I Install ggnfs onto my Ubuntu Machines | EdH | EdH | 0 | 2018-02-22 03:31 |
How I Install GMP onto my Ubuntu Machines | EdH | EdH | 0 | 2018-02-21 23:48 |