![]() |
![]() |
#45 |
Jun 2003
132·29 Posts |
![]()
Colab cheat sheet:
Model: 63 ==> Haswell Model: 79 ==> Broadwell Model: 85 ==> Skylake |
![]() |
![]() |
![]() |
#46 |
"Ed Hall"
Dec 2009
Adirondack Mtns
22×919 Posts |
![]() |
![]() |
![]() |
![]() |
#47 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
22×919 Posts |
![]() Quote:
Code:
-march= znver1 Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 2 On-line CPU(s) list: 0,1 Thread(s) per core: 2 Core(s) per socket: 1 Socket(s): 1 NUMA node(s): 1 Vendor ID: AuthenticAMD CPU family: 23 Model: 49 Model name: AMD EPYC 7B12 Stepping: 0 CPU MHz: 2250.000 BogoMIPS: 4500.00 Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 512K L3 cache: 16384K NUMA node0 CPU(s): 0,1 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr arat npt nrip_save umip rdpid |
|
![]() |
![]() |
![]() |
#48 | |||||
"James Heinrich"
May 2004
ex-Northern Ontario
3,319 Posts |
![]()
I tried this today:
Quote:
Quote:
One thing I just noticed that may be relevant: if I change to /var/www/vhosts/mersenne.ca/yafu/yafu/ first, then start yafu it seems to read yafu.ini: Quote:
Quote:
Quote:
Is this expected behavior? Should I have to always change to the yafu installation directory before running it? I would have thought it make more sense that yafu looks for yafu.ini in the directory the executable lives in, no matter where it's called from? |
|||||
![]() |
![]() |
![]() |
#49 |
"Ben"
Feb 2007
340310 Posts |
![]()
What you are seeing is the expected behavior: it will look for the .ini in the directory it was run from. Output files also go in the directory it was run from. I guess I pretty much set all I/O to be from where it was run, not stopping to think about the .ini. It would make sense to not have to copy the .ini everywhere.
|
![]() |
![]() |
![]() |
#50 |
"Ed Hall"
Dec 2009
Adirondack Mtns
22·919 Posts |
![]()
Actually, I make use of that feature by copying a "working" copy of yafu and yafu.ini into folders where I regularly use it. This way I can update the main YAFU directory and if the latest/greatest doesn't work quite right, my other work isn't interrupted.
|
![]() |
![]() |
![]() |
#51 | ||
"James Heinrich"
May 2004
ex-Northern Ontario
3,319 Posts |
![]()
I have become confused. When I run this:
'/var/www/vhosts/mersenne.ca/yafu/yafu/yafu' 'factor(123311202266256)' -logfile /dev/null -session /dev/null from the console, it does what I expect: Quote:
Quote:
![]() |
||
![]() |
![]() |
![]() |
#52 |
"Ben"
Feb 2007
41·83 Posts |
![]()
Yikes.
I suspect the task is wrapping that command line up into some sort of 'exec' call or using pipes or something, putting yafu into a state where it thinks there is an incoming batchfile. When you pipe or redirect stuff into yafu, it interprets that as an implicit batchfile with "factor()" wrapped around whatever you are piping/redirecting. That seems to work fairly well on linux, but I haven't tested much on windows, and I have no real idea what is happening behind the scenes with a scheduled task. My only suggestion at this point is a workaround. Can you write the lines to factor into a file like worktodo.txt, then have the scheduled task execute ./yafu -batchfile worktodo.txt? Interesting and irrelevant side-note, when testing this out, I randomly typed in a 16-digit prime number: echo "1703948751903457" | ./yafu |
![]() |
![]() |
![]() |
#53 |
"Ed Hall"
Dec 2009
Adirondack Mtns
E5C16 Posts |
![]()
This isn't just a Windows issue. I've experienced this behavior with bash scripts in linux, as well. I worked around it by going ahead and using a batchfile.
I don't have any examples handy, since it's been a while and I didn't consider bringing the trouble to light. If I run across similar again, I'll take note. Thinking on this a little more, perhaps related, I have on a couple occasions tried to use YAFU as a big number calculator in bash scripts and (I think) it displayed the same behavior. I may look into this again to see if I can provide more specifics, since it was an odd use attempt. (Kind of like when I tried to use nextprime() on an outrageously large number.) ![]() |
![]() |
![]() |
![]() |
#54 |
"Ben"
Feb 2007
41×83 Posts |
![]()
This is kinda a dusty back-corner of yafu, unfortunately. I have tried to get it to work "as one would expect" (keeping in mind this may be different for different people, as we saw above) for all combinations of several OS's, terminal types, and use-cases (standard command line, pipes, redirects, yafu's special interactive environment, and -batchfile on the command line). Obviously this only works well enough to pass muster in the more well-worn circumstances.
The main problem right now is I don't know exactly what circumstances are occurring inside a scheduled task. |
![]() |
![]() |
![]() |
#55 | ||
"James Heinrich"
May 2004
ex-Northern Ontario
1100111101112 Posts |
![]()
I should have been clearer, the actual call is coming from a PHP script, called via the backtick operator (aka shell_exec), just like all my calls to external programs.
My test was running the PHP script from the shell as root vs running it as a scheduled task under the user the website runs as (pedantically: clicking 'Run Now' from a new scheduled task in Plesk). (BTW: I have no idea if this happens on Windows or not, all my questions here are related to the mersenne.ca server which (now) runs CentOS 8) Quote:
Quote:
One last question: if I now seem to be reading yafu.ini correctly by cd'ing to the directory first, would this be the correct format to disable (session|factor).log and avoid those parameters? session="/dev/null" logfile="/dev/null" Last fiddled with by James Heinrich on 2020-12-02 at 19:57 |
||
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running YAFU via Aliqueit doesn't find yafu.ini | EdH | YAFU | 8 | 2018-03-14 17:22 |
Adventures with 16f siever | VBCurtis | Factoring | 6 | 2018-01-24 11:06 |
Building yafu on windows/linux | 2147483647 | YAFU | 19 | 2016-12-09 07:59 |
The Adventures of a Donkey | a1call | Puzzles | 9 | 2016-05-27 16:50 |
Building gcc 4.4.0 | CRGreathouse | Software | 1 | 2009-07-07 22:25 |