mersenneforum.org  

Go Back   mersenneforum.org > New To GIMPS? Start Here! > Information & Answers

Reply
 
Thread Tools
Old 2022-10-02, 05:35   #23
Rubiksmath
 
Sep 2022

1011112 Posts
Default

yo pog i think it worked really smoothly with not a single error everything first try. Thanks man. I didnt realise i didnt need to compile CGBN, lol my bad.
Rubiksmath is offline   Reply With Quote
Old 2022-10-02, 05:52   #24
Rubiksmath
 
Sep 2022

47 Posts
Default

Nope, nevermind, test.cgbnecm failed and I dont know why, I checked test.cgbnecm.log and I dont see any obvious failures in there, It did a bunch of curves and then at one of the test numbers the file just ends after stage 1, Im guessing stage 2 init failed or something but there is no form of error report I can find. Anyone know how to fix?
Edit: hmm weird running curves with cgbn works just fine it seems.

Last fiddled with by Rubiksmath on 2022-10-02 at 06:01
Rubiksmath is offline   Reply With Quote
Old 2022-10-02, 15:23   #25
chris2be8
 
chris2be8's Avatar
 
Sep 2009

29×83 Posts
Default

Post the last few lines from test.cgbnecm.log here. If you are not sure how to do that post output from tail test.cgbnecm.log (or post the whole file if it's small).

You will get better responses if you post enough information to give us a chance to tell what's wrong.

Also tell us what sort of GPU you have. And how much memory it has.
chris2be8 is offline   Reply With Quote
Old 2022-10-02, 17:35   #26
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

34678 Posts
Default

Quote:
Originally Posted by Rubiksmath View Post
Nope, nevermind, test.cgbnecm failed and I dont know why, I checked test.cgbnecm.log and I dont see any obvious failures in there, It did a bunch of curves and then at one of the test numbers the file just ends after stage 1, Im guessing stage 2 init failed or something but there is no form of error report I can find. Anyone know how to fix?
Edit: hmm weird running curves with cgbn works just fine it seems.
Quote:
Originally Posted by chris2be8 View Post
Post the last few lines from test.cgbnecm.log here. If you are not sure how to do that post output from tail test.cgbnecm.log (or post the whole file if it's small).

You will get better responses if you post enough information to give us a chance to tell what's wrong.

Also tell us what sort of GPU you have. And how much memory it has.
It would also be helpful to check test.gpuecm and make sure you pass all those as well. That will help us know if the issue with CGBN or the GPU generally.
wombatman is offline   Reply With Quote
Old 2022-10-03, 21:35   #27
Rubiksmath
 
Sep 2022

47 Posts
Default

Last few lines:
Code:
Input number is 2^1019-1 (307 digits)
Using B1=4, B2=0, sigma=3:92-3:123 (32 curves)
GPU: Using device code targeted for architecture compile_86
GPU: Ptx version is 86
GPU: maxThreadsPerBlock = 640
GPU: numRegsPerThread = 88 sharedMemPerBlock = 0 bytes
Computing 32 Step 1 took 0ms of CPU time / 0ms of GPU time

Same sort of thing that is at the end of the other log files which passed just fine, but as I said running curves with CGBN throws no errors and the stage 1 is insanely fast (quite literally hundreds of times faster than it was with my previous setup, can now run 1792 stage 1 curves at B1=1e9 on a 248 digit number in 7 hours. GPU is a RTX 3060 with 12 GB RAM). Last thing: where does it store the results?? I can't seem to find where it stores them.

Last fiddled with by Rubiksmath on 2022-10-03 at 21:38
Rubiksmath is offline   Reply With Quote
Old 2022-10-04, 00:30   #28
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

10101101011102 Posts
Default

If you don't tell ecm to save residues somewhere, there is no output file. The program just runs the curves and reports the result to screen.

You can redirect the screen output to a file to achieve a record of curves run, or if you're doing stage 2 separately you can ask it to save stage1 residues to a file of your choosing and then invoke gmp-ecm with -resume and that filename to run stage 2.

If you post the exact command line you're using, you're likely to get better feedback; you keep not telling us enough for us to figure out exactly what you (or the setup) might have wrong.
VBCurtis is offline   Reply With Quote
Old 2022-10-04, 05:30   #29
Rubiksmath
 
Sep 2022

578 Posts
Default

Sorry about that.
Anyway, I've read the documentation on the save feature and have one question: the documentation says that the residues are saved only after step 2 is completed, if stage 2 has been run in that same run of GMP-ECM. Now this implies that stage 1 and 2 can be run separately, however I cannot see where it mentions how to do this. So my question is: how to run stage 1 only and save residues after stage 1?
Rubiksmath is offline   Reply With Quote
Old 2022-10-04, 06:59   #30
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

15AE16 Posts
Default

try ecm -h for options.

You want the -save, -savea, and -resume options. If I recall, you want to use the same B1 with -resume as you did on your GPU run so that gmp-ecm picks a reasonable B2; or you can choose B2 directly but still have to put a B1 on the command line (else it'll think your desired B2 is actually B1).
VBCurtis is offline   Reply With Quote
Old 2022-10-04, 15:42   #31
chris2be8
 
chris2be8's Avatar
 
Sep 2009

29·83 Posts
Default

Quote:
Originally Posted by Rubiksmath View Post
Last few lines:
Code:
Input number is 2^1019-1 (307 digits)
Using B1=4, B2=0, sigma=3:92-3:123 (32 curves)
GPU: Using device code targeted for architecture compile_86
GPU: Ptx version is 86
GPU: maxThreadsPerBlock = 640
GPU: numRegsPerThread = 88 sharedMemPerBlock = 0 bytes
Computing 32 Step 1 took 0ms of CPU time / 0ms of GPU time

Same sort of thing that is at the end of the other log files which passed just fine, but as I said running curves with CGBN throws no errors and the stage 1 is insanely fast (quite literally hundreds of times faster than it was with my previous setup, can now run 1792 stage 1 curves at B1=1e9 on a 248 digit number in 7 hours. GPU is a RTX 3060 with 12 GB RAM). Last thing: where does it store the results?? I can't seem to find where it stores them.
When I ran the same test on my GPU I got:
Code:
Input number is 2^1019-1 (307 digits)
Using B1=4, B2=0, sigma=3:92-3:123 (32 curves)
No available CGBN Kernel large enough to process N(1019 bits)
Computing 32 Step 1 took 0ms of CPU time / 0ms of GPU time
Please report internal errors at <ecm-discuss@inria.fr>.
But that's supposed to happen. test.cgbnecm is basically ./test.gpuecm "${1:-./ecm -cgbn}"
And in test.gpuecm:
Code:
# try 2^1019-1: should give an error
echo "2^1019-1" | $ECM -sigma 3:92 4 0
checkcode $? 1
So it looks as if your ecm and GPU combination is giving a rc indicating success. B1=4 would take very little time so saying it took 0ms is probably OK.

Try commenting out that test in a copy of test.gpuecm and see if it passes the other tests. If it does you are probably OK.
chris2be8 is offline   Reply With Quote
Old 2022-10-05, 05:30   #32
SethTro
 
SethTro's Avatar
 
"Seth"
Apr 2019

11×43 Posts
Default

I sorry this has been so hard to setup under WSL. If there's anything that can be improved in documentation / autoconfig I'll endeavour to make it better for the next WSL user.

Quote:
Originally Posted by Rubiksmath View Post
Sorry about that.
Anyway, I've read the documentation on the save feature and have one question: the documentation says that the residues are saved only after step 2 is completed, if stage 2 has been run in that same run of GMP-ECM. Now this implies that stage 1 and 2 can be run separately, however I cannot see where it mentions how to do this. So my question is: how to run stage 1 only and save residues after stage 1?
like such

Code:
# the 0 here says don't run stage 2
$ echo "(2^257-1)/535006138814359" | ./ecm -cgbn -save 2_257_1e3.txt 1e3 0
# Resume the save file
$ ./ecm -q -resume 2_257_3e4.txt 3e4 1e6
Quote:
Originally Posted by Rubiksmath View Post
Last few lines:
Code:
Input number is 2^1019-1 (307 digits)
Using B1=4, B2=0, sigma=3:92-3:123 (32 curves)
GPU: Using device code targeted for architecture compile_86
GPU: Ptx version is 86
GPU: maxThreadsPerBlock = 640
GPU: numRegsPerThread = 88 sharedMemPerBlock = 0 bytes
Computing 32 Step 1 took 0ms of CPU time / 0ms of GPU time

Same sort of thing that is at the end of the other log files which passed just fine, but as I said running curves with CGBN throws no errors and the stage 1 is insanely fast (quite literally hundreds of times faster than it was with my previous setup, can now run 1792 stage 1 curves at B1=1e9 on a 248 digit number in 7 hours. GPU is a RTX 3060 with 12 GB RAM). Last thing: where does it store the results?? I can't seem to find where it stores them.
This test checks that the code fails, which it seems to be doing, but maybe WSL isn't returning the same error. On my system

Code:
$ echo "2^1019-1" | ./ecm -cgbn -sigma 3:92 4 0
...
$ echo $?
1
SethTro is offline   Reply With Quote
Old 2022-10-05, 05:43   #33
SethTro
 
SethTro's Avatar
 
"Seth"
Apr 2019

11·43 Posts
Default

Quote:
Originally Posted by Rubiksmath View Post
The stage 1 is insanely fast (quite literally hundreds of times faster than it was with my previous setup, can now run 1792 stage 1 curves at B1=1e9 on a 248 digit number in 7 hours. GPU is a RTX 3060 with 12 GB RAM). Last thing: where does it store the results?? I can't seem to find where it stores them.
I'm glad it's much faster! I'm curious how my 1080ti stacks up against the 30 series (if someone in this thread has a 3080/3090 I'd love to see some timing results too), would you mind sharing the result of running?

Code:
$ echo "10^248+123" | ./ecm -v -cgbn 2e5 0
...
CGBN<1024, 8> running kernel<56 block x 256 threads> input number is 824 bits
...
Computing 1694 bits/call, 134631/288578 (46.7%), ETA 8 + 7 = 14 seconds (~8 ms/curves)
Copying results back to CPU ...
Computing 1792 Step 1 took 37ms of CPU time / 14013ms of GPU time
Throughput: 127.885 curves per second (on average 7.82ms per Step 1)
SethTro is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Just a few problems. storm5510 YAFU 3 2019-10-21 22:25
PC problems Nimras Information & Answers 6 2009-12-15 21:24
Readline problems CRGreathouse Software 11 2009-07-07 05:18
Need help with few problems Laserjet Hardware 1 2007-10-13 10:59
Two problems gribozavr Puzzles 11 2007-02-05 05:46

All times are UTC. The time now is 15:25.


Tue Nov 29 15:25:42 UTC 2022 up 103 days, 12:54, 1 user, load averages: 1.18, 1.03, 1.03

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

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