mersenneforum.org ECM for CUDA GPUs in latest GMP-ECM ?
 Register FAQ Search Today's Posts Mark Forums Read

2022-03-17, 13:15   #518
EdH

"Ed Hall"
Dec 2009

22×1,151 Posts

Quote:
 Originally Posted by SethTro I'm happy to look at this as a bug. I vaguely remember that I wasn't sure if I should always stop or only if the cofactor is composite.
Thanks, but I've moved to using a separate machine with ecm.py and it is working as needed.

I'd leave as is unless others are interested. For me it is no longer an issue.

Again, thank you for considering it.

2022-05-24, 17:34   #519
storm5510
Random Account

Aug 2009
Not U. + S.A.

32·241 Posts

There seems to be an oddity about using a GPU in GMP-ECM.

The --help switch shows the maximum size of a B1 value is 2^1018. Using Windows Calculator to calculate log(2) * 1018 says this is a 308 digit value.

If I run this:

Code:
echo "2^14447-1" | gpuecm -gpu -maxmem 2048 5e6 10e6
I get this message:

Quote:
 GMP-ECM 7.0.4-dev [configured with MPIR 2.7.2, --enable-gpu, --enable-openmp] [ECM] Input number is 2^14447-1 (4349 digits) GPU: Error, input number should be strictly lower than 2^1018 please report internal errors at .
B1 in my example is 5e6 or 5,000,000. This is obviously smaller than a 308 digit number.

I am missing something here and I cannot determine what it is.

2022-05-24, 17:43   #520
paulunderwood

Sep 2002
Database er0rr

4,211 Posts

Quote:
 Originally Posted by storm5510 There seems to be an oddity about using a GPU in GMP-ECM. The --help switch shows the maximum size of a B1 value is 2^1018. Using Windows Calculator to calculate log(2) * 1018 says this is a 308 digit value. If I run this: Code: echo "2^14447-1" | gpuecm -gpu -maxmem 2048 5e6 10e6 I get this message: B1 in my example is 5e6 or 5,000,000. This is obviously smaller than a 308 digit number. I am missing something here and I cannot determine what it is.
You are missing something. The inputted number is too big. You specified 2^14447-1. The max is 2^1018.

Last fiddled with by paulunderwood on 2022-05-24 at 17:43

 2022-05-24, 17:52 #521 SethTro     "Seth" Apr 2019 19×23 Posts If you are willing to compile gmp-ecm from source you can test larger input numbers (it's also faster). See https://www.mersenneforum.org/showthread.php?t=27103
2022-05-25, 13:52   #522
storm5510
Random Account

Aug 2009
Not U. + S.A.

32×241 Posts

Quote:
 Originally Posted by paulunderwood You are missing something. The inputted number is too big. You specified 2^14447-1. The max is 2^1018.
Understood. IMHO, it is not good for much of anything at this size.

 Similar Threads Thread Thread Starter Forum Replies Last Post Rodrigo GPU Computing 3 2016-05-17 05:43 ATH GMP-ECM 10 2012-07-29 17:15 ATH GMP-ECM 7 2012-01-07 18:34 davieddy Lounge 0 2011-01-21 19:29 [CZ]Pegas Software 3 2002-08-23 17:05

All times are UTC. The time now is 12:19.

Sun Jul 3 12:19:40 UTC 2022 up 80 days, 10:20, 0 users, load averages: 1.24, 1.36, 1.42