![]() |
![]() |
#12 |
"Curtis"
Feb 2005
Riverside, CA
3×1,879 Posts |
![]()
Try smaller bounds for B1 and/or a smaller input.
Or, tell us what input number (in digits or an expression) and B1/B2 you're using- you may be asking the program to do something well outside the norm, in a way that requires a hopeless amount of memory. |
![]() |
![]() |
![]() |
#13 |
Sep 2022
32·7 Posts |
![]()
Okay, B1 of 1e10 fails in stage 2, B1 of 2e10 fails in stage 1. I know that prime95 can cope with those bounds just fine (i guess it uses swap space or something that doesnt require as much memory idk), but yeah on prime95 I have ran curves at higher B1 levels (1e11) for far bigger numbers (~400 digits), the one I am testing rn has 248 digits.
|
![]() |
![]() |
![]() |
#14 |
Sep 2022
32×7 Posts |
![]()
Argh! this never ends! I tried to install CGBN but to no avail. It says you need gootletest framework, okay, it says you can use make download-gtest so I do that and it fails because of some weird file match error, like warning: filename not matched: googletest-master/googletest/*
So I go fine, I will install googletest manually. So I go and do that, set all the environment variables, and then run make volta in CGBN directory and... oh my god ive never seen so many errors in my life. just line after line of error after error, I counted at least 15 different errors before the makefile exited with error status. Anyone know why and what I can do to fix it??? Looks like there will be a day #6 to this... oof. |
![]() |
![]() |
![]() |
#15 |
"Ed Hall"
Dec 2009
Adirondack Mtns
23·5·131 Posts |
![]()
I haven't been able to get GMP-ECM to compile anymore with CGBN. I've been told you don't need to compile googletest (but on my working machine, I did). You only need the cgbn.h file available, but GMP-ECM won't find it in plain sight, right where it is looking. Further digging showed me that the reason it claims it can't find it is actually because it tries to compile something with it and the compile fails. This is reported as not finding cgbn.h. You might review this thread:
Faster GPU-ECM with CGBN for more info. If you can contact Seth, it may also help. Currently, I haven't been able to get one of my GPU machines to compile GMP-ECM for the GPU, at all, even though I have it running on another GPU machine fine with CGBN. Perhaps I need to check if I'm trying 7.0.6 (which is probably the case). |
![]() |
![]() |
![]() |
#16 | |
Sep 2009
2×1,213 Posts |
![]() Quote:
Try B1=1e5 and B2=1e6 on that number (small enough they should work on any GPU). Then try larger B1 and B2 until you find the limit. What make of GPU do you have? And how much memory does it have? ECM is not prim95, it's designed to work on general numbers, not just Mersenne and Fermat numbers. But that means it needs more memory to handle them. And CUDA is about typical for commercial software, ie rushed out as soon as possible in order to start earning money. I spent 18 years working as a systems programmer on a mainframe installing and supporting commercial software and you would not want to believe some of the things I've seen sent out to paying customers. Last fiddled with by chris2be8 on 2022-09-30 at 15:38 Reason: Asked how much memory it has. |
|
![]() |
![]() |
![]() |
#17 | |
"Curtis"
Feb 2005
Riverside, CA
160516 Posts |
![]() Quote:
Bounds of, say, B1 = 12e8 and B2 = 38e12 are big enough to find factors in the 63-68 digit range while stage 1 should fit on your GPU and stage 2 should take ~5GB per curve. I'm doubtful that B1 = 3e9 for T70-sized curves will fit. P95 (at least before 30.9's beta ECM) uses an entirely different algorithm for stage 2 which uses much less memory but is vastly slower for large B2. |
|
![]() |
![]() |
![]() |
#18 |
I moo ablest echo power!
May 2013
22×463 Posts |
![]()
I got GPU-enabled and CGBN-enabled GMP-ECM working on my WSL2 installation of Ubuntu 22.04.1 LTS.
I'm using the git repository here: https://gitlab.inria.fr/zimmerma/ecm My GPU is a 3090, and I'm using CUDA 11.7, GCC 11.2, and GMP 6.2.1, compiling for CC8.6. I don't know if that has anything to with my lack of issues compiling for CGBN or not. The biggest thing is making sure you install CUDA via NVIDIA's instructions here: https://docs.nvidia.com/cuda/wsl-use...pport-for-wsl2 The configure line I used was Code:
./configure --enable-gpu --with-cuda=/usr/local/cuda --with-cgbn-include=/home/wombat/CGBN/include/cgbn |
![]() |
![]() |
![]() |
#19 | |
Sep 2022
32×7 Posts |
![]() Quote:
Also, dang I mean I couldnt get it working on WSL at all despite days of trying, do you know what you did differently to me? I used like 10 clean installs and installed the CUDA exactly as required a ridiculous amount of times and then tried doing it other ways, to no avail. I also dont really know how to get specific versions of GCC and whatnot i just did sudo apt-get install gcc and g++ and all that, is that a problem? Last fiddled with by Rubiksmath on 2022-09-30 at 22:12 |
|
![]() |
![]() |
![]() |
#20 | |
I moo ablest echo power!
May 2013
22×463 Posts |
![]() Quote:
Then, compile gmp. You can also make sure ecm without GPU support builds and tests correctly. I didn't have to build/compile anything for CGBN before compiling GMP-ECM with GPU/CGBN, just have the directory as-is. |
|
![]() |
![]() |
![]() |
#21 |
Sep 2022
32·7 Posts |
![]()
Okay interesting, I never compiled gmp I just ran sudo apt-get install libgmp3-dev, could that be the problem? Also, just to eliminate any kind of user error on my side could you point me to the exact files and versions you used for gimp and Cgbn. My internet just died today and we dunno why so it may be a good while before I can try it out. Thanks for the help tho.
Last fiddled with by Rubiksmath on 2022-10-01 at 04:37 |
![]() |
![]() |
![]() |
#22 | |
I moo ablest echo power!
May 2013
185210 Posts |
![]() Quote:
CGBN came from here: https://github.com/NVlabs/CGBN |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
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 |