![]() |
![]() |
#89 |
"Ed Hall"
Dec 2009
Adirondack Mtns
2×2,251 Posts |
![]()
B2 has probably changed it again! He does that, which is a good thing. It helps me keep on my toes and it shows he's actively improving the YAFU package. The yafu.ini file has changed in a big way just recently.
|
![]() |
![]() |
![]() |
#90 |
Aug 2020
102 Posts |
![]()
Hi,
Thank you for installation instructions, It's looking good and working correctly ! But it's not working as I expecting, According to "lscpu" command, I have 8 Cpu(s) and 2 threads per cpu, Together it's 16 threads (this is the number I put on threads field of "yafu.ini" file), According to "top" and "monitor" Ubuntu tools, Actually I see yafu running on one cpu with 100% usage, What about other cpus and why yafu does no use them ? Do I miss something ? Thanks a lot, |
![]() |
![]() |
![]() |
#91 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
119616 Posts |
![]() Quote:
1. Make sure the yafu.ini file is in the directory that you are using to call YAFU. 2. Make sure that the threads line isn't commented out with a "%" symbol. You might also try adding "-threads 16" (without quotes) to the command line and see if that works. |
|
![]() |
![]() |
![]() |
#92 |
"Oliver"
Sep 2017
Porta Westfalica, DE
24×61 Posts |
![]()
Please try running something with SIQS. It should look something like this: ==== sieving in progress ( 16 threads): 82576 relations needed ====
In some steps, yafu does not use more then 1 thread. You might have to add prefer_gmpecm to the ini-file and make sure the GMP-ECM binary's location is set correctly. |
![]() |
![]() |
![]() |
#93 |
Aug 2020
28 Posts |
![]()
Thanks,
Now it's working correctly, Unfortunately, I'm getting "Segmentation fault" while I try to factor 512 bit number, Please see the following log: Code:
applying option threads=16 applying option aprcl_p=500 applying option aprcl_d=200 applying option ggnfs_dir=/home/user/Desktop/yafu/Math/ggnfs/bin/ applying option B1ecm=11000 applying option ecm_path=/usr/local/bin/ecm applying option B1pm1=20000 applying option tune_info=Intel(R) Xeon(R) Gold 5122 CPU @ 3.60GHz,LINUX64,1.59078e-05,0.196092,0.299688,0.0999245,102.36,42 applying option tune_info=Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz,LINUX64,7.5902e-05,0.182524,0.621489,0.0992485,108.201,2399.99 08/12/20 12:09:54 v1.35-beta @ user-virtual-machine, System/Build Info: Using GMP-ECM 7.0.5-dev, Powered by GMP 6.2.0 detected Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz detected L1 = 32768 bytes, L2 = 12582912 bytes, CL = 64 bytes measured cpu frequency ~= 2399.983520 using 1 random witnesses for Rabin-Miller PRP checks =============================================================== ======= Welcome to YAFU (Yet Another Factoring Utility) ======= ======= bbuhrow@gmail.com ======= ======= Type help at any time, or quit to quit ======= =============================================================== cached 664579 primes. pmax = 9999991 >> >> factor(7481941016577287348099705569618881449446613674024887958060868042015962068162606112448282331657456711392343427317702862486293906907971066705762469196914429) fac: factoring 7481941016577287348099705569618881449446613674024887958060868042015962068162606112448282331657456711392343427317702862486293906907971066705762469196914429 fac: using pretesting plan: normal fac: using tune info for qs/gnfs crossover div: primes less than 10000 fmt: 1000000 iterations rho: x^2 + 3, starting 1000 iterations on C154 rho: x^2 + 2, starting 1000 iterations on C154 rho: x^2 + 1, starting 1000 iterations on C154 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 C154 ecm: 30/30 curves on C154, B1=2k, B2=gmp-ecm default ecm: 74/74 curves on C154, B1=11k, B2=gmp-ecm default ecm: 214/214 curves on C154, B1=50k, B2=gmp-ecm default, ETA: 0 sec pm1: starting B1 = 3750K, B2 = gmp-ecm default on C154 ecm: 430/430 curves on C154, B1=250k, B2=gmp-ecm default, ETA: 0 sec pm1: starting B1 = 15M, B2 = gmp-ecm default on C154 ecm: 904/904 curves on C154, B1=1M, B2=gmp-ecm default, ETA: 0 sec ecm: 2350/2350 curves on C154, B1=3M, B2=gmp-ecm default, ETA: 0 sec ecm: 4480/4480 curves on C154, B1=11M, B2=gmp-ecm default, ETA: 0 sec ecm: 2453/2453 curves on C154, B1=43M, B2=gmp-ecm default, ETA: 0 sec nfs: commencing nfs on c154: 7481941016577287348099705569618881449446613674024887958060868042015962068162606112448282331657456711392343427317702862486293906907971066705762469196914429 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 nfs: commencing polynomial search over range: 8192 - 8442 nfs: commencing polynomial search over range: 8692 - 8942 nfs: commencing polynomial search over range: 8942 - 9192 nfs: commencing polynomial search over range: 8442 - 8692 nfs: commencing polynomial search over range: 9692 - 9942 nfs: commencing polynomial search over range: 9442 - 9692 nfs: commencing polynomial search over range: 10192 - 10442 nfs: commencing polynomial search over range: 9192 - 9442 nfs: commencing polynomial search over range: 10692 - 10942 nfs: commencing polynomial search over range: 11192 - 11442 nfs: commencing polynomial search over range: 11442 - 11692 nfs: commencing polynomial search over range: 11692 - 11942 nfs: commencing polynomial search over range: 11942 - 12192 nfs: commencing polynomial search over range: 9942 - 10192 nfs: commencing polynomial search over range: 10942 - 11192 nfs: commencing polynomial search over range: 10442 - 10692 deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient deadline: 8640000 CPU-seconds per coefficient coeff 11760 specialq 1 - 15246007 other 33328 - 79987 Segmentation fault (core dumped) |
![]() |
![]() |
![]() |
#94 |
"Ed Hall"
Dec 2009
Adirondack Mtns
119616 Posts |
![]()
I think I failed to mention the msieve edit in my first post and this might be what's happening here. If you haven't made the msieve edit, check out post #81 and edit the appropriate file and then recompile both msieve and YAFU and see if that fixes it.
|
![]() |
![]() |
![]() |
#95 |
Tribal Bullet
Oct 2004
5×709 Posts |
![]()
Sorry for the huge delay, fix has been committed to Msieve trunk.
|
![]() |
![]() |
![]() |
#96 |
"Ed Hall"
Dec 2009
Adirondack Mtns
2·2,251 Posts |
![]() |
![]() |
![]() |
![]() |
#97 |
Aug 2006
Monza, Italy
73 Posts |
![]()
Hi all, Makefile currently contains the following code
Code:
# modify the following line for your particular msieve installation ifeq ($(KNC),1) LIBS += -L../msieve/ else ifeq ($(COMPILER),icc) LIBS += -L../msieve/lib/linux else LIBS += -L../msieve/lib/linux/gcc73/ endif endif Code:
LIBS += -L../msieve Last fiddled with by RedGolpe on 2020-09-28 at 17:31 |
![]() |
![]() |
![]() |
#98 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
450210 Posts |
![]() Quote:
![]() |
|
![]() |
![]() |
![]() |
#99 |
"Evan"
Dec 2020
Montreal
23·32 Posts |
![]()
Hello! I just switched over to Manjaro from W10, and can no longer build yafu. I have followed your guides on WSL to build it on Windows, but I can not build it on a native Linux system. I will include logs from the `make` command being run. (This goes beyond the space my terminal stores logs, so I cannot include it all.) This occurs with all make argument combinations.
Code:
/usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/nfs.h:287: multiple definition of `NFS_ABORT'; factor/factor_common.o:/home/uwu/Math/yafu/include/nfs.h:287: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/qs.h:864: multiple definition of `SIQS_ABORT'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/qs.h:864: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/qs.h:862: multiple definition of `sieve_params'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/qs.h:862: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/qs.h:860: multiple definition of `savefile_buf_off'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/qs.h:860: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/qs.h:859: multiple definition of `savebuf'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/qs.h:859: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/qs.h:702: multiple definition of `testRoots_ptr'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/qs.h:702: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/qs.h:690: multiple definition of `nextRoots_ptr'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/qs.h:690: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/qs.h:682: multiple definition of `firstRoots_ptr'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/qs.h:682: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/qs.h:646: multiple definition of `resieve_med_ptr'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/qs.h:646: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/qs.h:632: multiple definition of `tdiv_med_ptr'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/qs.h:632: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/qs.h:613: multiple definition of `scan_ptr'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/qs.h:613: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/qs.h:599: multiple definition of `med_sieve_ptr'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/qs.h:599: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/factor.h:599: multiple definition of `test_qn_res'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/factor.h:599: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:211: multiple definition of `gstr3'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:211: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:211: multiple definition of `gstr2'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:211: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:211: multiple definition of `gstr1'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:211: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:208: multiple definition of `P_MAX'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:208: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:207: multiple definition of `P_MIN'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:207: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:206: multiple definition of `NUM_P'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:206: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:205: multiple definition of `PRIMES'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:205: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:200: multiple definition of `szSOEp'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:200: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:196: multiple definition of `zFive'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:196: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:196: multiple definition of `zThree'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:196: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:196: multiple definition of `zTwo'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:196: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:196: multiple definition of `zOne'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:196: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:196: multiple definition of `zZero'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:196: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:192: multiple definition of `sysname_sz'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:192: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:191: multiple definition of `sysname'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:191: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:186: multiple definition of `HAS_AVX2'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:186: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:185: multiple definition of `HAS_AVX'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:185: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:184: multiple definition of `HAS_SSE41'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:184: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:183: multiple definition of `CLSIZE'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:183: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:182: multiple definition of `L2CACHE'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:182: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:182: multiple definition of `L1CACHE'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:182: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:181: multiple definition of `CPU_ID_STR'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:181: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:180: multiple definition of `VERBOSE_PROC_INFO'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:180: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:179: multiple definition of `MEAS_CPU_FREQUENCY'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:179: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:176: multiple definition of `PRIMES_TO_SCREEN'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:176: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:175: multiple definition of `PRIMES_TO_FILE'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:175: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:172: multiple definition of `LCGSTATE'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:172: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:171: multiple definition of `gmp_randstate'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:171: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:170: multiple definition of `g_rand'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:170: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:167: multiple definition of `NO_CLK_TEST'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:167: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:166: multiple definition of `scriptname'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:166: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:165: multiple definition of `sessionname'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:165: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:164: multiple definition of `batchfilename'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:164: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:163: multiple definition of `CMD_LINE_REPEAT'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:163: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:162: multiple definition of `USERSEED'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:162: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:161: multiple definition of `USEBATCHFILE'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:161: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:158: multiple definition of `LATHREADS'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:158: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:157: multiple definition of `THREADS'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:157: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:151: multiple definition of `NUM_WITNESSES'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:151: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:148: multiple definition of `OBASE'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:148: first defined here /usr/bin/ld: factor/nfs/snfs.o:/home/uwu/Math/yafu/include/yafu.h:147: multiple definition of `IBASE'; factor/qs/msieve/lanczos.o:/home/uwu/Math/yafu/include/yafu.h:147: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:397: all] Error 1 [uwu@uwu yafu]$ |
![]() |
![]() |
![]() |
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 |