mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2023-02-22, 18:09   #1
Reed_Young
 
Reed_Young's Avatar
 
"Reed Young"
Sep 2009
Oregon

32·5 Posts
Question gpuowl has generated 3 proof files but no results.JSON.txt

I've been using PrimeNet for 10+ years without much trouble, but I'm new to the gpuowl software as of December and as far as I can tell, the required results.JSON.txt files are not being created and won't, unless/until I do something, I'm not entirely sure what.

I do have ###,###,###-8.proof files in the proof folder, but no results.JSON.txt file in the directory above that, which is just called gpuowl. The gpuowl directory does contain a results.txt file with information about 1 of the completed exponents, and the gpuowl2 directory contains a results.txt file with information about the other two.

I have copied the ###,###,###-8.proof files into my main Mersenne Primes folder, which contains the mprime executable. My (admittedly, partial) understanding of one thread was that this might be sufficient, as it will eventually cause the server to be notified that the proof files exist and then the results.JSON.txt file (which does exist in that folder, just not in the gpuowl folders) will be updated to include the 3 results that were crunched using gpuowl. Is this correct so far? Or is it also necessary to copy and paste the contents of the results.txt files in the gpuowl directories into the results.txt file in the mprime directory?

I did not use the -pool option when running gpuowl on any of the 3 PRP tests that were completed using gpuowl, but since reading about that option while skimming the forums for a solution to this problem, I am using the -pool option now, to point gpuowl to the folder that contains mprime. Will this be sufficient to cause the results.JSON.txt files to include results obtained using gpuowl (as well as those from mprime) without my manual intervention going forward?
Reed_Young is offline   Reply With Quote
Old 2023-02-22, 19:16   #2
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

I am not aware of a scenario where mprime or prime95 will do automatic results reporting for gpuowl results.
-pool causes multiple gpuowl instances to use a common worktodo file and a common results.txt file.
https://www.mersenneforum.org/showpo...33&postcount=1
Putting the proof files in the mprime directory before the corresponding result records have been reported will cause the mprime instance to loop on attempting to upload a proof file for which the result must be reported first and has not been, generating an error message at each upload attempt. Manually report the previous results.
Try using the primenet.py that ships with gpuowl for automatic reporting and work requesting and proof uploads.

Last fiddled with by kriesel on 2023-02-22 at 19:19
kriesel is offline   Reply With Quote
Old 2023-02-22, 20:10   #3
Reed_Young
 
Reed_Young's Avatar
 
"Reed Young"
Sep 2009
Oregon

32·5 Posts
Thumbs down What about copying the contents of results.txt to the file of the same name in the mprime directory?

Quote:
Originally Posted by kriesel View Post
I am not aware of a scenario where mprime or prime95 will do automatic results reporting for gpuowl results.
-pool causes multiple gpuowl instances to use a common worktodo file and a common results.txt file.
https://www.mersenneforum.org/showpo...33&postcount=1
I think I read #3 in this post too optimistically.

Quote:
Originally Posted by kriesel View Post
Putting the proof files in the mprime directory before the corresponding result records have been reported will cause the mprime instance to loop on attempting to upload a proof file for which the result must be reported first and has not been, generating an error message at each upload attempt. Manually report the previous results.
Try using the primenet.py that ships with gpuowl for automatic reporting and work requesting and proof uploads.
I have tried that, and was hoping there was a better solution because so far, it has not done any good.

Code:
Traceback (most recent call last):
  File "~/computing/Mersenne_primes/gpuowl/gpuowl2/tools/primenet.py", line 154, in <module>
    handle(folder)
  File "~/computing/Mersenne_primes/gpuowl/gpuowl2/tools/primenet.py", line 145, in handle
    for entry in os.listdir(folder + 'proof'):
FileNotFoundError: [Errno 2] No such file or directory: './proof'
There is a "proof" directory, which I might reference as $PWD/proof when I'm in the containing directory, but no ./proof directory. And even if I do create a hidden folder, it should be called /.proof, not ./proof. Not sure this is actually relevant, or just a quirk in how Python reports errors but on my system, ./proof would be a terminal command to run an executable named "proof," never a folder name nor a file name.

I do know that creating a .proof folder directly under the main gpuowl folder and copying all the ###,###,###-8.proof files into it, then running primenet.py again, did not help. (In fact it is still there, and was when the above error message was generated. I have also tried putting the .proof file inside the tools folder, which contains primenet.py, but primenet.py still failed to create a results.JSON.txt file.)

Last fiddled with by Reed_Young on 2023-02-22 at 20:15 Reason: optional
Reed_Young is offline   Reply With Quote
Old 2023-02-22, 20:11   #4
moebius
 
moebius's Avatar
 
Jul 2009
Germany

13028 Posts
Default

gpuOwl 6.11.364 windows binary and

gpuOwl 6.11.380 linux binary (Ubuntu) are without this error.
moebius is offline   Reply With Quote
Old 2023-02-22, 20:45   #5
Reed_Young
 
Reed_Young's Avatar
 
"Reed Young"
Sep 2009
Oregon

32·5 Posts
Default

That doesn't seem to be helping yet. The executable is working fine, but only on crunching the "next" exponent. Even after copying the proof folder and the results.txt file for the finished exponents into the new gpuowl directory, no results.JSON.txt file is created.
Reed_Young is offline   Reply With Quote
Old 2023-02-22, 21:08   #6
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

. is current directory. ./proof is a subdirectory of the current, named proof.
You seem mistakenly fixated on there being a gpuowl output file named results.json.txt, which prime95 does, but gpuowl does not. IIRC mprime/prime95 is the ONLY GIMPS app that outputs to results.json.txt and results.txt by default. The rest all default to results.txt only.
Gpuowl puts json formatted results output in its own results.txt.
Gpuowl is not prime95. They were written differently, by different authors. So don't expect them to act the same in all details.

Last fiddled with by kriesel on 2023-02-22 at 21:16
kriesel is offline   Reply With Quote
Old 2023-02-22, 23:21   #7
Reed_Young
 
Reed_Young's Avatar
 
"Reed Young"
Sep 2009
Oregon

32·5 Posts
Cool I suppose seeking key info that instructions omit could look similar to being "fixated"...

...especially when it's information you already know.

Quote:
Originally Posted by kriesel View Post
You seem mistakenly fixated on there being a gpuowl output file named results.json.txt, which prime95 does, but gpuowl does not. IIRC mprime/prime95 is the ONLY GIMPS app that outputs to results.json.txt and results.txt by default. The rest all default to results.txt only.
Gpuowl puts json formatted results output in its own results.txt.
Oh, I see. Applying that information has solved the problem. Thanks.

Both of the 2 pages for upload of manual testing results I have encountered could be clearer about that. They don't contradict the facts you just explained, but they also say nothing about what the correct file to upload is for users of software other than mprime/prime95. The one where the Results link under Manual Testing on mersenne.org points is particularly emphatic about not uploading "results.txt" files. Maybe this is obvious to users of related software other than mprime and gpuowl, but that set does not include me so there was really no way I could have known that until somebody explained what you explained. Thanks again!

Last fiddled with by Reed_Young on 2023-02-22 at 23:28
Reed_Young is offline   Reply With Quote
Old 2023-02-23, 00:44   #8
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

7,823 Posts
Default

The whole problem could have been avoided by reading the gpuowl program's documentation before trying to run it.
It frequently surprises me how imaginative people are in their misconceptions, and how resistant to multiple clues that contradict them. In this case:
1) program behavior persistently not matching, despite multiple attempts to make it match, the misconception-based errant expectations from overgeneralizing prime95's behavior to other programs;
2) nearly every gpuowl build for Windows I've posted includes a help.txt file, generated by gpuowl-win -h >help.txt. Quoting the relevant portions of v6.11-382's help output:
Code:
-dir <folder>      : specify local work directory (containing worktodo.txt, results.txt, config.txt, gpuowl.log)
-pool <dir>        : specify a directory with the shared (pooled) worktodo.txt and results.txt
                     Multiple GpuOwl instances, each in its own directory, can share a pool of assignments and report
                     the results back to the common pool.
-results <file>    : name of results file, default 'results.txt'
Note how that does NOT say results.json.txt.
And does not contain the string "json" anywhere.
3) And for anyone who builds it themselves, gpuowl -h or gpuowl-win -h (depending on OS) will output the help content programmed into the gpuowl application.
4) gpuowl prebuilt or compiled by git download will also include readme.md. Which contains no occurrences of "json", but does contain the following:
Code:
## Files used by gpuOwl
* `worktodo.txt` : contains exponents to test, one entry per line
* `results.txt` : contains the results
* `N.owl` : the most recent checkpoint for exponent <N>; will resume from here
* `N-prev.owl` : the previous checkpoint, to be used if N.ll is lost or corrupted
* `N.iteration.owl` : a persistent checkpoint at the given iteration

## `worktodo.txt`
The lines in `worktodo.txt` must be of one of these forms:
* `70100200`
* `PRP=FCECE568118E4626AB85ED36A9CC8D4F,1,2,77936867,-1,75,0`
5) When all else fails, the source code is also available for reading.
6) Those too impatient to read other documentation could follow the step by step install and run process given in post one of https://www.mersenneforum.org/showthread.php?t=23391, which specifies looking to "results.txt" output from gpuowl.

https://www.mersenne.org/proof_upload_manual/ makes references to "JSON results" but not to results.json.txt.

https://www.mersenne.org/manual_result/ says "If you are uploading results from Prime95/mprime, please be sure to upload results.json.txt and not results.txt – the JSON-formatted results contain more and better data than the old-style result lines. If your version of Prime95/mprime does not produce results.json.txt, please upgrade to the current version." That clearly applies to prime95 & mprime, neither of which are gpuowl, Mlucas, etc.

The web pages are written with a focus toward prime95/mprime, which is the bulk of the volume and especially of the novice users. GPU application users need to be a bit more savvy and willing to read and apply documentation. And think and troubleshoot logically.

Last fiddled with by kriesel on 2023-02-23 at 01:22
kriesel is offline   Reply With Quote
Old 2023-02-23, 01:07   #9
Andrew Usher
 
Dec 2022

1FB16 Posts
Default

One can't expect a new user to even know what 'JSON' is or why it might be needed. And indeed the Gpuowl documentation, as you've shown, does not mention producing results in JSON format. So confusion is not unexpected.
Andrew Usher is offline   Reply With Quote
Old 2023-02-23, 02:52   #10
Reed_Young
 
Reed_Young's Avatar
 
"Reed Young"
Sep 2009
Oregon

32·5 Posts
Thumbs down That's an odd response to a helpful tip.

Quote:
Originally Posted by kriesel View Post
The whole problem could have been avoided by reading the gpuowl program's documentation before trying to run it.
No, because that documentation also doesn't explain that the (forbidden, per both web pages) "results.txt" file is JSON-formatted. So your assumption that I did not read that documentation is also unfounded.
Quote:
Originally Posted by kriesel View Post
Code:
-dir <folder>      : specify local work directory (containing worktodo.txt, results.txt, config.txt, gpuowl.log)
-pool <dir>        : specify a directory with the shared (pooled) worktodo.txt and results.txt
                     Multiple GpuOwl instances, each in its own directory, can share a pool of assignments and report
                     the results back to the common pool.
-results <file>    : name of results file, default 'results.txt'
Note how that does NOT say results.json.txt.
And does not contain the string "json" anywhere.
You're getting closer to identifying the problem, but you're still acting like it's the solution. The web pages where the file is to be uploaded both say JSON is required and one specifically says "results.txt" is forbidden, so citing yet another source that says absolutely nothing about JSON one way or the other is a non sequitur.

Clarifying the online documentation was a constructive suggestion. I do not know why it struck a nerve with you but I do know it is not my fault.
https://www.youtube.com/watch?v=7rcb9KI07XE&t=62s

Last fiddled with by Reed_Young on 2023-02-23 at 03:09 Reason: the soul of wit
Reed_Young is offline   Reply With Quote
Old 2023-02-23, 04:25   #11
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

782310 Posts
Default

Quote:
Originally Posted by Reed_Young View Post
Still refusing to read what was actually written I see, or acknowledge your own very persistent error. (An exceedingly rare one, I don't recall seeing before in YEARS of forum activity.)
The manual result web page is quite clear that the directive toward results.json.txt IS SPECIFIC TO PRIME95/MPRIME.
You had MANY opportunities to detect that the error was yours, and still seem to be denying it.

Here's yet another: read the gpuowl version primenet.py code.

What you are doing is similar to a pilot who somehow miraculously survives controlled flight into terrain because of clinging to his own error instead of reevaluating in time, blaming the aircraft manufacturer, the map maker, air traffic control, anyone other than himself, for his own incorrect interpretation of instrument readings and bad decision making that directly caused a crash. At least in GIMPS the stakes are low.

I have modified https://www.mersenneforum.org/showpo...9&postcount=28.
"Default results file name for most applications is "results.txt". Mprime/prime95 is the outlier, with both results.txt and results.json.txt."
I have also added JSON to the glossary reference info post.
But I doubt that these changes would have stopped you in persisting in your misconception either, after so many other sources of data were willfully misinterpreted or ignored. Ego defense is a stubborn thing.

Last fiddled with by kriesel on 2023-02-23 at 05:22
kriesel is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
"PRP without proof (not generated)" CuriousKit Software 3 2023-02-10 15:37
"PRP proof never uploaded", but proof file was generated CuriousKit Software 4 2022-12-20 12:42
inconsistencies between results.txt and results.json.txt ixfd64 Software 3 2021-07-17 08:32
GpuOwl PRP-Proof changes preda GpuOwl 20 2020-10-17 06:51
[Win7] GnuPG-generated files not showing up? ixfd64 Lounge 1 2012-06-23 12:43

All times are UTC. The time now is 14:00.


Fri Jul 7 14:00:08 UTC 2023 up 323 days, 11:28, 0 users, load averages: 1.32, 1.21, 1.17

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

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