mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2022-09-20, 20:38   #1
maxal
 
maxal's Avatar
 
Feb 2005

4048 Posts
Default factmsieve.py does not wait for completion of polynomial selection by msieve

I'm using factmsieve.py version 0.86, which for large enough numbers (with > 98 digits) performs polynomial selection with msieve. However, there must a bug, since while it runs a given number (MS_THREADS) of msieve copies with various selection parameters in parallel, it does not wait for their completion, and just immediately exists with the error message "could not find any polynomials" (a typical screenshot is quoted below). Interestingly, it leaves the msieve copies still working in the background and doing their job.

So, my workaround is the following:
1. Run factmsieve.py as above and receive the error message "could not find any polynomials".
2. Wait until the msieve copies complete their job (in the background) and create files with polynomial candidates.
3. Delete the .lcf file
4. Start factmsieve.py again - it runs msieve copies again but also immediately finds the msieve results from the previous run available, and picks a polynomial from them.
5. Kill msieve copies running in background (since the polynomial selection was already done).
6. Let factmsieve run normally and complete the remaining steps.

It's somewhat cumbersome doing this each time.
Could someone experienced in Python and multithreading look at factmsieve.py code and make it patiently wait for msieve's copies doing polynomial selection to complete their job?
Thank you!


Code:
$ ../factmsieve.py my.n
-> ________________________________________________________________
-> | Running factmsieve.py, a Python driver for MSIEVE with GGNFS |
-> | sieving support. It is Copyright, 2010, Brian Gladman and is |
-> | a conversion of factmsieve.pl that is Copyright, 2004, Chris |
-> | Monico.   Version 0.86 (Python 2.6 or later) 20th June 2011. |
-> |______________________________________________________________|
-> Running Python 2.7
-> This is client 1 of 1
-> Running on 38 Cores with 1 hyper-thread per Core
-> Working with NAME = my
-> Found n = 750412794244466806469094249756154370232848447008544287170986475690195640863077174145983232360052408915373815673023945081543.
-> Polynomial file my.poly does not exist!
-> Running polynomial selection ...
-> ./msieve -s ../111/my.dat.T0 -l ../111/my.log.T0 -i ../111/my.ini.T0 -nf ../111/my.fb.T0 -np 1,100 -v > ../111/my.msp.T0
-> ./msieve -s ../111/my.dat.T1 -l ../111/my.log.T1 -i ../111/my.ini.T1 -nf ../111/my.fb.T1 -np 101,200 -v > ../111/my.msp.T1

...skipped...

-> ./msieve -s ../111/my.dat.T37 -l ../111/my.log.T37 -i ../111/my.ini.T37 -nf ../111/my.fb.T37 -np 4201,4300 -v >> ../111/my.msp.T37
could not find any polynomials
could not find any polynomials

Last fiddled with by maxal on 2022-09-20 at 20:40
maxal is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running msieve polynomial selection in parallel? ryanp Msieve 9 2019-11-16 19:45
ggnfs, msieve, and factmsieve.py md12345 Information & Answers 15 2019-08-02 08:22
In CUDALucas, do I have to wait until 100% completion before knwoing that my cadidate is composite? ICWiener GPU Computing 18 2018-06-18 05:45
reduce number of coefficient for polynomial selection with msieve on GPU aein Factoring 3 2017-02-25 16:42
msieve 1.52 with GPU polynomial selection cgy606 Msieve 16 2016-10-06 14:16

All times are UTC. The time now is 07:12.


Tue Oct 4 07:12:49 UTC 2022 up 47 days, 4:41, 0 users, load averages: 1.04, 0.81, 0.83

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

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔