mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2011-06-13, 13:35   #12
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·1,789 Posts
Default

Quote:
Originally Posted by LaurV View Post
not when each entry in the list (input for yafu call number k) is a function of yafu output number k-1, or even worse, k-1, k-2.... Think about printing 500 or more fibo numbers, or factorials, with that method...
Good point.

If you have some programming experience, I'd be happy to help you create a custom routine within the yafu source to do what you want. Contact me by PM or over email if you're interested.


Quote:
Originally Posted by LaurV View Post
Anyhow, I still like yafu, with no loops and with its... how did you said? "ordinary math" and "nothing special anyway". It is the bloodiest fastest thing I ever saw of this type for what I need to do (and believe me, I tested it!).

Lots of congrats for it!
bsquared is offline   Reply With Quote
Old 2021-08-31, 10:04   #13
bur
 
bur's Avatar
 
Aug 2020
79*6581e-4;3*2539e-3

40110 Posts
Default

I want to give yafu a list of numbers to factor and use this commandline:

Code:
./yafu "factor(@)" -batchfile "./infile.txt" -threads 10 -v
This results in an error:

Code:
>> fopen error: No such file or directory
couldn't open  for reading
Access is as follows (added write permission to make sure):
Code:
$ ls infile.txt -l
-rw-rw-r-- 1 florian florian 272 Aug 31 11:58 infile.txt
This works:
Code:
cat infile.txt | yafu "factor(@)" -threads 10 -v
Any idea what might be the problem here?

Last fiddled with by bur on 2021-08-31 at 10:16
bur is offline   Reply With Quote
Old 2021-08-31, 12:48   #14
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

5·11·73 Posts
Default

Just a couple thoughts:

Did you try it without the quotes around ./infile.txt? And, possibly without the preceding ./, since it's in the same directory?
EdH is offline   Reply With Quote
Old 2021-08-31, 12:56   #15
unconnected
 
unconnected's Avatar
 
May 2009
Russia, Moscow

25×83 Posts
Default

This option is broken in YAFU v2, see here
unconnected is offline   Reply With Quote
Old 2021-08-31, 16:44   #16
bur
 
bur's Avatar
 
Aug 2020
79*6581e-4;3*2539e-3

401 Posts
Default

Ah, that explains that. I tried with and without quotes, relative path, absolute path etc. Piping works well though, so no big problem.
bur is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running YAFU via Aliqueit doesn't find yafu.ini EdH YAFU 8 2018-03-14 17:22
Batch jobs using AWS Batch GP2 Cloud Computing 1 2016-12-07 11:31
14e batch of WU's pinhodecarlos NFS@Home 25 2015-07-25 17:50
Got first batch of TF to 75 Chuck GPU to 72 23 2015-05-10 20:34
Running YAFU lorgix YAFU 9 2012-03-28 03:37

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


Sat Oct 23 01:07:33 UTC 2021 up 91 days, 19:36, 0 users, load averages: 1.49, 1.29, 1.28

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