mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   GPU Computing (https://www.mersenneforum.org/forumdisplay.php?f=92)
-   -   mfaktc: a CUDA program for Mersenne prefactoring (https://www.mersenneforum.org/showthread.php?t=12827)

snme2pm1 2015-01-23 05:48

Apparently there are new versions approaching.
In the Green camp TheJudger, in the Red (and the rest) camp BDot.
I am aware of some negative views on the Prime95 Throttle mechanism, but I do rely on having that for a notebook mounted atop a fan.
Prime95 is deployed, sometimes with throttle, when using mfaktc would be unsustainable in the current AU summer conditions.
I have to actively adjust load based on weather forecasts to prevent error exits from mfaktc.
Would a similar style of throttle facility be feasible for mfaktx?
Even better if it could track system temperature!
P.S. I am aware of discussion in another thread about faulty notebook results, yet surely better if high temperature conditions can be managed.

James Heinrich 2015-01-23 13:55

Since you started factoring at 2[sup]63[/sup] the CPU sieve must be used, at least for 2[sup]63[/sup]-2[sup]64[/sup]. I suspect that you may have "stages=0" set in mfaktc.ini which [i]prevents[/i] the assignment from being split at the crossover point.

Mark Rose 2015-01-23 14:11

[QUOTE=James Heinrich;393312]Since you started factoring at 2[sup]63[/sup] the CPU sieve must be used, at least for 2[sup]63[/sup]-2[sup]64[/sup]. I suspect that you may have "stages=0" set in mfaktc.ini which [i]prevents[/i] the assignment from being split at the crossover point.[/QUOTE]

Nope. mfaktc is splitting assignments just fine above 67.

James Heinrich 2015-01-23 14:34

In any case it shouldn't be an issue for most people, since the whole PrimeNet range is long since factored well beyond 2[sup]64[/sup] -- even up to M2[sup]32[/sup] should be finished within 6 months or so. If you're redoing old TF for some reason, just split your assignments manually for now :smile:

Mark Rose 2015-01-23 15:09

[QUOTE=James Heinrich;393316]In any case it shouldn't be an issue for most people, since the whole PrimeNet range is long since factored well beyond 2[sup]64[/sup] -- even up to M2[sup]32[/sup] should be finished within 6 months or so. If you're redoing old TF for some reason, just split your assignments manually for now :smile:[/QUOTE]

Indeed. I'm not really worried about it. It's the first time I've done work at bit levels below 68 :D

TheJudger 2015-01-23 20:02

[QUOTE=Mark Rose;393245]I found a "bug".

While double checking some trial factoring assignments in another thread, mfaktc picked 75bit_mul32 for Factor=N/A,54820379,63,66 instead of the usual barrett76_mul32_gs. It ran about 1/7th the speed that 64,66 assignments run since it was sieving on the CPU.

I think the default should be to always GPU sieve, or if the CPU sieve is to be used, to split the assignment at the cross over point.[/QUOTE]

Works as designed. :smile:
No barrett based kernel in mfaktc 0.20 is able to handle FCs below 2[SUP]64[/SUP]. So it isn't a matter of GPU or CPU sieving. There are only the "old" schoolbook-division kernels which can do lower FCs. In 0.20 non of these kernels is GPU sieve enabled. This will change in 0.21.
One could try to improve the automatic splitting of bitlevel, ofcourse.

Oliver

James Heinrich 2015-01-23 20:13

[QUOTE=TheJudger;393348]One could try to improve the automatic splitting of bitlevel, of course.[/QUOTE]That's the key. I'm not sure what the current splitting logic is but if it's relatively easy it would be great to forcibly split the assignment at [color=blue][i]CPU/GPU-sieving cutoff[/i][/color] (currently 2[sup]64[/sup]), at least if stages=1.

Certainly not a big issue considering everything (in PrimeNet at least) is long since done beyond 2[sup]64[/sup], but I don't think it would be a bad idea to add it anyways if the code change is simple.

lycorn 2015-01-23 21:47

[QUOTE=James Heinrich;393349]

everything (in PrimeNet at least) is long since done beyond 2[sup]64[/sup][/QUOTE]

Well, not quite... There are stiil more than 70K numbers trial factored to 64 bits or less.

Granted the exponents are all < 5M, but still some people are working on them and finding many new factors :geek:. GPU sieving would be a most welcome helping hand, specially if it could be used to TF under 1M as well.

James Heinrich 2015-01-23 23:38

[QUOTE=lycorn;393366]Well, not quite... There are stiil more than 70K numbers trial factored to 64 bits or less. Granted the exponents are all < 5M...[/QUOTE]Fair point, I stand corrected.
74759 unfactored exponents as I count them, and 319 of them are over 5M (between [url=http://mersenne.ca/M5215801]5,215,801[/url] and [url=http://www.mersenne.ca/M5325181]5,325,181[/url]):[code]+----------+--------+
| count(*) | mrange |
+----------+--------+
| 16976 | 0 |
| 15886 | 1 |
| 21636 | 2 |
| 16963 | 3 |
| 2979 | 4 |
| 319 | 5 |
+----------+--------+[/code]

Jayder 2015-01-24 00:11

[QUOTE=James Heinrich;393374]Fair point, I stand corrected.
74759 unfactored exponents as I count them, and 319 of them are over 5M (between [url=http://mersenne.ca/M5215801]5,215,801[/url] and [url=http://www.mersenne.ca/M5325181]5,325,181[/url]):[/QUOTE]
[URL="http://www.mersenne.org/report_factoring_effort/?exp_lo=5215801&exp_hi=5325181&bits_lo=1&bits_hi=64&tftobits=72"]Those have been factored up to 2^65.[/URL] I guess it didn't get passed to mersenne.ca.

lycorn 2015-01-24 09:56

Jayder is right.
If you query Primenet directly, via Reports -> Detailed Reports -> Factoring Limits, you´ll get (as of 09:48 UTC):

61 bits - 13250
62 bits - 3257
63 bits - 53708
64 bits - 188

Total - 70403

The highest is 4699963, TFed to 63 bits.


All times are UTC. The time now is 23:13.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.