mersenneforum.org > YAFU YAFU 2.0
 Register FAQ Search Today's Posts Mark Forums Read

2022-08-10, 22:20   #397
bsquared

"Ben"
Feb 2007

3,637 Posts

Quote:
 Originally Posted by James Heinrich I process batches of 100 at a time, submit results, fetch new, re-launch YAFU against the next batch. I've done this successfully for long periods with v1.34.5 but only just started this on YAFU 2.09 today because the -batchfile option was broken until this morning. I'm not fully convinced that it's a YAFU-error rather than a Windows-error, just that YAFU's handling of the error condition should be better.
I've just done some tests with larger batch files and I'm having problems too. There is some kind of memory or file descriptor leak somewhere that I'll have to track down. Sorry about that! Smaller batches seem to work... which of course doesn't fix the problem but might be a work around for now.

2022-08-10, 23:35   #398
James Heinrich

"James Heinrich"
May 2004
ex-Northern Ontario

ED416 Posts

Quote:
 Originally Posted by bsquared Smaller batches seem to work...
I've always done batch of 100. I've completed 14x 100 since restarting after posting my bug report and it's been going fine (so far).

 2022-08-11, 14:38 #399 bsquared     "Ben" Feb 2007 3,637 Posts After some longer tests, I've checked in a few fixes and added some missing traps for file open errors. The .exe is updated. Long batchfiles are working fine for me now too. Last fiddled with by bsquared on 2022-08-11 at 14:39
 2022-08-11, 15:07 #400 James Heinrich     "James Heinrich" May 2004 ex-Northern Ontario 22·13·73 Posts It had been running fine with 100-batches for about 16h, but I've switched to the new build. If I may repeat a request in the JSON output, would it be possible to add a sum key in addition the the tXX keys? I know we can calculate it ourselves, but it's easier if it's just there. Also, perhaps for more-compact output the not-used values could be omitted -- for example if P+1, NFS, etc wasn't run there's no need to output the zero values: "pp1":0.0000, "nfs-total":0.0000, "nfs-poly":0.0000, "nfs-sieve":0.0000, "nfs-filter":0.0000, "nfs-la":0.0000, "nfs-sqrt":0.0000. That's the beauty of JSON -- fields can be added or omitted without breaking the output.
 2022-08-12, 14:53 #401 EdH     "Ed Hall" Dec 2009 Adirondack Mtns 127416 Posts Quick question: Can YAFU pass on GPU use for Msieve calls. I'm not seeing it in the docs. I thought I had in the past.
2022-08-14, 22:00   #402
BudgieJane

"Jane Sullivan"
Jan 2011
Beckenham, UK

23×3×13 Posts

Quote:
 Originally Posted by bsquared Checked in new update and new windows exe: + by default json output is now all on one line, -jsonpretty option to pretty print like before (each category on separate line)
How do I put that jsonpretty option into yafu.ini? When I just put the word on a line by itself (as with similar options in the sample yafu.ini) it seems to be ignored. I've checked and I haven't misspelt it.

 2022-08-16, 17:17 #403 Stargate38     "Daniel Jackson" May 2011 14285714285714285714 13178 Posts Try "jsonpretty=1". I've noticed that for a given flag that putting the flag name, followed by "=1" (i.e. v=1) works.
2022-08-16, 22:50   #404
BudgieJane

"Jane Sullivan"
Jan 2011
Beckenham, UK

23×3×13 Posts

Quote:
 Originally Posted by Stargate38 Try "jsonpretty=1". I've noticed that for a given flag that putting the flag name, followed by "=1" (i.e. v=1) works.
No, sorry, that doesn't work.

 2022-08-17, 12:49 #405 bsquared     "Ben" Feb 2007 3,637 Posts For me, either of the following work in yafu.ini: Code: jsonpretty jsonpretty=1 Things to check: 1) make sure you have the latest .exe. I updated the executable without tweaking the version number, so you'd have needed to re-download it. 2) If the statement is the last line of the file, make sure it has a newline/carriage return. 3) I have only tested on linux and windows. I have no idea how something different could change the results but stranger things have happened.
2022-08-17, 13:06   #406
bsquared

"Ben"
Feb 2007

3,637 Posts

Quote:
 Originally Posted by EdH Quick question: Can YAFU pass on GPU use for Msieve calls. I'm not seeing it in the docs. I thought I had in the past.
It doesn't have the ability to pass on user-input arguments to msieve as strings. If the gpu can be used without any special argument strings, and you build msieve-gpu and link it into yafu like normal, then I suppose it would work. Otherwise you'd have to modify the source.

I have only rarely used msieve-gpu... if you can provide me the special argument strings needed (if any) then I can maybe add an option to use it. Also if using the gpu changes other things like norms or min_e.

2022-08-17, 13:31   #407
EdH

"Ed Hall"
Dec 2009

10010011101002 Posts

Quote:
 Originally Posted by bsquared It doesn't have the ability to pass on user-input arguments to msieve as strings. If the gpu can be used without any special argument strings, and you build msieve-gpu and link it into yafu like normal, then I suppose it would work. Otherwise you'd have to modify the source. I have only rarely used msieve-gpu... if you can provide me the special argument strings needed (if any) then I can maybe add an option to use it. Also if using the gpu changes other things like norms or min_e.
Thanks! I think just adding -g 0 to the msieve call should work, but I'll play and get back with you. I just wanted to make sure it wasn't already there and I was missing it. (Maybe there's a way to have msieve default to GPU if available...)

 Similar Threads Thread Thread Starter Forum Replies Last Post chris2be8 YAFU 9 2022-02-17 17:52 EdH YAFU 8 2018-03-14 17:22 bsquared YAFU 119 2015-11-05 16:24 storflyt32 YAFU 2 2015-06-29 05:19 bsquared YAFU 28 2012-07-20 16:17

All times are UTC. The time now is 16:05.

Wed Aug 17 16:05:32 UTC 2022 up 41 days, 10:52, 1 user, load averages: 1.35, 1.55, 1.51