mersenneforum.org > YAFU Just a Curiosity
 User Name Remember Me? Password
 Register FAQ Search Today's Posts Mark Forums Read

 2020-06-16, 15:45 #12 VBCurtis     "Curtis" Feb 2005 Riverside, CA 102248 Posts That is an excellent and superior viewpoint. As a non-programmer, I tend to think in terms of "can this be improved for little effort?", and running CADO as a black-box that receives input and returns factors seems much easier to implement than breaking out individual tasks and coding individual calls for those things. Your scripts already do those individual things, so you know from experience they can be implemented; I do not, so I advocated for the simplest change that adds speed (CADO as black box).
 2020-06-16, 16:08 #13 bsquared     "Ben" Feb 2007 22×32×7×13 Posts The CADO-as-a-black-box approach might not be too bad to add to yafu... I really don't want to have to deal with param files, managing different stages, etc. But if someone already has good params set up and I can just use a system call to "cado.py -n 12489...123971", then wait to read and parse an output file, that seems doable. Would have to figure out how to run tune without running entire jobs though. Anyone know if that can be done (i.e., request to only collect N relations)?
2020-06-16, 16:37   #14
EdH

"Ed Hall"
Dec 2009
Adirondack Mtns

1100110010112 Posts

Quote:
 Originally Posted by bsquared The CADO-as-a-black-box approach might not be too bad to add to yafu... I really don't want to have to deal with param files, managing different stages, etc. But if someone already has good params set up and I can just use a system call to "cado.py -n 12489...123971", then wait to read and parse an output file, that seems doable. Would have to figure out how to run tune without running entire jobs though. Anyone know if that can be done (i.e., request to only collect N relations)?
Actually, I can give more details later, but once you set up CADO-NFS, it is basically run as simply as:
Code:
go to cado-nfs directory
,/cado-nfs.py <number>
go get factors
During the setup and periodically afterwords, the param files can be updated by simply replacing the existing ones. And, yes, you can tell it the number of relations wanted and to stop before LA, etc. I can give you more details later. Or, maybe VBCurtis can.

Last fiddled with by EdH on 2020-06-16 at 17:25 Reason: corrected "sieving" to "LA"

 2020-06-16, 17:24 #15 EdH     "Ed Hall" Dec 2009 Adirondack Mtns 1100110010112 Posts A couple more details to consider: CADO-NFS, on its own, uses a filename base from its parameter files and places all data in a randomly named folder in the /tmp directory. Both of these need to be addressed (easily done) in order to make retrieving factors easier. They can both be addressed simply by setting the working directory and filename on the command line. In fact, all (or, close to all) parameters can be overriden by command line values If the /tmp directory is used, a computer reset will remove all work, so a more permanent location should be used for anything of any length. Starting a new CADO-NFS number will fail if prior number data is encountered, so any previous data should be removed once factors are retrieved. The random directory naming keeps this from happening, but makes factor retrieval more complex.

 Thread Tools

 Similar Threads Thread Thread Starter Forum Replies Last Post Gordon PrimeNet 1 2015-07-30 06:49 petrw1 Math 4 2015-07-19 02:33 R.D. Silverman GMP-ECM 4 2012-05-10 20:00 JuanTutors Math 3 2004-10-20 04:37 ET_ Math 7 2004-02-13 17:36

All times are UTC. The time now is 08:23.

Sat Aug 15 08:23:10 UTC 2020 up 2 days, 4:58, 0 users, load averages: 2.75, 2.26, 2.15

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